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 

Saving pdf file as an image

 
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
eduardo.luiz



Joined: 06 Apr 2009
Posts: 4

PostPosted: Mon Apr 06, 2009 4:52 pm    Post subject: Saving pdf file as an image Reply with quote

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.
Back to top
View user's profile Send private message MSN Messenger
Thomas Hoevel



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

PostPosted: Tue Apr 07, 2009 8:17 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
eduardo.luiz



Joined: 06 Apr 2009
Posts: 4

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

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...
Back to top
View user's profile Send private message MSN Messenger
Thomas Hoevel



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

PostPosted: Tue Apr 07, 2009 2:34 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
eduardo.luiz



Joined: 06 Apr 2009
Posts: 4

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

Please, where can I find the example of IIRC?
Back to top
View user's profile Send private message MSN Messenger
Thomas Hoevel



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

PostPosted: Wed Apr 15, 2009 10:19 am    Post subject: Reply with quote

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
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