MrKim Well-Known Member Licensed User Longtime User Aug 19, 2020 #1 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: Copy 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: Copy 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.
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: Copy 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: Copy 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.
Erel B4X founder Staff member Licensed User Longtime User Aug 19, 2020 #2 It should be simple to test. Copy the PDF to your PC and compare them. Upvote 0