stan marshall Guest
|
Posted: Wed Dec 21, 2005 6:57 pm Post subject: Tool to draw PDF file on printer canvas? |
|
|
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
|
|