Batch change color of base content shapes or text

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: Daniel - PDF-XChange, PDF-XChange Support, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Post Reply
MedBooster
User
Posts: 1372
Joined: Mon Nov 15, 2021 8:38 pm

Batch change color of base content shapes or text

Post by MedBooster »

|Batch change color of base content shapes or text
I realize JavaScript is not able to manipulate base content, but is there a feature like that in PDF-XCE itself?

It would be cool to be able to do this through the whole PDF; or just for certain pages.

E.g. here I would like to convert the color of all base content in light blue to dark blue:
image.png
My wishlist https://forum.pdf-xchange.com/viewtopic.php?p=187394#p187394
Disable SPACE page navigation, fix kb shortcut for highlighting advanced search tool search field, bookmarks with numbers, toolbar small icon size, AltGr/Ctrl+Alt keyboard issues
Willy Van Nuffel
User
Posts: 2726
Joined: Wed Jan 18, 2006 12:10 pm

Re: Batch change color of base content shapes or text

Post by Willy Van Nuffel »

To change the color of the text in base content, annotations and fields, you can use the "Replace Fonts"-option in the Convert-ribbon.

Optionally, you select the pages where the replacement should happen.

Via "Add" you can add the desired rules. In that dialog-box you should only indicate the color that needs to be replaced by an other one.
°
PDF-XChange Editor - Replace Fonts.png
°
To change the color of shapes, in case it goes about comments like circles, rectangles, ..., you could think about grouping them in the Comments-pane, then select them all and globally changing their color-properties (via the Properties-pane).

In case of base content shapes... I do not have an immediate idea...

Kind regards
MedBooster
User
Posts: 1372
Joined: Mon Nov 15, 2021 8:38 pm

Re: Batch change color of base content shapes or text

Post by MedBooster »

hmm that's why I asked, I had actually hoped there would be a similar way to replace shape color

After all, in some PDFs the text isn't even text, but rather shapes.

IDK why... maybe some way of flattening the PDF (not scanning, it is still completely digital)


Anyway, it seems like you can't use "replace fonts" only to replace colors, it seems like you have to input a font name as well ( I tried )
image.png
My wishlist https://forum.pdf-xchange.com/viewtopic.php?p=187394#p187394
Disable SPACE page navigation, fix kb shortcut for highlighting advanced search tool search field, bookmarks with numbers, toolbar small icon size, AltGr/Ctrl+Alt keyboard issues
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 10872
Joined: Wed Jan 03, 2018 6:52 pm

Re: Batch change color of base content shapes or text

Post by Daniel - PDF-XChange »

Hello, MedBooster

In the case of shapes, it would not be possible to change "color A" to "color B", however you could select a whole group of shapes, and change their color all at once.

This is done by manually selecting them with the "Edit > objects > shapes" tool, and then grabbing your bundle:
image.png
image.png (16.97 KiB) Viewed 526 times
And heading to the properties pane:
image(1).png
image(1).png (17.27 KiB) Viewed 526 times
I don't believe that there are any plans to add a function to "find and replace shape colors" at this time, but if we see more demand for it, I will discuss it with the Dev team.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
MedBooster
User
Posts: 1372
Joined: Mon Nov 15, 2021 8:38 pm

Re: Batch change color of base content shapes or text

Post by MedBooster »

and what about my question about changing the color of all text from one to another without inputting the font names?
My wishlist https://forum.pdf-xchange.com/viewtopic.php?p=187394#p187394
Disable SPACE page navigation, fix kb shortcut for highlighting advanced search tool search field, bookmarks with numbers, toolbar small icon size, AltGr/Ctrl+Alt keyboard issues
Willy Van Nuffel
User
Posts: 2726
Joined: Wed Jan 18, 2006 12:10 pm

Re: Batch change color of base content shapes or text

Post by Willy Van Nuffel »

You do not need to indicate a font, just the colors. See my explanation and print screens.
Finally click OK and OK.
User avatar
MishaH
User
Posts: 11
Joined: Wed Sep 11, 2024 1:43 pm

Re: Batch change color of base content shapes or text

Post by MishaH »

Hello, MedBooster.
MedBooster wrote: Fri Jan 17, 2025 5:57 pm and what about my question about changing the color of all text from one to another without inputting the font names?
From your description, you are trying to use Replace Fonts for the entire document (Page Range = All), only for the comments (Apply to = Annotations) and only for those that are currently have a white text color(Current Color).
If such comments exist, the text color in them should change.
Note that you can select one or more of these comments and click the "Add from Selection" button in the dialog to get the exact values of the properties, so you can specify exactly which properties you want to replace.
And as Willy Van Nuffel noted, specifying only colors should work, if it doesn't, please share your example and we will help you find a solution.

Kind regards
MedBooster
User
Posts: 1372
Joined: Mon Nov 15, 2021 8:38 pm

Re: Batch change color of base content shapes or text

Post by MedBooster »

Oops I just had to choose apply to "content" for base content as well.
So that works fine. Too bad you can't do the same for all shapes in a document

Works great :)
My wishlist https://forum.pdf-xchange.com/viewtopic.php?p=187394#p187394
Disable SPACE page navigation, fix kb shortcut for highlighting advanced search tool search field, bookmarks with numbers, toolbar small icon size, AltGr/Ctrl+Alt keyboard issues
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 10872
Joined: Wed Jan 03, 2018 6:52 pm

Batch change color of base content shapes or text

Post by Daniel - PDF-XChange »

:)
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Post Reply