I have been analyzing free libraries for the creation of PDFs for use in commercial applications on Android, and so far I have not found any that meet all my expectations, features and licenses. As can be seen this and in this question right here in SOpt.
The best library I've found so far has been Android PDF Writer , which has the ability to create basic PDF and has a license ( BSD) appropriate for my project, as per in this great software license post .
Although doing a lot of things related to PDF, it was designed only for simple PDF creation, with texts and images.
So I would like to know / find some logic documentation to create a PDF, so I can add resources to the library?
As an example of the code of the cited library, to add text to the PDF is implemented in this way:
public void addText(int leftPosition, int topPositionFromBottom, int fontSize, String text, String transformation) {
addContent(
"BT\n" +
transformation + " " + Integer.toString(leftPosition) + " " + Integer.toString(topPositionFromBottom) + " Tm\n" +
"/F" + Integer.toString(mPageFonts.size()) + " " + Integer.toString(fontSize) + " Tf\n" +
"(" + text + ") Tj\n" +
"ET\n"
);
}
The first implementation I'm intending is to create tables where the only documentation I've found so far has been this , which I could not understand completely, and would like something more detailed, for example: table structure, structure of the columns, structure of the columns, structure of the lines, structure of the items. To understand and be able to implement each part of the table as a module.