Code Monkey home page Code Monkey logo

aspose.pdf-for-java's Introduction

GitHub all releases GitHub

Java API to Process & Manipulate PDF Files

Aspose.PDF for Java is a PDF document creation component that enables your Java applications to read, write and manipulate PDF documents without using Adobe Acrobat.

Directory Description
Examples A collection of Java examples that help you learn the product features.

aspose.pdf Package Features

PDF Document Featres

  • Set basic information (e.g. author, creator) of the PDF document.
  • Configure PDF Page properties (e.g. width, height, cropbox, bleedbox etc.).
  • Set page numbering, bookmark level, page sizes etc.
  • Apply document open action, open mode as well as appearance.
  • Document can have different page transition effects such as dissolve or box.
  • Create PDF documents via XML, API or XML and API combined.
  • Ability to work with text, paragraphs, headings, hyperlinks, graphs, attachments etc.

Security Features

  • PDF documents can be encrypted up to 128 bits.
  • Master and user passwords can be set for PDF encryption.
  • Apply rescriptions on content modification, copying, printing and other operations.

Conversion Features

  • Convert an existing XML file (.XML) or XmlDocument to a new PDF document or a PDF file stream.
  • Convert conventional Image formats into PDF file.
  • Convert PCL files into PDF file.

For a more comprehensive list of features, please visit Features of aspose.pdf Package.

com.aspose.pdf Package Features

  • Supports 14 core fonts.
  • Support for Type 1, TrueType, Type 3, CJK fonts.
  • Unicode support is available.
  • Add, search, extract and replace text in PDF files.
  • Add/delete, extract and replace images.
  • Insert, delete, split PDF pages.
  • Support for Linearization (optimization for the web).
  • Set and get XMP metadata.
  • Validate (PDF/A-1a, PDF/A-1b).
  • Work with bookmarks, annotations, PDF forms, stamps, watermarks and more.

For a more comprehensive list of features, please visit Features of com.aspose.pdf Package.

com.aspose.pdf.facades Package Features

  • Supports 14 core fonts.
  • Support for Type 1, TrueType, Type 3, CJK fonts.
  • Unicode support is available.
  • Add, replace and extract text & images (from the entire PDF, a particular page, or a range of pages).
  • Work with bookmarks, annotations, PDF forms, links, actions, signature and more.
  • Print PDF to default, specified, physical, or virtual printer.
  • Print PDF to XPS file or XPS printer.

For a more comprehensive list of features, please visit Features of com.aspose.pdf.facades Package.

Read & Write PDF & Other Formats

Fixed Layout: PDF, XPS
Books: EPUB
Web: HTML Other: TEX, XML, SVG

Save PDF Documents As

Microsoft Office: DOC, DOCX, XLS, XLSX, PPTX
Images: JPEG, PNG, BMP, TIFF, EMF
Other: MobiXML, XML, TEXT

Read Formats

CGM, MHT, PCL, PS, XSLFO, MD

Supported Environments

  • Microsoft Windows: Windows Desktop & Server (x86, x64)
  • macOS: Mac OS X
  • Linux: Ubuntu, OpenSUSE, CentOS, and others
  • Java Versions: J2SE 8.0 (1.8) or above

Get Started with Aspose.PDF for Java

Aspose hosts all Java APIs at the Aspose Repository. You can easily use Aspose.PDF for Java API directly in your Maven projects with simple configurations. For the detailed instructions please visit Installing Aspose.PDF for Java from Aspose Repository documentation page.

Extract text from a PDF file using Java

// For complete examples and data files, please go to https://github.com/aspose-pdf/Aspose.Pdf-for-Java
// Open document
Document pdfDocument = new Document("input.pdf");

// Create TextAbsorber object to extract text
TextAbsorber textAbsorber = new TextAbsorber();

// Accept the absorber for all the pages
pdfDocument.getPages().accept(textAbsorber);

// Get the extracted text
String extractedText = textAbsorber.getText();

// Create a writer and open the file
java.io.FileWriter writer = new java.io.FileWriter(new java.io.File("Extracted_text.txt"));
writer.write(extractedText);

// Write a line of text to the file tw.WriteLine(extractedText);
// Close the stream
writer.close();

Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License

aspose.pdf-for-java's People

Contributors

adam-skelton avatar adeelilyas2014 avatar ali-salman avatar aliahmedaspose avatar anholub avatar asadalikhan90 avatar aspose-email-gists avatar aspose-pdf-gists avatar aspose-words-gists avatar codewarior avatar fahadadeel avatar farhan-raza avatar fatimaahmed avatar iqbal-aspose avatar kashifiqb avatar masood-anwer avatar msohailismail avatar muhammadumargroupdocs avatar nausherwan-aslam avatar rizwanniazigroupdocs avatar saqib-razzaq-aspose avatar saqibrazzaq avatar saudaspose avatar shahzad-latif avatar shoaibkhan-aspose avatar valeriy-ten-aspose avatar valeriyten avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.