Improper letting (line spacing)

  • I have an RTF file that consists of a 3 x 2 table. Each cell contains a JPG and 5 lines of caption underneath. When creating the PDF, the spacing between the lines of text is increased substantially. The font is a TrueType font. When I use the Acrobat PDFWriter, the original letting (line spacing) is retained, but not with RTF2PDF. I have tried a couple of different options to try and correct this, including embedding the fonts and the following Enhanced options, to no avail. The only thing that seems to affect it (although not correctly) is Page margins. Here is my code:
    ---------------
    PDFControl1.BeginDoc PDFfilename, 0
    PDFControl1.ExecIntCommand 1000, 0
    PDFControl1.ExecStrCommand 1002, RTFfilename
    PDFControl1.ExecIntCommand 1010, PageWidth
    PDFControl1.ExecIntCommand 1011, PageHeight
    'margins
    PDFControl1.ExecIntCommand 1012, RptOptions.PageSetup.LeftMargin - 180
    PDFControl1.ExecIntCommand 1013, RptOptions.PageSetup.RightMargin - 180
    PDFControl1.ExecIntCommand 1014, RptOptions.PageSetup.TopMargin
    PDFControl1.ExecIntCommand 1015, 0
    'options
    PDFControl1.PDF_EnhancedOptions = 0
    PDFControl1.PDF_EnhancedOptions = 4
    PDFControl1.ExecIntCommand 1100, 0
    PDFControl1.EndDoc
    ---------------

    I am evaluating the demo for use in my products. I need to be able to retain the original letting before I can use the wPDFControl. I can provide the sample RTF file if necessary.

    Thank you.

    • Offizieller Beitrag

    The line spacing is controlled by the RTF engine part of wRTF2PDF - not the PDF engine itself. You can send me your demo file (as you did on 10.4) and I look which RTF tage makes the difference.

    I am not sure if you received my answer I sent you on this question - I experience a problem with filters catching our e-mails since so many viruses use our address as (faked) replay address.

    My answer wasY:

    > One of my files (single.pdf) converted OK, but the other one (multi.rtf)
    > has a table of images and text and the second row of the table didn't
    > convert. Do you know if you have a setting to allow this?

    > Attached are the samples. I'm ready to buy your product if this will
    > work.

    Please use the DLL
    http://www.wpcubed.com/ftp/wPDFControlDemoDLL140.zip
    It should print the file fine.

    Julian