PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Merging PDFs and file size

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
mikebruner



Joined: 18 Dec 2008
Posts: 2

PostPosted: Thu Dec 18, 2008 7:58 pm    Post subject: Merging PDFs and file size Reply with quote

I am using PDFSharp to merge multiple PDF files into one PDF. I'm following the ConcatenateDocuments example.

The PDFs I am combining are all very similar -- they are almost entirely text and use the same fonts.

When I concatenate many files together the file size is very large and I don't quite understand why. If I combine 10 similarly-sized 1MB files together the resulting file size is about 10MB. However if I try another tool such as ABCpdf the resulting file size is much smaller, around 2MB or a little less.

Is there some sort of setting I am missing here? Any tips on how to get the file size down?
Back to top
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Thu Jan 08, 2009 9:52 am    Post subject: Reply with quote

Are you using a Release build? The Debug build creates larger, formatted PDF files for debugging.

Look at the font list of the resulting document. AFAIK the current implementation of PDFsharp doesn't merge the fonts of the source documents (but this is on the To Do list).
With PDFsharp it's more efficient to have a 100 page resource file than 100 single page source files: if you copy 10 pages from a huge 100 page file, fonts will be included only once (I dunno if that helps with your application).
_________________
Regards
Thomas Hoevel
PDFsharp Team
Back to top
View user's profile Send private message Visit poster's website
mikebruner



Joined: 18 Dec 2008
Posts: 2

PostPosted: Thu Jan 08, 2009 2:23 pm    Post subject: Reply with quote

I verified I am using a release build, that doesn't seem to be the issue.

I am not sure how I can tell if PDFSharp is repeatedly including font information for each appended document. When you say to look at the font list of the resulting document, what am I looking for?
Back to top
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Thu Jan 08, 2009 3:06 pm    Post subject: Reply with quote

Open the PDF in Adobe Reader and press Ctrl+D, then go to the Fonts tab.

Names like "Arial", "Arial,bold", "Arial,italic", "Arial,bolditalic" are no duplicates, but different glyphs of the font Arial.

But if you see identical glyph names more than once then these are likely duplicated fonts (normally these are font subsets so you can't tell for sure if they are identical subsets).

PDFsharp was developed to create new PDF files. It's not yet optimized for merging files.
_________________
Regards
Thomas Hoevel
PDFsharp Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com