View previous topic :: View next topic |
Author |
Message |
eduardo.luiz
Joined: 06 Apr 2009 Posts: 4
|
Posted: Mon Apr 06, 2009 4:52 pm Post subject: Saving pdf file as an image |
|
|
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 |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Tue Apr 07, 2009 8:17 am Post subject: |
|
|
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 |
|
|
eduardo.luiz
Joined: 06 Apr 2009 Posts: 4
|
Posted: Tue Apr 07, 2009 2:07 pm Post subject: |
|
|
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 |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Tue Apr 07, 2009 2:34 pm Post subject: |
|
|
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 |
|
|
eduardo.luiz
Joined: 06 Apr 2009 Posts: 4
|
Posted: Tue Apr 07, 2009 3:09 pm Post subject: |
|
|
Please, where can I find the example of IIRC? |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Wed Apr 15, 2009 10:19 am Post subject: |
|
|
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 |
|
|
|