I use the print library to print PDF content, as described at the post below. It works just fine.
Now, I need to print PDF on one part of the page, and HTML on the same page.
Would it be possible to do that with the print library ?
Here are 3 classes :
- PdfCreator : create PDF
- PDFViewer : render PDF
- clsFormPDF : form to preview PDF (Page navigation, Zoom, Print, Save)
PdfCreator and PDFViewer wraps PDFBox
You have to download pdfbox-app-2.0.20.jar and copy it in the additional folder
You have to download...
I am using the ab material framework template
it is running fine. but there is following seciton in the code
' add an image to say what we really mean....
' note where the image is derived from. Go find it in the folder and replace it with your own image (if you wish)...
I was trying to use the PDF printing library discussed at https://www.b4x.com/android/forum/threads/printing-and-pdf-creation.76712/ but pictures were terrible.
The values posted as example are for a resolution of 72dpi, which is quite inadequate.
Here is what I do to get 300dpi printing...
This is a class 'clsPDFViewer' which use PDFBOX to render a pdf file.
Use the form clsPDFPreview to preview a PDF file.
You can browse pages, zoom in and out, print and save the pdf.
You can add custom button for others actions.
Don't forget to add the jar file...
Salve a tutti 👋
In questi giorni di clausura forzata causa Covid-19 sto studiando B4A per realizzare un'App per la mia associazione; Molte cose le ho già "digerite" e ci sto prendendo gusto ma moltissime, ovviamente, sono quelle ancora da capire.
Ora mi sono arenato nel tentativo di far aprire...
NB: Update browser settings to view PDF internally!!!
We started with BANanoPDFMake, which was a coding based approach to creating PDF Documents. To be able to display the documents in the browser using the pre-built in PDF viewer, we went on to BANanoPDFView
The nice thing...
Well, this basically does what it says. It uses the built-in PDF viewer to view your PDF files.
Just pass it the URL of the pdf file and the width and height of the HTML element you want to render to and whalla!
Ive tested it on Edge, Firefox, Opera, Chrome
Phew. A dream come through. Very excited right now...
What I have tried to do here is to simplify this as much as possible. This means one can create a PDF document as simply as..
I am using the code given by Erel here to generate a PDF file in A4 size and use print framework to print it. But when the print preview comes up, the paper size is always Letter. User has to manually change to A4 before printing. I found a java code with which we can set the default print size...
I have a WebSocket Class that generates a pdf report and saves it to a browser accessible location based on dynamically generated (from this same WebSocket class) controls to get report parameter input from the browser user. I can WebUtils.redirect to the generated pdf file but I want to either...
I found this library that work in B4A made by @MarcoRome
I would like to know if works in B4J too, because i test it and no results.
I would like to extract text raw from a PFD.
I have looked briefly at the jPDFjet library but it seems like a heavyweight option aimed primarily at the finer points of PDF authoring rather than engineering in the opposite direction. Is there a simpler option I have missed?
As per subject matter this lesson is about a data-table with a pager and also functionality to export its contents to PNG, PDF, CSV and XLSX.
It's so amazing that with just a few object (map) settings and then a few simple calls webix does...
My check app is coming along fine, thanks to B4A, but I am facing a show stopper with both laser printers HP and Brother.
First time around, I get a preview, and the printer prints nicely.
Second time I try to print, I get a preview, then printer error. No detail available. I cannot release...
I am implementing PDF generation with the Printing library as described here:
It works well with a HP MFP M227fdw printer, but a Brother HL-L3210CW has errors with exactly the same code.
It seems like the...
I found the printing library describe here
I downloaded the zip file from there, but am confused about the version number. The page states that it was updated to Version 1.10, but in the XML file, it is still 1.06.
OUR 237Pos App is Upgraded to B4X and 2 new Versions (B4i,B4J) adding the capability of Holding Sales.
237POS Cross Platform Point Of Sale Application built with B4X tools that will run on Desktops(Windows,macOS,Linux) Android Tablets And iPads.
Customizations And Full Source Codes Available...
How can I show a multi page pdf in a CustomlistView and set each page so that the user is able to zoom the image?
I also tried using Webview but it does not work:-
dim image as imageview
Private CLV1 As CustomListView
For i = 0 To pdf.PageCount-1
Dim p As B4XView =...