Skip to main content
LawtonKAR
Participating Frequently
December 8, 2023
Question

Interactive PDF convert all fields to outline fonts

  • December 8, 2023
  • 2 replies
  • 2003 views

We have an interactive pdf with text filelds. When filled in need the text needs converting to outline before

saving. I have a action wizard that works that we can use.

 

This file is sent out to agents around the country for them to fill in and print. The fonts need to be converted to outline using a button on the PDF

We already have a script that locks the fields, removes the button and starts the saves as.

This is the script to lock file which works. 

 

for (var i=0; i<this.numFields; i++)

       { var f = this.getField(this.getNthFieldName(i));

       if (f==null) continue;

        f.readonly = true;  

}

this.getField("LOCK & SAVE").display = display.hidden;

 

Just need some help with the convert the field text to outline.

Thank you for any help

This topic has been closed for replies.

2 replies

JR Boulay
Community Expert
Community Expert
December 8, 2023

Acrobat Reader and Acrobat Standard cannot outline fonts, this is an Acrobat Pro only feature.

This means that all your agents must have Acrobat Pro installed.

Acrobate du PDF, InDesigner et Photoshopographe
LawtonKAR
LawtonKARAuthor
Participating Frequently
December 8, 2023

Thank you for confirming

try67
Community Expert
Community Expert
December 8, 2023

You can do it using this code:

this.flattenPages();

Note it will only work in Acrobat, though.

And it does not "outline" the text. It just converts the fields to static contents, like any other text in a PDF file that isn't a part of an image.

LawtonKAR
LawtonKARAuthor
Participating Frequently
December 8, 2023

Thank you but I need the fonts outlined. This is a popup banner and the printers require all fonts outlined. We have already converted most of the fonts to outlined it is just the fields that are filled in afterwards.

We don't have access to the files after they have been filled in. So need the button to convert the fields.

Thanks

try67
Community Expert
Community Expert
December 8, 2023

That is absolutely not necessary for printing. In fact, it's a bad idea as it will lead to pixelization. It's better to leave them as vector-based text.