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

Interactive PDF convert all fields to outline fonts

Explorer ,
Dec 08, 2023 Dec 08, 2023

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

TOPICS
JavaScript , PDF forms , Print and prepress
1.8K
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 08, 2023 Dec 08, 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.

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
Explorer ,
Dec 08, 2023 Dec 08, 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

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 08, 2023 Dec 08, 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.

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 08, 2023 Dec 08, 2023

Anyway, if the printer wants it done they should provide you with the Preflight profile to do it, or just do it themselves.

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 08, 2023 Dec 08, 2023
LATEST
quote

Thank you but I need the fonts outlined. This is a popup banner and the printers require all fonts outlined.


By @LawtonKAR

Font outlining should no more be needed. You should make sure that the fonts are embedded. 

 

I'm not sure that what you're trying to do will work, as it seems to me, that you want to have a file that others can use without you having control about how they use the creations.

ABAMBO | Hard- and Software Engineer | Photographer
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 08, 2023 Dec 08, 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
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
Explorer ,
Dec 08, 2023 Dec 08, 2023

Thank you for confirming

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