You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Negative paragraph left indent is ignored in paginated rendering (2.29.0) #4137
We reproduced negative paragraph left indents being ignored in SuperDoc 2.29.0.
Hello SuperDoc team,
We are integrating SuperDoc and have encountered an issue with negative paragraph left indents in paginated rendering.
Environment
SuperDoc: 2.29.0
@superdoc/docx-engine: 0.28.0
@superdoc/fonts: 0.5.0, self-hosted
Chromium 154.0.8037.57 on Linux
Editing mode, default paginated layout
Carlito is loaded as the Calibri substitute
Steps to reproduce
Create a DOCX document with:
A4 page size.
Left and right page margins of 1440 twips (1 inch).
Two paragraphs containing several lines of text, using Calibri 12 pt.
A left indent of −720 twips (−0.5 inch) for the first paragraph.
A left indent of 0 for the second paragraph.
The relevant OOXML properties are:
<w:pPr>
<w:ind w:left="-720"/>
</w:pPr>
<w:pPr>
<w:ind w:left="0"/>
</w:pPr>
<w:pgMar w:top="1440" w:right="1440"
w:bottom="1440" w:left="1440"/>
Open the document in SuperDoc.
Expected result
The first paragraph should start 0.5 inch from the page’s left edge, while the second should start 1 inch from it. The first paragraph should also have a wider available line area.
At 96 CSS pixels per inch, the expected starting positions are 48 px and 96 px respectively.
Actual result
Both paragraphs’ text starts 96 px from the page’s left edge. Their rendered paragraph containers also have the same width, approximately 601.73 px. The negative left indent appears to be ignored.
Impact
This produces differences in text positioning and line wrapping when opening existing documents.
We also observed a real document occupying two pages in SuperDoc, while both the original and the unchanged exported document occupy one page in LibreOffice. We have not established that negative indentation is the sole cause of that pagination difference.
We can avoid negative indents in our own templates, but we also need to work with documents received from third parties without silently changing their formatting.
Could you confirm whether negative paragraph left indents are supported in paginated rendering? Is there a supported workaround or a planned fix?
Hi Vasily, thanks for the clear report! You're right, 2.29.0 ignores negative left indents. This is already fixed in the superdoc@2.30.0-next.4 prerelease, where your example renders like it does in Word. You can use that until the fix reaches a stable release.
About the document that takes two pages: if you can share it (with private content removed), we'll check whether something else is causing the extra page.
Hi! We confirmed that superdoc@2.30.0-next.4 fixes the negative-left-indent issue. Thank you!
We’re preparing to upgrade our integration, but couldn’t identify the corresponding source revision: the npm package has no gitHead, we couldn’t find a v2.30.0-next.4 tag, and the public repository’s main still lists version 2.29.0.
Could you please share the exact Git commit or a source archive corresponding to the published superdoc@2.30.0-next.4 package, including its build instructions?
We also tested image dragging in this prerelease. Neither an unlocked floating image nor an inline image moved in our tests, and export/reopen preserved their original positions. We tested in editing mode with an explicit author identity. Is dragging supported, and does it require any additional configuration?
Thanks for confirming! That fix is part of a larger engine update that isn't in a stable release yet, so we'd suggest waiting for the next stable version rather than building from the prerelease.
Image dragging doesn't work in 2.30.0-next.4. The fix has landed but isn't released yet. Once it ships, dragging works in editing mode with no extra config. If anything still looks off after you upgrade, please open a separate issue with a small sample document.
Activity
caio-pizzol commentedon Nov 6, 2026
Hi Vasily, thanks for the clear report! You're right, 2.29.0 ignores negative left indents. This is already fixed in the
superdoc@2.30.0-next.4prerelease, where your example renders like it does in Word. You can use that until the fix reaches a stable release.About the document that takes two pages: if you can share it (with private content removed), we'll check whether something else is causing the extra page.
i2system commentedon Nov 6, 2026
Hi! We confirmed that superdoc@2.30.0-next.4 fixes the negative-left-indent issue. Thank you!
We’re preparing to upgrade our integration, but couldn’t identify the corresponding source revision: the npm package has no gitHead, we couldn’t find a v2.30.0-next.4 tag, and the public repository’s main still lists version 2.29.0.
Could you please share the exact Git commit or a source archive corresponding to the published superdoc@2.30.0-next.4 package, including its build instructions?
We also tested image dragging in this prerelease. Neither an unlocked floating image nor an inline image moved in our tests, and export/reopen preserved their original positions. We tested in editing mode with an explicit author identity. Is dragging supported, and does it require any additional configuration?
caio-pizzol commentedon Nov 6, 2026
Thanks for confirming! That fix is part of a larger engine update that isn't in a stable release yet, so we'd suggest waiting for the next stable version rather than building from the prerelease.
Image dragging doesn't work in 2.30.0-next.4. The fix has landed but isn't released yet. Once it ships, dragging works in editing mode with no extra config. If anything still looks off after you upgrade, please open a separate issue with a small sample document.