Hi,
in order to get rid off Ghostscript, we're using NativePDF to save datawindow as PDF.
We just migrate from PB2019R2 to PB2019R3, and it seems that the PDF generated are not the same size anymore.
It's like the margin are bigger and also a larger zoom, with the result that some columns are moving to the right, creating a new page.
we use :
dw.Object.DataWindow.Export.PDF.NativePDF.UsePrintSpec = 'Yes'
dw.Object.DataWindow.Print.Paper.Size = '0'
the default is A4 and if we set the value to 9 (A4) we have another (better) result but still different from print preview
If I remember, we experienced this issue in PB2019R1 that was solved in R2 but it's back again in R3.
What we want is the same result in PDF as in the Print preview datawindow.
What would be the values to set ? Is this problem still present in PB2021 ?
Best regards
All datawindows have PB default values for the 4 margins.
By forcing dw.Object.DataWindow.Print.Paper.Size = '9' (A4) , the PDF is better generated in one page (even if it's not quite the same as dw preview or Ghostscript PDF)
So we will use this workaround.
Thanks
Remarks : We won(t be able to move to PB2022 since you have decided to remove .NBT Soap Webservices, but that's another story.