Skip to content

Ways to add text without bloating file-size? #232

Discussion options

You must be logged in to vote

PDFsharp cannot write object streams, so currently all object streams will be decompressed when opening a PDF file. This can lead to larger PDF files.
Unreferenced objects will be removed. This can lead to smaller PDF files.
When adding new text, new font objects will be added. Fonts will be added once, no matter how many pages you change in one session.

Running a PDF compressor after changing PDF files with PDFsharp may reduce file size if the optimzer can create object streams and maybe even merge fonts.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Christoph-Wagner
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