Beiträge von Dave Novo

    Hello,

    the instructions for how to use pdfPrinter.drawJpeg are very unclear. What do I put in the buffer and bufLen parameters.

    Here is a sample

    bmp:=tbitmap.create
    //draw something onbitmap
    jpg:=tjpegImage.create;
    jpg.assign(bmp)
    pdfPrinter.drawJpeg(x,y,w,h,bmp.width,bmp.height,?,?)

    what do I put in place of the question marks?

    Hello,

    My application is a graphing program that can have lots of graphs. The graphs sometimes have thousands of points. When I create the PDF, I create metafiles and then send them to the wpdf canvas. Its great, because the text comes out beautifully!

    However, the PDF file sizes are too large and the page takes too long to come up in Acrobat, because it has to process too much info to render. Is there any way to specify that the WPDF stores the image part of the metafile as JPEG and the text part as text. Otherwise, I will have to convert the entire image to a bitmap prior to rendering on the metafile canvas, which defeats a lot of the nice features that WPDF has.

    Thanks,
    Dave