background preloader

Ch15

Facebook Twitter

Java EE Reference. Technology Network for Java Developers. Oracle Technology Network > Java Software Downloads View All Downloads Top Downloads New Downloads What's New Java in the Cloud: Rapidly develop and deploy Java business applications in the cloud.

Technology Network for Java Developers

Essential Links Developer Spotlight Java EE—the Most Lightweight Enterprise Framework? Blogs. CMS Websites, SEO & Flash. PeekABoo. Part4.chapter15.PeekABoo If you compile and execute this example, you'll get the following result: You can download the full source code of PeekABoo, or read it here: /* * This class is part of the book "iText in Action - 2nd Edition" * written by Bruno Lowagie (ISBN: 9781935182610) * For more info, go to: * This example only works with the AGPL version of iText.

PeekABoo

ExtractImages. MyImageRenderListener. Part4.chapter15.MyImageRenderListener You can download the full source code of MyImageRenderListener, or read it here: The MyImageRenderListener example is part of the book iText in Action (ISBN 9781935182610).

MyImageRenderListener

It's a helper class for another example. You can use this example for inspiration, but please read the book if there's something you don't understand about the example. ShowTextMargins. ExtractPageContentArea. Part4.chapter15.ExtractPageContentArea If you compile and execute this example, you'll get the following result: preface_clipped.txt You can download the full source code of ExtractPageContentArea, or read it here:

ExtractPageContentArea

ExtractPageContentSorted2. Part4.chapter15.ExtractPageContentSorted2 If you compile and execute this example, you'll get the following result: preface_sorted2.txt.

ExtractPageContentSorted2

ExtractPageContentSorted1. Part4.chapter15.ExtractPageContentSorted1 If you compile and execute this example, you'll get the following result: preface_sorted1.txt You can download the full source code of ExtractPageContentSorted1, or read it here: The ExtractPageContentSorted1 example is part of the book iText in Action (ISBN 9781935182610).

ExtractPageContentSorted1

It's a small standalone application. Keywords for this example: Existing PDFs, Parsing PDF, PdfReader, TextExtractionStrategy, Parsing PDF > extracting text. ExtractPageContent. InspectPageContent. Part4.chapter15.InspectPageContent If you compile and execute this example, you'll get the following result: calendar_info.txt You can download the full source code of InspectPageContent, or read it here: The InspectPageContent example is part of the book iText in Action (ISBN 9781935182610).

InspectPageContent

It's a small standalone application. Keywords for this example: Existing PDFs, Parsing PDF, PDF syntax, PdfReader, Parsing PDF > extracting text, Parsing PDF > inspect PDF syntax, Parsing PDF > read content stream. MyTextRenderListener. Part4.chapter15.MyTextRenderListener You can download the full source code of MyTextRenderListener, or read it here: /* * This class is part of the book "iText in Action - 2nd Edition" * written by Bruno Lowagie (ISBN: 9781935182610) * For more info, go to: * This example only works with the AGPL version of iText.

MyTextRenderListener

ParsingHelloWorld. Part4.chapter15.ParsingHelloWorld If you compile and execute this example, you'll get the following result: You can download the full source code of ParsingHelloWorld, or read it here: The ParsingHelloWorld example is part of the book iText in Action (ISBN 9781935182610).

ParsingHelloWorld

It's a small standalone application. ParseTaggedPdf. Part4.chapter15.ParseTaggedPdf If you compile and execute this example, you'll get the following result: moby_extracted.xml.

ParseTaggedPdf

StructuredContent. Part4.chapter15.StructuredContent If you compile and execute this example, you'll get the following result: moby.pdf You can download the full source code of StructuredContent, or read it here: The StructuredContent example is part of the book iText in Action (ISBN 9781935182610). It's a small standalone application.

Keywords for this example: Marked Content, Structure tree, Tagged PDF, XML, Structure tree > role map, XML > convert XML to PDF. ContentParser. StructureParser. Part4.chapter15.StructureParser. ReadOutLoud. ObjectData. SvgLayers. SvgToPdf. OptionalContentActionExample. LayerMembershipExample2. LayerMembershipExample1. OptionalContentExample. Page content and structure. Chapter 15 of the book iText in Action 2E covers: Making content optional Working with marked content Parsing PDF files This chapter describes how to add operators and operands to make part of the content optional. You'll also use marked content to add custom parameters to graphical objects, to make the content accessible for the visually impaired, and to store the structure of the document.

Finally, you'll do a fair attempt to parse a PDF document, and to extract content from a page.