How to insert invisible text into a PDF?
问题 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: 3 options. Text render mode 3: "No stroke, no fill". myPdfContentByte.setTextRenderMode(PdfContentByte.TEXT_RENDER_MODE_INVISIBLE); Draw the text behind