Android Question Printing PDF with B4A and B4J

LGS

Member
Licensed User
Longtime User
Hello everyone.
I am trying to print the same pdf file by B4J and B4A(Wifi-Canon MF8080) using Cannon: https://play.google.com/store/apps/details?id=jp.co.canon.android.printservice.plugin
But the prints on the sheet are different.

The pdf file is letter size. So when printing in B4J the printing is correct, but when printing in B4A the texts are printed a few millimeters towards the center of the sheet. I assume that the printing is defaulting to the A4 size attributes. Although the printer (Canon) has the sheet size set to letter.
For that reason I am trying in B4A to modify the printing attributes through PrintPdf2.
But changing the format from MediaSize to "NA_LETTER" has no effect.
I have also tried using "ISO_A6","ISO_A4",or "NA_LEGAL" and it has no effect either.

I appreciate anyone who can help me by giving me some ideas so that through B4A I can print the pdf file with letter-size attributes.

I attach test codes and the printouts of the same file printed from B4J vs B4A on the same sheet
 

Attachments

  • B4J vs B4A.PDF
    4.7 KB · Views: 7
  • PrintB4A.zip
    12.2 KB · Views: 4
  • PrintB4J.zip
    4.4 KB · Views: 3
  • test.pdf
    5.6 KB · Views: 4
Top