Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4014432
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:29:47+00:00 2026-05-20T09:29:47+00:00

UPDATE: Please see https://softwarerecs.stackexchange.com/questions/71464/java-library-to-insert-invisible-text-into-a-pdf instead. I want to insert invisible text into an existing

  • 0

UPDATE: Please see https://softwarerecs.stackexchange.com/questions/71464/java-library-to-insert-invisible-text-into-a-pdf instead.

I want to insert invisible text into an existing PDF file, to make it searchable.

What library should I use?
I would appreciate links to specific API methods to use.

Free, ideally open source.
Thanks a lot!

(For the curious: I want to automatically OCR incoming scanned papers and make them searcheable, in an Alfresco repository)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T09:29:48+00:00Added an answer on May 20, 2026 at 9:29 am

    3 options. My answers are itext-specific, but you should be able to translate the underlying methods to any sufficiently advance PDF library.

    1. Text render mode 3: “No stroke, no fill”. With iText: myPdfContentByte.setTextRenderMode(PdfContentByte.TEXT_RENDER_MODE_INVISIBLE);
    2. Draw the text behind something. You’re presumably using scanned page images. iText myPdfStamper.getUnderContent(pageNum) makes this easy, and will let you draw the text under the scan. Other libraries that let you access a page’s contents might require you to add your text ‘in the raw’ at the beginning of an existing content stream. You’ll want to check out the “PDF Spec” (google that, you’ll be fine) for details. Chapter 9 is all about text rendering.
    3. Draw the text outside the page’s media or crop box. If you just want some random PDF-savvy search engine to turn up your page this will work, but if you want people looking at the PDF to see the appropriate text selection box… not so much.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Questions Update: Why there is no In[1]: prompt? Please see the following output of
Update: I've filed a bug report on Microsoft Connect: https://connect.microsoft.com/VisualStudio/feedback/details/568271/debugger-halting-on-exception-thrown-inside-methodinfo-invoke#details If you can reproduce
Please see below code snippt: <?php //Sets the update and indicator elements by DOM
Update: Please read this question in the context of design principles, elegance, expression of
UPDATE: Focus your answers on hardware solutions please. What hardware/tools/add-in are you using to
Please, provide code examples in a language of your choice. Update : No constraints
Update: Solved, with code I got it working, see my answer below for the
I am trying to scroll text across the screen which is working well. Update
Please see http://jsfiddle.net/mithun/nuF2Q/1/ I've the HTML structure <div id='slider'> <ul> <li> <a class='pride' href=i1.html>
Update: Check out this follow-up question: Gem Update on Windows - is it broken?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.