- Philippe PILAT
- PowerServer 2020 or older (Obsolete)
- Wednesday, 18 July 2018 03:02 PM UTC
Hi all,
I have a PB 2017 R2 (build 1769) application in which I create a PDF file from a datawindow using SaveAs PDF! (Native PDF).
Here is my code :
dw_m.Modify("DataWindow.Export.PDF.NativePDF.UsePrintSpec = No")
dw_m.Modify("DataWindow.Export.PDF.Method = NativePDF!")
dw_m.Modify("DataWindow.Export.PDF.NativePDF.PDFStandard = 1")
dw_m.Modify("DataWindow.Export.PDF.NativePDF.CustomOrientation = 2")
dw_m.Modify("DataWindow.Export.PDF.NativePDF.CustomSize = 4")
li_ret = dw_m.SaveAs("onepager.PDF", PDF!, true)
The result in PB is great and the PDF file is excactly the same as the DW in preview mode. When this application is published to Powerserver WEB, the PDF file is totally different : the report is splitted on 2 horizontal pages, looks not so good (no font is Embedded in the PDF).
Does anyone have a solution with this problem ?
BTW I'll have to publish the same application on Powerserver Mobile for Ipad ...
TIA.
Best regards,
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.