Skip to content

Negative paragraph left indent is ignored in paginated rendering (2.29.0) #4137

Open

Description

@i2system

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:

  1. A4 page size.
  2. Left and right page margins of 1440 twips (1 inch).
  3. Two paragraphs containing several lines of text, using Calibri 12 pt.
  4. A left indent of −720 twips (−0.5 inch) for the first paragraph.
  5. 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?

Thank you!

Activity

  1. added
    status: triage
    on Nov 6, 2026
  2. added theissue type on Nov 6, 2026
  3. caio-pizzol commented on Nov 6, 2026

    @caio-pizzol
    Contributor

    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.

  4. i2system commented on Nov 6, 2026

    @i2system
    Author

    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?

  5. caio-pizzol commented on Nov 6, 2026

    @caio-pizzol
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

status: triage

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions