• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin

Add or Search Hidden Text in PDF Document & Change Annotations Orientation using Java

Ranch Hand
Posts: 714
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What’s new in this release?

We are pleased to announce the release of Aspose.Pdf for Java 11.4.0 . In order to add hidden text, pass an argument of true to TextState.setInvisible(…) method. TextFragmentAbsorber finds all text that match pattern (if specified). Please note that hidden text in the document will be invisible for end user while viewing the document with PDF reading software (e.g. Acrobat Reader). But it can be found using text search. There are several ways to make text invisible for end user in PDF and we have implemented one of those techniques. However the text added through our approach can be found using TextFragmentAbsorber and we cannot guarantee that any hidden text added by third party applications can be found using same approach but in case you encounter any issue, please share the resource file and we can further investigate the scenario. The processParagraphs() method was introduced to calculate objects placed inside PDF file and in case we need to have page count information during PDF file generation, this method can be used as it manipulates file objects and returns the desired information. In earlier release versions, once this method was called, the file objects could not be accessed any further. So if you need to add any new object to existing page instance, it was not possible and you had to have a new Page instance where objects can be placed. Nevertheless, starting this new release, you can utilize same Page objects even after calling the processParagraphs() method. A new Rotate(...) method is added for annotation which provides the capabilities to change annotations orientation. As well as the enhancements and features discussed above, there have been specific improvements regarding Text extraction from PDF, image placement inside PDF, PDF to HTML, HTML to PDF, PDF to PDF/A, XPS to PDF, PDF to Image, PDF to TIFF, TIFF to PDF conversion and PDF printing are also improved. Some important improved features included in this release are given below

- Add and search hidden text in PDF document
- Rotate method is added for FreeTextAnnotation
- Using same Page object after processPragraphs() call
- PDF Text extraction takes several minutes, with 100% CPU
- Image Inserted to PDF is abit blur
- HTML to PDFconversion throws internal exception
- PDF to PDFA conversion throws NullPointerException
- TIFF to PDF conversion throws TiffImageException
- OutOfMemoryError when printing PDF file
- PDF to PNG conversion throws java.lang.InternalError exception
- TIFF to PDF - Conversion is failing
- XPS to PDF: Text missing in output PDF
- When printing PDF file, the font quality is dropped
- PDF print - resultant printout is not correct
- PDF to PS conversion - font quality is dropped
- PDF to PDFA3a conversion fails compliance test - AnalyseMediendatenbank.pdf
- PDF to PDF/A_2a - Resultant file is not PDF/A_2a compliant
- PDF to HTML - Conversion process takes much time
- PDF to HTML - Conversion process takes much time
- PDF to HTML - Conversion process takes 1 minute
- PdfViewer: print quality is poor
- PDF to HTML - Conversion is taking too much time
- Images not getting delete when using ImagePlacementAbsorber
- PdfViewer is printing blurry image.
- Second occurrence of a text is not being searched with regular expression and replaced
- XML Import - not all form fields are being populated
- TextFragmentAbsorber does not replace flatten form text
- Printing quality of resultant file is not correct
- PDF to PNG - resultant image is not correct
- PDF to PDFA1b: output PDFA1b fails compliance verification

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.

- Find and Replace Text by its Location
- Convert PDF File into XPS Format

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
Aspose – Your File Format APIs
Phone: 888.277.6734
Fax: 866.810.9465
Sunglasses. AKA Coolness prosthetic. This tiny ad doesn't need shades:
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic