Copy link to clipboard
Copied
Hello
Is there a way to send all text object to foreground and make transparent on every page of a pdf file?
Now I do this in Illustrator page by page, but I suspect in Acrobat the same could be done in a more straightforward way.
Copy link to clipboard
Copied
Not possible with JS.
Copy link to clipboard
Copied
thank you for answer. Then it looks there is no alternative for Illustrator.
Copy link to clipboard
Copied
Yes, that's correct. PDF files are not meant for this type of editing and Acrobat is not built for it.
Copy link to clipboard
Copied
You can use Preflight to place all text in a layer and then hide the text layer. If that would work you can automate it with JavaScript.
Copy link to clipboard
Copied
Thank you for suggestion.
This is something new for me.
I have tried to run a standard profile called "Create separate layers for vector objects, images and text..." and it looks it does separate text and images, first images come and then text according to the existing order.
I wonder whether it is possible to modify profile to send text to the top layer and images to the bottom layer?
Copy link to clipboard
Copied
You can adjust the order of layers (OCGs) by manipulating the doc.setOCGOrder method, though I'm not sure this will do exactly what you want, since OCGs don't necessarily behave like layers do in Illustrator/Photoshop/InDesign for example. You can find ore info in the Acrobat JavaScript reference.
Copy link to clipboard
Copied
"layers" in PDF are not like layers in Illustrator. They do not have a display order and don't paint in sequence. They are more like a label on elements and you can show/hide by label. So layers are not the way to change display order or to move to front.
Copy link to clipboard
Copied
piling on... but hopefully for the sake of clarity.
"Layers" was an extremely unfortunate choice of terms chosen by the UI team to describe the panel that shows "Optional Content Groups" or OCGs. It will help you greatly by thinking of the content as "optional" (visible or hidden, printing or non-printing) rather than ordered.
I think there's a blog post in the difference and confusion around layers and OCGs.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now