Read the title of PDF by Java code

Asked By 30 points N/A Posted on -
qa-featured

Hi All,

I need to read the title of PDF by java code, please do the needful for providing the code that will read the titles of multiple PDF files placed in a specified path. Please do the needful.

Thanks & Regards,

Angela Martinez

SHARE
Answered By 0 points N/A #198713

Read the title of PDF by Java code

qa-featured

iText is a free available java library which is powerful and supports generation of PDF. You can choose a variety of fonts to be used in reading your PDF document. This library contains classes to generate PDF text in various fonts and can also generate tables.

iText API:  

·         com.itextpdf.text.Document is the main class for generating PDF documents.

·         Another class com.itextpdf.text.Paragraph represents an indented paragraph.

·         com.itextpdf.text.Chapter represents a chapter in the PDF document.

·         com.itextpdf.text.Font This class contains all specifications of a font, such as family of font, size, style,             and color.

Related Questions