oops: I wrote:

   > To create a PDF canvas, you must use PDF StartPage function before 
BeginDoc.

I meant AFTER of course. Sorry about that. Here's some typical code:
______________________

pdf_printer.BeginDoc;
pdf_printer.StartPage(page_width_pixels, page_height_pixels, dpi_X, dpi_Y, 0);

pdf_printer.Canvas.StretchDraw( Rect1, Image1.Picture.Graphic );
pdf_printer.Canvas.StretchDraw( Rect2, Image2.Picture.Graphic );
pdf_printer.Canvas.StretchDraw( Rect3, Image3.Picture.Graphic );
pdf_printer.Canvas.StretchDraw( Rect4, Image4.Picture.Graphic );

pdf_printer.EndPage;
pdf_printer.EndDoc;
______________________

regards,

Martin.

Reply via email to