WPPDFPrinter.pageheight and width

  • Hi
    I have set the size of the page as:
    WPPDFPrinter1.StartPage(Round(8.27 * Resolution), Round(11.69 * Resolution), Resolution, Resolution, 0);

    But later when I want to find out pageheight and width using the following they both return 0
    and so I am forced to recalculate as per the comments
    pageheight := WPPDFPrinter1.readpageheight; //round(11.69 * screen.PixelsPerInch);
    pagewidth := WPPDFPrinter1.readpagewidth; //round(8.27 * screen.PixelsPerInch);

    Please can you advise how to get these values
    Regards
    Jenny

    • Offizieller Beitrag

    readpageheight and width is an now obsolete property from the time when wPDF included a method to extract information from PDF files. To extract information, text and images from PDF files use WPViewPDF now.