PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Mar 19, 2024 9:51 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Mon Apr 06, 2009 4:52 pm 
Offline

Joined: Mon Apr 06, 2009 12:35 pm
Posts: 4
How do I save a pdf as an image? I wrote the pdf using a font to generate bar code and I would like to save the file as an image so I do not have to deploy the font on all machines that use this pdf.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Apr 07, 2009 8:17 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3092
Location: Cologne, Germany
How about embedding the font in the PDF file?

PDFsharp can't create images from PDF files, but e. g. GhostScript can (and it has an API that you can call (sample included with PDFsharp)).

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Apr 07, 2009 2:07 pm 
Offline

Joined: Mon Apr 06, 2009 12:35 pm
Posts: 4
I am using the method DrawString passing a not native font. This font was purchased. But when I open the pdf on another machine that does not have this font the barcode naturally does not appear. I believe if I save the pdf as an image that problem is resolved.

Is it possible to do this with e. g. Ghostscript?

Sorry, my English is bad...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Apr 07, 2009 2:34 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3092
Location: Cologne, Germany
PDFsharp can't create images from PDF files, but e. g. GhostScript can (and it has an API that you can call (sample included with PDFsharp)).

How about embedding the font in the PDF file?
You can specify this via an option in PDFsharp and/or MigraDoc.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Apr 07, 2009 3:09 pm 
Offline

Joined: Mon Apr 06, 2009 12:35 pm
Posts: 4
Please, where can I find the example of IIRC?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Apr 15, 2009 10:19 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3092
Location: Cologne, Germany
See
PDFSharp-1.2.1269.beta+MigraDocLite-1.2.2546\PDFsharp\dev\PdfSharp.Ghostscript.Demo

and
PDFSharp-1.2.1269.beta+MigraDocLite-1.2.2546\PDFsharp\code\PdfSharp.Ghostscript

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 52 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