[tool] change fonts in annotations

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

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

Mathew
User
Posts: 573
Joined: Thu Jun 19, 2014 7:30 pm

[tool] change fonts in annotations

Post by Mathew »

Here's a tool to batch change the fonts in a number of annotations.

To use, unzip the file and save in the Javascripts folder.
change fonts v0.2.zip
[EDIT] revised slightly to fix bug with button cEnable

Restart PDFX-Change and it will add a button to the addins toolbar:
image.png

Select all the annotations you want to change, and run the script by clicking the toolbar button. It will open a dialog listing the number of different fonts found at the top, and options to filter the changes and the new font to use:
image(1).png
The filter can be left at "All" to just replace all fonts, or pick a specific font to change.

The New Font can be picked from a dropdown that lists all the fonts in the current selection, or you can type in the name of the font to replace. I find it easiest to make a temporary text markup with the font I want, and also select that, so that its font is included in the dropdown.
You do not have the required permissions to view the files attached to this post.
Last edited by Mathew on Tue Apr 16, 2024 11:55 pm, edited 2 times in total.
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11036
Joined: Wed Jan 03, 2018 6:52 pm

Re: [tool] change fonts in annotations

Post by Daniel - PDF-XChange »

Hello, Mathew

It looks fantastic, Thank you very much for this!

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: [tool] change fonts in annotations

Post by MedBooster »

That's great because as far as I know the "replace fonts" function only affects base content and not annotations (it seems)
image.png
You do not have the required permissions to view the files attached to this post.
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: 11036
Joined: Wed Jan 03, 2018 6:52 pm

Re: [tool] change fonts in annotations

Post by Daniel - PDF-XChange »

Hello, MedBooster

Here is a little preview of the upcoming build 386 for you:
image.png
Kind regards,
You do not have the required permissions to view the files attached to this post.
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