Save to pdf: borders deviate from print

Post Reply
User avatar
gkuhnert
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands
Contact:

Save to pdf: borders deviate from print

Post 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.
Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
User avatar
gkuhnert
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands
Contact:

Re: Save to pdf: borders deviate from print

Post 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...
Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Save to pdf: borders deviate from print

Post 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.
Regards

G. N. Rao.
Hyderabad, India
User avatar
gkuhnert
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands
Contact:

Re: Save to pdf: borders deviate from print

Post 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.
Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
Post Reply