I have an iOS application for filling information about electric circuits. Once everything is filled, the application creates a PDF file for reporting the results I use to send it to the clients. As I’m using the “bitmap” method (creating the PDF from the thumbnail of a UIWebBrowser control) the PDF result is very heavy in size and the final resolution is not the best.
I’m looking for someone who knows how to create the same PDF file, but in vectors (this is that the text is selectable, and the box shapes or backgrounds doesn’t get crisp when zooming in).
The basic PDF file is only 10 pages long, but some pages can be repeated based on the data from the database (filled in my program), so only 10 pages should be designed by code.
The PDF have many different fields which will contain text from the database. So a wrap text function should be handled to fit the maximum text in each box without overlapping the design.
So far the best solution I found is to use the libHaru. This can create the PDF perfectly, it only need to define each text, line, image, etc in the PDF by code.
LibHaru: [url removed, login to view]
Reference: [url removed, login to view]
But, it will be a very long work to define everything by code, and if later I need to change any minimum stuff it would be very complicated. So I will really consider those coders who are be able to build the PDF design into for example a XIB and a code to convert that XIB into the libHaru commands for the PDF. This way it would be easy to change the design (and it also would help the coder).
I will consider the project complete when we can test the test application with the data example I will provide for each of the fields in the PDF and the file is generated correctly matching the format of the PDF you can find attached.
The base project for testing is the one found in the libHaru project. The coder will need to create the needed code to create the PDF file based on the data for the PDF fields I will provide.
Thank you and if you have any question please let me know.