I know it isn't wanted to re-ask the same question, but I do... Please for give me.
Can someone put me in the right direction by calculating StringWidth.
I mean the lenght in pixels, units or some value from any string in a specified font.
Maybe I can draw a string on a blanc...
I made some simple functions for easy writing on top of an existing PDF.
Thanks to DonManfred post: PDFBox post#4
I need to calculate stringwidth for center align and right align.
On StackOverflow I found the stringwidth could by calculated with a function at font object.
But in the for B4J...
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...
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...
This is a partial wrap for Apache PDFBox.
In this early stage i am focusing on manipulating PDF AcroForms and building new PDF with AcroForm.
The Examplecode and the needed Objects i got my...
PDFBoxWrapper is a Class Module that use PDFBox to view PDF-documents.
The PDFBoxWrapper Class module need a Pane and a layout to show the PDF-document in the Pane. The Pane and the name of the layout must be specified as parameters to the initialize routine of the class.
The layout must...