Created PDF differs from WPRichText

  • Using XE7 with wPDF 4 Standard.
    I am creating PDF files from WPRichText RTF documents.
    To do it, I use the following code

    Code
    pdf := TWPPDFExport.Create(Application);
      pdf.DLLName    := sPath + '\WPDF400W.DLL';
      pdf.FontMode   := wpEmbedType3;
      pdf.Source     := WPRichText1;
      pdf.FileName   := sFlePDF;
      pdf.Print;


    I see that the length of the generated PDF differs from what is in the WPRichText, if WPRichText is 1 page long, the PDF file needs 2 pages, and the last few lines goes to the second page.
    Is there any way to map exactly the WPRichText RTF document length to the PDF file.

    • Offizieller Beitrag
    Zitat

    I see that the length of the generated PDF differs from what is in the WPRichText, if WPRichText is 1 page long, the PDF file needs 2 pages, and the last few lines goes to the second page.
    Is there any way to map exactly the WPRichText RTF document length to the PDF file.

    If this happens you have probably loaded the file in a different editor (with slightly different settings) to PDF it. You can attach wPDF to your main editor and export from there directly.

    Or do you use "WordWrap=true"? That will change the format to the width of the window, not paper, in the editor.