(ANDROID=13) The extension, called Pdf_Creator_rukadre, allows adding text, images, and tables to a PDF document with manual customization of positioning, scaling, and formatting. Here are the key parts:
Creating a PDF document:
- The program uses the PdfDocument class to initiate and manage the content of a PDF.
- The pages of the document are set to a default size of A4 (595x842 points).
Adding content:
- Text: Text can be added at a specific position with a custom font size.
- Images: You can add images from the app’s assets, and the extension allows scaling the image to a specific size or by percentage.
- Text with automatic wrapping: The program also handles line breaks automatically if the text is longer than the page’s width, creating new pages if necessary.
Adding tables:
- The AddRow function allows creating tables by adding rows and columns with specific content.
- SetColumnNameAndWidth lets you set the column names and define their widths.
Saving the PDF:
- The PDF is saved in the device’s Downloads folder, in a subdirectory called “ProduzOra.”
- After saving the file, an event (PdfSaved) is triggered, which can be used to notify the user or allow them to open the file.
Opening the PDF:
- The program includes a function to open the PDF using an Android Intent, which allows other apps to read the file.
This program is useful for generating and manipulating PDF documents within Android applications in a dynamic manner with high flexibility in formatting and content.
I created the extension myself, and it works for Android 13 or higher. After the purchase, I provide a link to a video where I explain each component. I’m always available to answer any questions. Thank you very much!
If you’re interested, you can contact me here or at [email protected]