iOS Question B4X - Creating pdf files - B4i, B4A, (B4J?)

MrKim

Well-Known Member
Licensed User
Longtime User
I need to create a document for printing. It needs to be the same regardless of device. B4i or B4A. (B4J would be nice too)
In the code I found for B4i

it says this:
B4X:
Dim pcvs As Canvas
pcvs.InitializePDF(File.DirDocuments, "1.pdf", 612, 792)
'Note that 612 x 792 is the standard document size.

In B4A it says:
B4X:
pdf.Initialize
pdf.StartPage(595, 842) 'A4 size
So my question is A4 scaled differently between IOS as Android? The aspect ratio is not even the same between these two.

Any other tips on crating pdfs greatly appreciated.
 
Top