Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Creating portfolios #1190

vidigal started this conversation in General
Jul 3, 2024 · 3 comments · 1 reply
Discussion options

Is it possible to create portfolios ("a package of other PDFs files") using OpenPDF?

You must be logged in to vote

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
Comment options

 PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(portfolioFile));
 document.open();
 PdfCopy copy = new PdfCopy(document, new FileOutputStream(portfolioFile));

This is something one should never do, creating both a PdfWriter and a PdfCopy writing to the same output file concurrently.

According to chatgbp.

Ah, that explains the error.

Comment options

Hhmmm, I assume what the OP meant actually is a portable collection (see ISO 32000-2 section 12.3.5 Collections), not a simple merge. In Acrobat these collections are called portfolios (see Acrobat Combine tool, Options, "Save as PDF Portfolio").

These portable collections contain other files as attachments and also have some extra data from which a PDF viewer can build an interface to access those attachments.

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /