Page 1 of 1

Save to pdf: borders deviate from print

Posted: Mon Jul 11, 2011 2:12 pm
by gkuhnert
Hi,

when I save a preview to pdf and then print the pdf, the borders are much bigger than the original print. Is it possible to set the border to 0, as the preview contains the correct borders already? This is a problem because the adress on the invoice is at the right place for window envelopes. But if the borders are different you can't print the pdf and fold it into such an envelope.

Re: Save to pdf: borders deviate from print

Posted: Tue Jul 12, 2011 1:12 pm
by gkuhnert
Hi,

Nobody an idea? The characters on the pdf are a lot smaller than the actual print, and exact positioning isn't possible any more...

Re: Save to pdf: borders deviate from print

Posted: Tue Jul 12, 2011 3:41 pm
by nageswaragunupudi
As you correctly observed in your first post, the margins are not set to 0 in the Word Ole Object. For that reason, the contents are condensed in the exported Word file.

By default, SaveToPDF, uses Word 2007 feature to save as pdf, if Office 2007 is installed and Save to PDF plug in of MS Office is installed. Therefore, the PDF saved in this manner also suffers from the same defect.

We shall rectify this soon and inform.

From version 11.06, a separate FWH function is available to save as pdf, without using MS Office or any other 3rd party utility. This function is used by default only when Word version is prior to 2007 or if the Save to pdf plug in is not installed. PDF saved with this function does not have this problem you mentioned.

We can change the behavior of preview to use this function in all cases even when Word 2007 is installed.

Please try setting
TPreview():bSaveAsPDF := { |o| FWSavePreviewToPDF( o ) }
at the beginning of your program.

Please let us know if this output is satisfactory.

Re: Save to pdf: borders deviate from print

Posted: Wed Jul 13, 2011 7:55 am
by gkuhnert
Rao,

thanks for your helpful advice. It works exactly as you expected.
But now I'm experiencing the same problems as in the Post "Crash from FWSavePreviewToPDF"
(http://forums.fivetechsupport.com/viewt ... =3&t=21884)
Findings to that matter I'll post there.