PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Wed Dec 13, 2017 3:24 am

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: Tue Jun 20, 2017 1:35 pm 
Offline

Joined: Tue Jun 20, 2017 12:58 pm
Posts: 2
Hello.

I'm merging different PDF files. I'm doing it following the examples:
1.- creating a new document (newdoc)
2.- opening each doc to be merged in import mode.
3.- for each page of each document opened in 2, newdoc.AddPage(page)
4.- save the newdoc newdoc.Close()

After finishing I'm running Ghostcript to embed all the used fonts in the merged document.
It works ok, but it is quite slow.

I wonder if there is a way to get rid of the Ghoscript step, i.e. embedding the used fonts when I merge the PDF files with pdfsharp. I've seen examples of embedding fonts in pdfsharp but it is always explicitely done (Font by Font).
In my case I'd like ALL the used fonts to be embedded.

Any clue will be appreciated.

Thanks in advance

Oskar


Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 21, 2017 8:08 am 
Offline
empira Employee
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2740
Location: Cologne, Germany
Hi!
osaiz wrote:
After finishing I'm running Ghostcript to embed all the used fonts in the merged document.
It works ok, but it is quite slow.
AFAIK fonts that are embedded before the merge will still be embedded after the merge.
PDFsharp cannot embed fonts for existing PDF documents that use non-embedded fonts, so a third-party tool is needed for this.
No extra step is needed if all fonts are already embedded.

_________________
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: Bing [Bot] and 3 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:  
Powered by phpBB® Forum Software © phpBB Group