Skip to content
Discussion options

You must be logged in to vote

Is this intentional behavior? Is there any way such that only required images are included in the output documents?

The creators of that PDF document took a simple approach: There is only a single resource catalog that lists all images - and that catalog is used for all pages.

PDFsharp does not analyze the contents of the page, PDFsharp includes all images listed in the required resources of the page.

Normally, PDF pages should only list the resources they actually use. In that case, PDFsharp will only include the images needed by the imported pages.
Other tools may be smarter and analyze the page contents. That is not yet done by PDFsharp and not planned for the near future.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by itb-dev-sn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants