Introduction
Chapter 1: Hello HTML to PDF
- Structure of the examples
- Converting HTML to PDF
- Converting HTML to iText objects
- Summary
Chapter 2: Defining styles with CSS
- Old-fashioned HTML
- Inline CSS
- What’s the difference between id and class?
- Internal CSS
- External CSS
- When CSS is defined in different places, which CSS takes precedence?
- Using absolute positioning
- Adding “Page X of Y” using an @page rule
- Adding page breaks
- Summary
Chapter 3: Generating PDF based on Media Queries
- Examining the example HTML file
- Creating a PDF file for Print
- Responsiveness in HTML
- Creating a PDF for the desktop
- What is the relationship between pt and px?
- Creating a PDF for a tablet
- Creating a PDF for a smartphone
- The semantic structure of a document
- Summary
Chapter 4: Creating reports using pdfHTML
- Description of a use case
- Converting XML to HTML using XSLT
- Adding a background and a custom header or footer
- Converting an HTML page to a single-page PDF
- Adding bookmarks to a report
- Creating PDF/A documents with pdfHTML
- Summary
Chapter 5: Custom tag workers and CSS appliers
- Changing the behavior of a tag
- Introducing custom tags
- Creating your own ITagWorker implementation
- Creating custom CSS appliers
- Implementing your own custom CSS
- Summary
Chapter 6: Using fonts in pdfHTML
- Standard Type 1 fonts
- Fonts shipped with iText
- System fonts
- Web Open Font Format fonts
- Adding selected fonts to the font provider
- Choosing the right order for your font selection
- Choosing the encoding that is right for you
- Internationalization
- Summary
Chapter 7: Frequently Asked Questions about pdfHTML
- How to convert an ASP or JSP page to PDF?
- How to parse multiple HTML files into one PDF?
- Can pdfHTML render Base64 images to PDF?
- Can I generate a PDF from a URL instead of from a file on disk?
- Do we need a browser engine to render HTML+CSS to PDF
- Does my HTML have to be valid XML?
- How to add metadata to a PDF using pdfHTML?
- How do the measurement systems in HTML relate to the measurement system in PDF?
- Can I convert an HTML form to a PDF?
- How to render certain HTML entities (such as arrows) to PDF?
- Why can’t I embed a font due to licensing restrictions?
- Which languages are supported in pdfHTML?
- How to convert HTML containing Arabic/Hebrew characters to PDF?
- Why is my PDF missing several characters?