Persist FPDFPage_InsertObjectAtIndex() ordering on save [pdfium : main]

0 views
Skip to first unread message

Helmut Januschka (Gerrit)

unread,
Apr 29, 2026, 4:51:09 AMApr 29
to Lei Zhang, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
Attention needed from Lei Zhang

Helmut Januschka added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Helmut Januschka . resolved

@the...@chromium.org thanks in advance for the review, let me know if you want me to address anything

Open in Gerrit

Related details

Attention is currently required from:
  • Lei Zhang
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: pdfium
Gerrit-Branch: main
Gerrit-Change-Id: I97127e77d698e94f2c55feb66c6847d17011ceab
Gerrit-Change-Number: 146990
Gerrit-PatchSet: 1
Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
Gerrit-Attention: Lei Zhang <the...@chromium.org>
Gerrit-Comment-Date: Wed, 29 Apr 2026 08:51:06 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Aryan Krishnan (Gerrit)

unread,
Apr 29, 2026, 9:02:55 AMApr 29
to Helmut Januschka, Lei Zhang, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
Attention needed from Helmut Januschka and Lei Zhang

Aryan Krishnan added 2 comments

Patchset-level comments
Aryan Krishnan . resolved

Hey, Just happened to see this Cl, I have a small nit here.

Commit Message
Line 9, Patchset 1 (Latest):When inserting before an existing object, adopt that object's content stream so GenerateContent() rewrites the inserted object in place instead of appending a new stream at the end of /Contents.
Aryan Krishnan . unresolved

Nit: Commit message needs line wrap :)

Open in Gerrit

Related details

Attention is currently required from:
  • Helmut Januschka
  • Lei Zhang
Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: pdfium
    Gerrit-Branch: main
    Gerrit-Change-Id: I97127e77d698e94f2c55feb66c6847d17011ceab
    Gerrit-Change-Number: 146990
    Gerrit-PatchSet: 1
    Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
    Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
    Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
    Gerrit-CC: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
    Gerrit-Attention: Lei Zhang <the...@chromium.org>
    Gerrit-Comment-Date: Wed, 29 Apr 2026 13:02:50 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Lei Zhang (Gerrit)

    unread,
    Apr 30, 2026, 1:17:56 PM (13 days ago) Apr 30
    to Helmut Januschka, Aryan Krishnan, Lei Zhang, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
    Attention needed from Helmut Januschka

    Lei Zhang added 1 comment

    File fpdfsdk/fpdf_edit_embeddertest.cpp
    Line 2164, Patchset 1 (Latest): // Insert a rectangle at index 0; this should be drawn first (underneath the
    Lei Zhang . unresolved

    It would be good to also call `FPDFPage_InsertObjectAtIndex(page.get(), ... 2);` to insert a different colored rectangle that overlaps the 2 pre-existing objects, to also make sure z-ordering works correctly in between.

    There's also hello_world_split_streams.pdf, which has multiple streams and can be used to make sure SetContentStream() works correctly and does not confuse multiple existing content streams.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Helmut Januschka
    Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: pdfium
    Gerrit-Branch: main
    Gerrit-Change-Id: I97127e77d698e94f2c55feb66c6847d17011ceab
    Gerrit-Change-Number: 146990
    Gerrit-PatchSet: 1
    Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
    Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
    Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
    Gerrit-CC: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
    Gerrit-Comment-Date: Thu, 30 Apr 2026 17:17:54 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Helmut Januschka (Gerrit)

    unread,
    Apr 30, 2026, 1:58:01 PM (13 days ago) Apr 30
    to Aryan Krishnan, Lei Zhang, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
    Attention needed from Aryan Krishnan and Lei Zhang

    Helmut Januschka added 2 comments

    Commit Message
    Line 9, Patchset 1:When inserting before an existing object, adopt that object's content stream so GenerateContent() rewrites the inserted object in place instead of appending a new stream at the end of /Contents.
    Aryan Krishnan . resolved

    Nit: Commit message needs line wrap :)

    Helmut Januschka

    Done

    File fpdfsdk/fpdf_edit_embeddertest.cpp
    Line 2164, Patchset 1: // Insert a rectangle at index 0; this should be drawn first (underneath the
    Lei Zhang . resolved

    It would be good to also call `FPDFPage_InsertObjectAtIndex(page.get(), ... 2);` to insert a different colored rectangle that overlaps the 2 pre-existing objects, to also make sure z-ordering works correctly in between.

    There's also hello_world_split_streams.pdf, which has multiple streams and can be used to make sure SetContentStream() works correctly and does not confuse multiple existing content streams.

    Helmut Januschka

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Aryan Krishnan
    • Lei Zhang
    Submit Requirements:
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: pdfium
      Gerrit-Branch: main
      Gerrit-Change-Id: I97127e77d698e94f2c55feb66c6847d17011ceab
      Gerrit-Change-Number: 146990
      Gerrit-PatchSet: 2
      Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
      Gerrit-CC: Aryan Krishnan <aryankr...@gmail.com>
      Gerrit-Attention: Lei Zhang <the...@chromium.org>
      Gerrit-Attention: Aryan Krishnan <aryankr...@gmail.com>
      Gerrit-Comment-Date: Thu, 30 Apr 2026 17:57:56 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Lei Zhang <the...@chromium.org>
      Comment-In-Reply-To: Aryan Krishnan <aryankr...@gmail.com>
      unsatisfied_requirement
      open
      diffy

      Aryan Krishnan (Gerrit)

      unread,
      Apr 30, 2026, 2:11:44 PM (13 days ago) Apr 30
      to Helmut Januschka, Lei Zhang, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
      Attention needed from Helmut Januschka and Lei Zhang

      Aryan Krishnan added 1 comment

      Commit Message
      Line 9, Patchset 1:When inserting before an existing object, adopt that object's content stream so GenerateContent() rewrites the inserted object in place instead of appending a new stream at the end of /Contents.
      Aryan Krishnan . unresolved

      Nit: Commit message needs line wrap :)

      Helmut Januschka

      Done

      Aryan Krishnan

      Quite sure it still needs wrap.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Helmut Januschka
      • Lei Zhang
      Submit Requirements:
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: pdfium
        Gerrit-Branch: main
        Gerrit-Change-Id: I97127e77d698e94f2c55feb66c6847d17011ceab
        Gerrit-Change-Number: 146990
        Gerrit-PatchSet: 2
        Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
        Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
        Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
        Gerrit-CC: Aryan Krishnan <aryankr...@gmail.com>
        Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
        Gerrit-Attention: Lei Zhang <the...@chromium.org>
        Gerrit-Comment-Date: Thu, 30 Apr 2026 18:11:39 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Helmut Januschka <hel...@januschka.com>
        Comment-In-Reply-To: Aryan Krishnan <aryankr...@gmail.com>
        unsatisfied_requirement
        open
        diffy

        Helmut Januschka (Gerrit)

        unread,
        Apr 30, 2026, 2:20:01 PM (13 days ago) Apr 30
        to Aryan Krishnan, Lei Zhang, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
        Attention needed from Aryan Krishnan and Lei Zhang

        Helmut Januschka added 1 comment

        Commit Message
        Line 9, Patchset 1:When inserting before an existing object, adopt that object's content stream so GenerateContent() rewrites the inserted object in place instead of appending a new stream at the end of /Contents.
        Aryan Krishnan . unresolved

        Nit: Commit message needs line wrap :)

        Helmut Januschka

        Done

        Aryan Krishnan

        Quite sure it still needs wrap.

        Helmut Januschka

        ```
        Persist FPDFPage_InsertObjectAtIndex() ordering on save

        When inserting before an existing object, adopt that object's content
        stream so GenerateContent() rewrites the inserted object in place
        instead of appending a new stream at the end of /Contents.

        Bug: 507508112
        Change-Id: I97127e77d698e94f2c55feb66c6847d17011ceab
        ```

        it wraps, at most of 70, am i missing something?

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Aryan Krishnan
        • Lei Zhang
        Submit Requirements:
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: pdfium
        Gerrit-Branch: main
        Gerrit-Change-Id: I97127e77d698e94f2c55feb66c6847d17011ceab
        Gerrit-Change-Number: 146990
        Gerrit-PatchSet: 2
        Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
        Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
        Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
        Gerrit-CC: Aryan Krishnan <aryankr...@gmail.com>
        Gerrit-Attention: Lei Zhang <the...@chromium.org>
        Gerrit-Attention: Aryan Krishnan <aryankr...@gmail.com>
        Gerrit-Comment-Date: Thu, 30 Apr 2026 18:19:57 +0000
        unsatisfied_requirement
        open
        diffy

        Aryan Krishnan (Gerrit)

        unread,
        Apr 30, 2026, 2:24:44 PM (13 days ago) Apr 30
        to Helmut Januschka, Lei Zhang, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
        Attention needed from Helmut Januschka and Lei Zhang

        Aryan Krishnan added 1 comment

        Commit Message
        Line 9, Patchset 1:When inserting before an existing object, adopt that object's content stream so GenerateContent() rewrites the inserted object in place instead of appending a new stream at the end of /Contents.
        Aryan Krishnan . unresolved

        Nit: Commit message needs line wrap :)

        Helmut Januschka

        Done

        Aryan Krishnan

        Quite sure it still needs wrap.

        Helmut Januschka

        ```
        Persist FPDFPage_InsertObjectAtIndex() ordering on save

        When inserting before an existing object, adopt that object's content
        stream so GenerateContent() rewrites the inserted object in place
        instead of appending a new stream at the end of /Contents.

        Bug: 507508112
        Change-Id: I97127e77d698e94f2c55feb66c6847d17011ceab
        ```

        it wraps, at most of 70, am i missing something?

        Aryan Krishnan

        On the web editor it seems to extend as far as about 100.

        I have added a suggested edit below. Notice how in the old version all of the content remains in line 9 for some reason on gerrit. Applying this should fix it though.

        ```suggestion


        When inserting before an existing object, adopt that object's content
        stream so GenerateContent() rewrites the inserted object in place
        instead of appending a new stream at the end of /Contents.

        ```

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Helmut Januschka
        • Lei Zhang
        Submit Requirements:
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: pdfium
        Gerrit-Branch: main
        Gerrit-Change-Id: I97127e77d698e94f2c55feb66c6847d17011ceab
        Gerrit-Change-Number: 146990
        Gerrit-PatchSet: 2
        Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
        Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
        Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
        Gerrit-CC: Aryan Krishnan <aryankr...@gmail.com>
        Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
        Gerrit-Attention: Lei Zhang <the...@chromium.org>
        Gerrit-Comment-Date: Thu, 30 Apr 2026 18:24:38 +0000
        unsatisfied_requirement
        open
        diffy

        Helmut Januschka (Gerrit)

        unread,
        Apr 30, 2026, 2:28:13 PM (13 days ago) Apr 30
        to Aryan Krishnan, Lei Zhang, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
        Attention needed from Aryan Krishnan and Lei Zhang

        Helmut Januschka added 1 comment

        Commit Message
        Line 9, Patchset 1:When inserting before an existing object, adopt that object's content stream so GenerateContent() rewrites the inserted object in place instead of appending a new stream at the end of /Contents.
        Aryan Krishnan . resolved

        Nit: Commit message needs line wrap :)

        Helmut Januschka

        Done

        Aryan Krishnan

        Quite sure it still needs wrap.

        Helmut Januschka

        ```
        Persist FPDFPage_InsertObjectAtIndex() ordering on save

        When inserting before an existing object, adopt that object's content
        stream so GenerateContent() rewrites the inserted object in place
        instead of appending a new stream at the end of /Contents.

        Bug: 507508112
        Change-Id: I97127e77d698e94f2c55feb66c6847d17011ceab
        ```

        it wraps, at most of 70, am i missing something?

        Aryan Krishnan

        On the web editor it seems to extend as far as about 100.

        I have added a suggested edit below. Notice how in the old version all of the content remains in line 9 for some reason on gerrit. Applying this should fix it though.

        ```suggestion
        When inserting before an existing object, adopt that object's content
        stream so GenerateContent() rewrites the inserted object in place
        instead of appending a new stream at the end of /Contents.
        ```

        Helmut Januschka

        weird, i might have not have hit "save" in gerrit :) PS3 should be now a copy&paste from your suggestion!, thanks!

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Aryan Krishnan
        • Lei Zhang
        Submit Requirements:
          • requirement is not satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: pdfium
          Gerrit-Branch: main
          Gerrit-Change-Id: I97127e77d698e94f2c55feb66c6847d17011ceab
          Gerrit-Change-Number: 146990
          Gerrit-PatchSet: 3
          Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
          Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
          Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
          Gerrit-CC: Aryan Krishnan <aryankr...@gmail.com>
          Gerrit-Attention: Lei Zhang <the...@chromium.org>
          Gerrit-Attention: Aryan Krishnan <aryankr...@gmail.com>
          Gerrit-Comment-Date: Thu, 30 Apr 2026 18:28:09 +0000
          unsatisfied_requirement
          open
          diffy

          Lei Zhang (Gerrit)

          unread,
          May 4, 2026, 9:36:22 PM (9 days ago) May 4
          to Helmut Januschka, Lei Zhang, Aryan Krishnan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
          Attention needed from Aryan Krishnan and Helmut Januschka

          Lei Zhang voted Code-Review+1

          Code-Review+1
          Open in Gerrit

          Related details

          Attention is currently required from:
          • Aryan Krishnan
          • Helmut Januschka
          Submit Requirements:
          • requirement satisfiedCode-Owners
          • requirement satisfiedCode-Review
          • requirement is not satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: pdfium
          Gerrit-Branch: main
          Gerrit-Change-Id: I97127e77d698e94f2c55feb66c6847d17011ceab
          Gerrit-Change-Number: 146990
          Gerrit-PatchSet: 3
          Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
          Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
          Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
          Gerrit-CC: Aryan Krishnan <aryankr...@gmail.com>
          Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
          Gerrit-Attention: Aryan Krishnan <aryankr...@gmail.com>
          Gerrit-Comment-Date: Tue, 05 May 2026 01:36:19 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Andy Phan (Gerrit)

          unread,
          May 5, 2026, 11:36:44 AM (8 days ago) May 5
          to Helmut Januschka, Lei Zhang, Aryan Krishnan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
          Attention needed from Aryan Krishnan and Helmut Januschka

          Andy Phan voted Code-Review+1

          Code-Review+1
          Open in Gerrit

          Related details

          Attention is currently required from:
          • Aryan Krishnan
          • Helmut Januschka
          Submit Requirements:
            • requirement satisfiedCode-Owners
            • requirement satisfiedCode-Review
            • requirement satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: pdfium
            Gerrit-Branch: main
            Gerrit-Change-Id: I97127e77d698e94f2c55feb66c6847d17011ceab
            Gerrit-Change-Number: 146990
            Gerrit-PatchSet: 3
            Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
            Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
            Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
            Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
            Gerrit-CC: Aryan Krishnan <aryankr...@gmail.com>
            Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
            Gerrit-Attention: Aryan Krishnan <aryankr...@gmail.com>
            Gerrit-Comment-Date: Tue, 05 May 2026 15:36:41 +0000
            Gerrit-HasComments: No
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            open
            diffy

            Helmut Januschka (Gerrit)

            unread,
            May 5, 2026, 12:50:33 PM (8 days ago) May 5
            to Andy Phan, Lei Zhang, Aryan Krishnan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
            Attention needed from Aryan Krishnan

            Helmut Januschka voted Commit-Queue+2

            Commit-Queue+2
            Open in Gerrit

            Related details

            Attention is currently required from:
            • Aryan Krishnan
            Submit Requirements:
            • requirement satisfiedCode-Owners
            • requirement satisfiedCode-Review
            • requirement satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: pdfium
            Gerrit-Branch: main
            Gerrit-Change-Id: I97127e77d698e94f2c55feb66c6847d17011ceab
            Gerrit-Change-Number: 146990
            Gerrit-PatchSet: 3
            Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
            Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
            Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
            Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
            Gerrit-CC: Aryan Krishnan <aryankr...@gmail.com>
            Gerrit-Attention: Aryan Krishnan <aryankr...@gmail.com>
            Gerrit-Comment-Date: Tue, 05 May 2026 16:50:28 +0000
            Gerrit-HasComments: No
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            open
            diffy

            pdfium-scoped@luci-project-accounts.iam.gserviceaccount.com (Gerrit)

            unread,
            May 5, 2026, 1:27:20 PM (8 days ago) May 5
            to Helmut Januschka, Andy Phan, Lei Zhang, Aryan Krishnan, pdfium-...@googlegroups.com

            pdfium...@luci-project-accounts.iam.gserviceaccount.com submitted the change

            Change information

            Commit message:
            Persist FPDFPage_InsertObjectAtIndex() ordering on save

            When inserting before an existing object, adopt that object's content
            stream so GenerateContent() rewrites the inserted object in place
            instead of appending a new stream at the end of /Contents.
            Bug: 507508112
            Change-Id: I97127e77d698e94f2c55feb66c6847d17011ceab
            Commit-Queue: Helmut Januschka <hel...@januschka.com>
            Reviewed-by: Lei Zhang <the...@chromium.org>
            Reviewed-by: Andy Phan <andy...@chromium.org>
            Files:
            • M core/fpdfapi/page/cpdf_pageobjectholder.cpp
            • M fpdfsdk/fpdf_edit_embeddertest.cpp
            Change size: M
            Delta: 2 files changed, 134 insertions(+), 0 deletions(-)
            Branch: refs/heads/main
            Submit Requirements:
            • requirement satisfiedCode-Review: +1 by Andy Phan, +1 by Lei Zhang
            Open in Gerrit
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: merged
            Gerrit-Project: pdfium
            Gerrit-Branch: main
            Gerrit-Change-Id: I97127e77d698e94f2c55feb66c6847d17011ceab
            Gerrit-Change-Number: 146990
            Gerrit-PatchSet: 4
            Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
            Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
            Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
            Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
            open
            diffy
            satisfied_requirement
            Reply all
            Reply to author
            Forward
            0 new messages