BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tool to draw PDF file on printer canvas?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (General)
View previous topic :: View next topic  
Author Message
stan marshall
Guest





PostPosted: Wed Dec 21, 2005 6:57 pm    Post subject: Tool to draw PDF file on printer canvas? Reply with quote



Hi all...

Does anyone know of a third-party tool that will allow me to draw an
existing PDF file on the printer canvas? (Not actually print the file, just
draw it on the printer canvas.)

I have written an application (in Delphi 5) that assembles booklets. Most of
the pages are created and drawn on the printer canvas by my application, but
I need to be able to insert PDFs as pages also.

For example:

Printer.BeginDoc;
Printer.NewPage;
....
{draw my own page using textout, etc.}
....
Printer.NewPage;
Printer.Canvas.DrawPDFFileOnPrinterCanvas('c:pdffile.pdf');
....
{draw some stuff over the PDF file using textout, etc.}
....
Printer.NewPage;
....
{draw my own page using textout, etc.}
....
Printer.EndDoc;

I need something that will allow me to do the DrawPDFFileOnPrinterCanvas
part.

As of now, I convert the PDF file to an EMF file and then draw that on the
canvas. That works OK except that it converts the colors from CMYK (in the
PDF file) to RGB (in the EMF file), so I get a bit of a color shift.

So, I need a way of drawing the PDF files on the canvas without having to
convert from CMYK to RGB. Seems to me the easiest, fastest, and most
reliable way would be to just draw the PDF file directly to the printer
canvas, but I can't figure out any method or find a tool for doing that.

(If anyone has any other ideas on how to get the PDF file onto the printer
canvas in CMYK, I would love to hear them.)

Thanks.

Stan


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (General) 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 © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.