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,
the problem is not to generate the PDF, it is created either in PB or via Powerserver. The problem is the quality and the rendering when the PDF is generated via Powerserver.
Regards,
Philippe.
Understood. The problem is that with the current version, even if you sepecify .export.pdf.method = NativePDF!, the generated pdf is not real native pdf. So there’re quality and rendering issues. This will be improved in the coming PB 2017 R3.
So in the current version, you may try the below resolution to generate a real native pdf with better quality and rendering.
1 call saveas function without any parameter, for example:
dw_1.saveas()
2 select ‘NativePDF’ as ‘Save as Type’
Regards,
ZhaoKai