trichview.support
Re: PDF export - advice needed |
Author |
Message |
Andre Voegt |
Posted: 01/31/2004 17:47:32 Hello Sergey, Thank you very much for your fast reply and for your kind advice. >>1. wPDF > > > Demo is here: > http://www.trichview.com/support/files/wpdftest.zip > It uses the same technique as LLPDFLib demo: document is loaded in > reporthelper, then printed at the specified rectangular area on page. > You have full control which documents and where to print. You need to print > main document, headers and footers yourself (for example of printing using > RVReportHelper with header see Demos\Delphi\Assorted\Printing\ReportHelper\) The demo helps me a lot. Thank you. It uses constants for the width and the height of the document const TEST_WIDTH=500; const TEST_HEIGHT=800; const TEST_MARGIN=50; I'd like to print to US Letter format or A4 format. How do I obtain the width and height values for these? Which unit do the TRVReportHelper.Init() and TWPPDFPrinter.StartPage() methods use - inches, centimeters, pixels? > About hyperlinks: TRichView allows to export hyperlinks using > RVReportHelper: OnDrawHyperlink event. This event provides hyperlink > rectangle and the location in document, so you can obtain the target. > So, we have hyperlink rectangle and target, but unfortunately I do not know > how to create a hyperlink with wPDF. You can ask Julian about it. The demo already seems to work with hyperlinks. > As for bookmarks, it's only planned (there will be an event OnDrawCheckpoint > like OnDrawHyperlink). > In my opinion, if you already own wPDF, you do not need another library > (only may be if you have some specific requirements) Thank you for your advice, I think you're right. > I can create an example with header and footer, but I need to know from > where to get them. Should they be read from files or generated > automatically? I'd very much appreciate an example with header and footer. The header should come from another TRichViewEdit, and the footer from another one. Best regards, Andre Voget http://www.Axandra.com |
Powered by ABC Amber Outlook Express Converter