Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

bring all text objects to foreground and make transparent on all pages

New Here ,
Dec 11, 2016 Dec 11, 2016

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.

TOPICS
Acrobat SDK and JavaScript , Windows
976
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 11, 2016 Dec 11, 2016

Not possible with JS.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 11, 2016 Dec 11, 2016

thank you for answer. Then it looks there is no alternative for Illustrator.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 11, 2016 Dec 11, 2016

Yes, that's correct. PDF files are not meant for this type of editing and Acrobat is not built for it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 11, 2016 Dec 11, 2016

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 13, 2016 Dec 13, 2016

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 13, 2016 Dec 13, 2016

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 13, 2016 Dec 13, 2016

"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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2016 Dec 13, 2016
LATEST

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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines