hibrid0 Active Member Licensed User Longtime User Jan 10, 2018 #1 I'm using the Printing and PDF library (https://www.b4x.com/android/forum/threads/printing-and-pdf-creation.76712/#content) and I want if is possible to save the PDF file generated from Printer.printhtm without Printing prompt, I want to save on internal location and the show on PDF viewer inside my app.
I'm using the Printing and PDF library (https://www.b4x.com/android/forum/threads/printing-and-pdf-creation.76712/#content) and I want if is possible to save the PDF file generated from Printer.printhtm without Printing prompt, I want to save on internal location and the show on PDF viewer inside my app.
Erel B4X founder Staff member Licensed User Longtime User Jan 10, 2018 #2 You can use PdfDocument to create a pdf file. Upvote 0
hibrid0 Active Member Licensed User Longtime User Jan 10, 2018 #3 Erel said: You can use PdfDocument to create a pdf file. Click to expand... Thanks for your quick answer, but with the pdfdocument is more hard to make the pdf, is with canvas or I'm losing something. Upvote 0
Erel said: You can use PdfDocument to create a pdf file. Click to expand... Thanks for your quick answer, but with the pdfdocument is more hard to make the pdf, is with canvas or I'm losing something.
Erel B4X founder Staff member Licensed User Longtime User Jan 10, 2018 #4 Yes, you need to draw it with canvas. You can use WebView.CaptureBitmap to convert the html to a bitmap and then draw it with Canvas.DrawBitmap. Upvote 0
Yes, you need to draw it with canvas. You can use WebView.CaptureBitmap to convert the html to a bitmap and then draw it with Canvas.DrawBitmap.