• Hi


    we checking if we can use wptools and wpdf to auto generate print "Anzeigen" for our newspaper.

    Question1:
    For this we must autosize the "height" of a page depending by the size of the "Anzeigen" Text. The page-height are depending by the size of the text.

    For calucate the "Anzeigen"-price we need the page-height of the document.

    Can we do this with WPTools/WPDF?

    with best regards

    Nils Bödeker

    • Offizieller Beitrag

    Hello,

    after the text was formatted you can examine the page height using the property WPRichText.Memo.TextHeight. That propertzy uses the unit Memo.CurrentYPixelsPerInch.

    Of course it is required to first start with a verly large page and restrict the page height later.

    You can access the page height using the propertzy WPRichText.Header.PageHeight. It is measured in twips which is 1/1440 of an inch.

    Julian