Rasterize all layers except hidden text

This Forum is for the use of End Users requiring help and assistance for Tracker Software's PDF-Tools.

Moderators: Tracker Support, TrackerSupp-Daniel, Sean - Tracker, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Tracker Supp-Stefan

Post Reply
User avatar
Jensen Head
User
Posts: 211
Joined: Mon Sep 13, 2021 8:12 am

Rasterize all layers except hidden text

Post by Jensen Head »

When I check "Rasterize content with overlapping objects" in the "Sanitize Document Options" window [1], the hidden text is removed. How to avoid this by merging all layers except the hidden text one?

[1] "Sanitize Document will remove hidden data and metadata so any sensitive information will not be published with your PDF. Choose an option to be..."
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 15291
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Rasterize all layers except hidden text

Post by Tracker Supp-Stefan »

Hello Jensen Head,

You are asking the Editor to rasterize everything and make your page a flat image - so it is expected that this invisible text was removed (it was actually flattened in the rasterization process). I am not aware of a way to use this specific sanitization option and keep your text.

Kind regards,
Stefan
User avatar
Jensen Head
User
Posts: 211
Joined: Mon Sep 13, 2021 8:12 am

Re: Rasterize all layers except hidden text

Post by Jensen Head »

1. Select hidden text, copy it, merge all layers, paste?
2. Make a copy of the document, delete all images in it, merge the layers in the original document, merge the two documents with an overlay (like this is not possible in the PDF-Tools now)?
User avatar
Paul - Tracker Supp
Site Admin
Posts: 5864
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Rasterize all layers except hidden text

Post by Paul - Tracker Supp »

Do you have a lot of files to do this on?

I don't think that PDF-Tools will be able to fully automate this.

Do you get the results you are after when doing it manually in the Editor?
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
User avatar
Jensen Head
User
Posts: 211
Joined: Mon Sep 13, 2021 8:12 am

Re: Rasterize all layers except hidden text

Post by Jensen Head »

Paul - Tracker Supp wrote: Wed Mar 30, 2022 4:40 pmDo you get the results you are after when doing it manually in the Editor?
No, these are just my thoughts on how you can try to implement this at the level of additional application tools. It is hardly possible to do this manually due to the inevitable offsets of the text layer relative to the images.
User avatar
Paul - Tracker Supp
Site Admin
Posts: 5864
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Rasterize all layers except hidden text

Post by Paul - Tracker Supp »

Aaah - OK - well I think I will ask the dev team their thoughts on this.

They are pretty busy today, hopefully I will get the chance to have a chat with them about his today.
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
User avatar
Jensen Head
User
Posts: 211
Joined: Mon Sep 13, 2021 8:12 am

Re: Rasterize all layers except hidden text

Post by Jensen Head »

Were you able to consult? Is it possible to somehow implement the discussed functionality?

I tried to create two copies of the document - a document with only hidden text, and a document with only other objects. Then merge the objects in the second document, and use the "Import as Layer Overlay" [1] tool to merge the two documents:
_
2022-04-12_13-42-26.png
_
The result is what I need. But as far as I understand it can't be used for batch processing right now.

[1] Overlay a destination PDF document with a selected source PDF document.
User avatar
Paul - Tracker Supp
Site Admin
Posts: 5864
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Rasterize all layers except hidden text

Post by Paul - Tracker Supp »

Sorry Jensen Head,

never did have that discussion. My bad, I let things get away from me.

I'll be sure to bring it up later today when I anticipate seeing the dev concerned.

:oops:
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
User avatar
Paul - Tracker Supp
Site Admin
Posts: 5864
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Rasterize all layers except hidden text

Post by Paul - Tracker Supp »

And they have agreed to add the feature: RT#6025: Feature request :: Editor :: Tools :: Rasterize all layers except hidden text

enjoy
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
User avatar
Jensen Head
User
Posts: 211
Joined: Mon Sep 13, 2021 8:12 am

Re: Rasterize all layers except hidden text

Post by Jensen Head »

It is likely that the implementation of the discussed functionality will affect the "Optimize PDF" settings window. Currently, in the "Discard User Data" tab there is only the item "Discard hidden layer content, and flatten visible layers". This item combines all objects including hidden text objects.
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 5978
Joined: Wed Jan 03, 2018 6:52 pm

Re: Rasterize all layers except hidden text

Post by TrackerSupp-Daniel »

Hello, Jensen Head

Thank you for the observation, I cannot say with certainty if there will be any impact in this area from implementing such a feature, but you may be correct. Only time will tell.

Kind regards,
Daniel McIntyre - Support Technician
Tracker Software Products (Canada) LTD

Support: <Support@tracker-software.com>
Post Reply