The Ruby on Rails application will have access to a number of images and fonts. Images are visual layout components that will be stored separately as a set of rules. The rules determine the size of the document along with which images are used and where. An application must accept these rules, receive images, and create a PDF that is ready for local printing or emailing.
Fonts will also be important. The user must customize the layout by entering the text to be included in the PDF. Therefore, the PDF must contain the required font so that the document is displayed identically on different machines.
Each PDF file can have many pages. Each page may have different sizes, but this is not necessary. In any case, the ability to manipulate the sizes and margins of PDF data is important.
The only thing that needs to be changed regularly is the text. If this takes too much time, the application can store layouts in third-party PDF files and edit text content directly. In the end, it will be too restrictive for applications designed to work, so I would prefer the application to create the PDF itself.
I had never worked with PDF files before and, for the most part, I never had to output anything to a user outside of my monitor. For best results for print media, a completely different approach may be required. If anyone has any recommendations on how to model the PDF format, that would really be appreciated. Technical aspects of printing, such as selection, resolution, and color, are already included in layouts and images.
, PDF , . Ruby PDF, , . C , , .
?