PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Apr 23, 2024 11:40 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Apr 14, 2014 5:00 pm 
Offline

Joined: Thu Apr 10, 2014 5:35 pm
Posts: 2
Hi,

I have PDF templates which I load and import specific PdfPages from it in order to construct a PDF document filled with data. The templates have all static content, and in runtime I open the Pdf templates with import option, import the PdfPage needed and stamp dynamic content on it. Both static and dynamic printing involved Embedded fonts. Once this operation is completed in the resultant PDF document I see the Embedded fonts twice, thus increasing the size of the PDF document substantially. How can I avoid this? I don't have much control over deciding which fonts to embed during the dynamic content printing operation.

I need to be able to remove the embedded fonts once I import the PdfPage from the template. Any points are appreciated.

Thanks


Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 15, 2014 8:42 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
Hi!

PDFsharp does not merge embedded fonts.

AFAIK the embedded fonts are only subsets containing the characters that are used. While it's very likely that some characters will be included twice (mainly in the A-Z and a-z range), this shouldn't be a real size problem. Merging the fonts is a very complicated task and not yet implemented.

Obviously it's better to have a single template file (with e.g. 100 pages) than 100 template files with only a single page when the final document consists of more than one template page.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 206 guests


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 post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group