How can I create a pdf with invisible/transparent text with my limited software tools?

1

I mostly use Preview.app to create simple pdf files (ever since I learned that you can add text to them with it). It suits my needs, and still would now... but if I try to select the "alpha" color (white box, red diagonal line) from the text-styling dialog, it does not let me set it to that.

I suspect that Preview.app simply does not have that capability.

I've also tried using inkscape. I import the image I want to use, put that on the lowest layer, add text above it, and then try to make it invisible. I've set its opacity to 0, I've tried setting its fill to "X", I even set A to 0 in its RGBA.

After saving each of these experiments to pdf, when I open in Preview, there is no selectable/invisible text.

Can either of these tools accomplish what I'm attempting to do? Is there another free tool (open source or otherwise) that can accomplish this?

Note: it's important that I be able to position the invisible text to match the background to some extent, and that it's selectable via mouse dragging.

John O

Posted 2016-09-11T19:17:59.417

Reputation: 615

Answers

1

I confirm that I get the same result with Inscape 0.92 under Linux, and viewing with okular. The text is (it seems) discarded as not being visible at all. This may be an optimisation choice (completely hidden elements have normally no purpose in PDF, they do in SVG)

That said, unless your background is very uniform, you could use a 1% opacity or a 1/255 alpha value. Then it will be retained.

Joce

Posted 2016-09-11T19:17:59.417

Reputation: 637