Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Add/Remove PDF Metadata, Set DPI/PPI for images & Add Buffered Image to PDF Doc

 
Ranch Hand
Posts: 714
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What’s new in this release?

We are pleased to announce the release of Aspose.Pdf for Java 9.5.0. . Aspose.Pdf for Java has been providing support for adding, updating, deleting and extracting images from PDF files. Recently, we received a requirement for setting the DPI/PPI (Pixels Per Inch) factor for images when adding them to a PDF file, or when replacing existing images in a PDF file. Starting from the release of Aspose.Pdf for Java 9.5.0, we have introduced support for adding an image from a BufferedImage instance to a PDF document. Now you can use any InputStream and not just FileInputStream objects to add an image. So when using a java.io.ByteArrayInputStream object, you do not need to store any files on the system. PDF to HTML conversion is one of the most popular Aspose.Pdf features because it makes it possible to create PDF files that can be viewed on various platforms without a PDF document viewer application. The output HTML is in accordance with WWW standards and can easily be viewed in all web browsers. Using this feature, PDF files can be viewed on hand held devices because you do not need to install any PDF viewing application: a simple web browser is enough to view the file. By default, when converting PDF files to HTML, any images in the PDF are saved in a folder created in the same directory as the output HTML. However, recently we received a request for making it possible to specify a different folder for saving images when generating HTML files. To accomplish this, the saveOptions.SpecialFolderForAllImages property has been introduced. It can be used to specify a target folder for storing output images. Aspose.Pdf for Java offers the feature to add, update, and remove metadata from PDF documents. Before attempting to remove metadata from a PDF, check if the source PDF contains metadata. PCL file to PDF conversion has been supported in Aspose.Pdf for Java for a while. However, in this release we also provide support for HP-GL to PDF conversion. When signing a PDF document using a signature, you basically confirm that its contents should remain “as is”. Consequently, any changes made afterwards invalidate the signature and thus you know if the document was altered. Certifying a document first allows you to specify the changes that a user can make to the document without invalidating the certification. It is possible to store the values of these form fields in a separate file and that file is an FDF (Forms Data Format) file that contains the values of the form fields in key/pair fashion. Using Aspose.Pdf for Java, developers cannot only export the values of their PDF form fields to an FDF or XFDF file but also to an XML file. The most important thing to know is that all these files use different syntax to save the values of PDF form fields. The following code snippets shows the steps to export FDF file from PDF and also how to import FDF file into PDF. As well as the new features mentioned above, this version includes fixes related to converting SVG, PCL, HTML and XPS files to PDF, and converting PDF files to image format, better text and image extraction, general performance improvements when generating PDF files and much more. Some important new and improved features included in this release are given below

- Create TrueTypeFontHeader for converted bitmap fonts (0,1,2-bound)
- Setting DPI/PPI of images in PDF
- add digital signatues while creating PDF document
- PDF to HTML conversion: To specify image folder
- Support HP-GL to PDF conversion
- FDF file conversion to/from PDF
- Remove MetaData information from PDF file
- Provide support to add Image from BufferedImage into PDF document
- System default font should be used in case of missing fonts
- PDF to PNG - Crop marks appearing and objects missing in image is fixed
- Image to PDF: memory consumption with large images is fixed
- XPS to PDF - Charts are now appearing in resultant PDF
- Review and fix errors in ported pdf-generator by regression tests
- When adding attachment to PDF file, the name and contents of attachment get corrupted
- Issue is resolved for adding image in existing PDF document
- PDF to Image: resultant image is correctted
- PDF to DOC: Random character insertion in Heading is fixed
- XPS to PDF: images are rendered correctly
- Jar is throwing Exception while retrieving pdf Signature Information
- Enhanced adding digital signature to PDF file
PageHeight limiation issue is resolved
- An exception is being generated when retrieving annotations from PDF
- optimize() method corrupts the Bookmark contents is nowfixed
- PDF to PNG - Column background is appearing as black is fixed
- PDF to text: extraction of duplicate characters
- Incorrect text is being extracted from PDF
- Text replace issue is resolved in evaluation mode
- All text after modified text are broken
- Bookmark disappears after specifing ViewerPreference
- SVG to PDF - contents are chopped
- SVG to PDF - Contents moving outside right margin

Newly added documentation pages and articles

Some new tips and articles have now been added into Aspose.Pdf for Java documentation that may guide you briefly how to use Aspose.Pdf for performing different tasks like the followings.

- Setting DPIor PPI of images in PDF
- Remove Metadata from PDF

Overview: Aspose.Pdf for Java

Aspose.Pdf is a Java PDF component to create PDF documents without using Adobe Acrobat. It supports Floating box, PDF form field, PDF attachments, security, Foot note & end note, Multiple columns document, Table of Contents, List of Tables, Nested tables, Rich text format, images, hyperlinks, JavaScript, annotation, bookmarks, headers, footers and many more. Now you can create PDF by API, XML and XSL-FO files. It also enables you to converting HTML, XSL-FO and Excel files into PDF.

More about Aspose.Pdf for Java

- Homepage of Aspose.Pdf for Java
- Download Aspose.Pdf for Java
- Read online documentation of Aspose.Pdf for Java

Contact Information
Aspose Pty Ltd
Suite 163, 79 Longueville Road
Lane Cove, NSW, 2066
Australia
Aspose – Your File Format APIs
sales@aspose.com
Phone: 888.277.6734
Fax: 866.810.9465
 
It would give a normal human mental abilities to rival mine. To think it is just a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!