Save to pdf: borders deviate from print

Save to pdf: borders deviate from print

Postby gkuhnert » Mon Jul 11, 2011 2:12 pm

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

Re: Save to pdf: borders deviate from print

Postby gkuhnert » Tue Jul 12, 2011 1:12 pm

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
gkuhnert
 
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands

Re: Save to pdf: borders deviate from print

Postby nageswaragunupudi » Tue Jul 12, 2011 3:41 pm

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
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Save to pdf: borders deviate from print

Postby gkuhnert » Wed Jul 13, 2011 7:55 am

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/viewtopic.php?f=3&t=21884)
Findings to that matter I'll post there.
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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 80 guests