Android Question writing pdfs

DPaul

Active Member
Licensed User
Longtime User
Hi,

I found this tutorial from dec 2014:
iOS Tutorial Reading and Writing PDF Documents
by Erel.

I would like to make sure this is the state-of-the-art recommended method today.
If it is, I have a 2 questions:
1. I see there is talk of writing to canvas, this canvas does not have to be visible, i guess?
Meaning, the app could write a whole pdf doc, without the user seeing it during the process.
2.
pcvs.InitializePDF(File.DirDocuments, "1.pdf", 612, 792)
Is there any relationship between,eg. 612,792 (or whatever)
and an A4 page when the pdf doc is printed?

Thanks
Paul

 

DonManfred

Expert
Licensed User
Longtime User
You are asking here in the B4A Forum.

Is your question about B4A or B4I?
B4I: You should create a new thread in the b4i forum!
B4A: With Android Api 19 there is a PdfDocument and a Page which can be used to create a PDF using Canvas. See here. But here you ONLY can use the Canvas to "Paint on a PDF-Page" you just created. I did not released it as yet.
There are a wrap for PDFJet (search forum) from @warwound (i think) which can be used too.
 
Last edited:
Upvote 0

DPaul

Active Member
Licensed User
Longtime User
Thanks.
Question is about b4A.
My pdf will contain mostly text and line drawing.
No images planned.
I am happy with the simplest of the simple solutions :)

Paul
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top