Skip to content

Add the possibility to create a pdf from different ones (bug 1997379) - #20409

Merged
calixteman merged 1 commit into
mozilla:masterfrom
calixteman:split_merge_p1
Nov 7, 2025
Merged

Add the possibility to create a pdf from different ones (bug 1997379)#20409
calixteman merged 1 commit into
mozilla:masterfrom
calixteman:split_merge_p1

Conversation

@calixteman

Copy link
Copy Markdown
Contributor

For now it's just possible to create a single pdf in selecting some pages in different pdf sources. The merge is for now pretty basic (it's why it's still a WIP) none of these data are merged for now:

  • the struct trees
  • the page labels
  • the outlines
  • named destinations For there are 2 new ref tests where some new pdfs are created: one with some extracted pages and an other one (encrypted) which is just rewritten.
    The ref images are generated from the original pdfs in selecting the page we want and the new images are taken from the generated pdfs.

Comment threadsrc/core/editor/pdf_editor.js Fixed
@calixteman
calixtemanforce-pushed the split_merge_p1 branch 3 times, most recently from 6df136f to 9114af7CompareOctober 31, 2025 15:46
Comment threadsrc/core/editor/pdf_editor.js
Comment threadsrc/core/editor/pdf_editor.js Outdated
Comment threadsrc/core/editor/pdf_editor.js Outdated
Comment threadsrc/core/editor/pdf_editor.js Outdated
Comment threadsrc/core/primitives.js
Comment threadsrc/core/worker.js Outdated
Comment threadsrc/core/writer.js
Comment threadtest/unit/api_spec.js Outdated
Comment threadtest/driver.js Outdated
Comment threadtest/test.mjs Outdated
@calixteman
calixtemanforce-pushed the split_merge_p1 branch 7 times, most recently from ff5a566 to c4f05f4CompareNovember 5, 2025 14:28

@timvandermeijtimvandermeij left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me, with the final comments addressed, WIP removed from the commit message and passing tests. Nice work!

Comment threadsrc/core/worker.js Outdated
Comment threadsrc/core/editor/pdf_editor.js Outdated
Comment threadtest/unit/api_spec.js
Comment threadtest/test_manifest.json
@calixtemancalixteman changed the title [WIP] Add the possibility to create a pdf from different ones (bug 1997379)Add the possibility to create a pdf from different ones (bug 1997379)Nov 7, 2025
@calixteman

Copy link
Copy Markdown
ContributorAuthor

/botio test

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Received

Command cmd_test from @calixteman received. Current queue size: 0

Live output at: http://54.193.163.58:8877/5619354ac07dafc/output.txt

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_test from @calixteman received. Current queue size: 0

Live output at: http://54.241.84.105:8877/a766a7c095d6d61/output.txt

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/a766a7c095d6d61/output.txt

Total script time: 60.00 mins

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/5619354ac07dafc/output.txt

Total script time: 79.13 mins

  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
 different ref/snapshot: 15

Image differences available at: http://54.193.163.58:8877/5619354ac07dafc/reftest-analyzer.html#web=eq.log

For now it's just possible to create a single pdf in selecting some pages in different pdf sources.
The merge is for now pretty basic (it's why it's still a WIP) none of these data are merged for now:
- the struct trees
- the page labels
- the outlines
- named destinations
For there are 2 new ref tests where some new pdfs are created: one with some extracted pages and an other
one (encrypted) which is just rewritten.
The ref images are generated from the original pdfs in selecting the page we want and the new images are
taken from the generated pdfs.
@calixteman

Copy link
Copy Markdown
ContributorAuthor

@calixteman
calixteman merged commit 85ed401 into mozilla:masterNov 7, 2025
9 checks passed
@calixteman

Copy link
Copy Markdown
ContributorAuthor

/botio makeref

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Received

Command cmd_makeref from @calixteman received. Current queue size: 0

Live output at: http://54.193.163.58:8877/c3d100efb509041/output.txt

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_makeref from @calixteman received. Current queue size: 0

Live output at: http://54.241.84.105:8877/fc109caa87599fc/output.txt

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/fc109caa87599fc/output.txt

Total script time: 17.83 mins

  • Make references: Passed
  • Check references: Passed

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/c3d100efb509041/output.txt

Total script time: 32.36 mins

  • Make references: Passed
  • Check references: Passed

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@calixteman@moz-tools-bot@timvandermeij@github-advanced-security