AcroJS script to fix hairline width

I need to "Fix Hairlines" on thousands of documents. I am completely new to JavaScript. Anyone have any leads to tutorials or resources that could help. I have looked at the AcroJS documentation, but can't find properties, etc for Tools/Print Production/Fix Hairlines.

Thanks!


Kathleen Collins


5 Answers

Voted Best Answer

Hi,

You don't need any JavaScript, this action can be automated using Acrobat's Actions.


By JR Boulay   

This action can't be automated using JS.

.


Visit my custom-made PDF scripts website: http://try67.blogspot.com
Contact me personally: try6767@gmail.com


Gilad D (try67)   

As it seems that the tool can not be automated, and neither accessed via JavaScript, there remains the long way around.

You create a Preflight Profile which just does fix the hairlines (I can't remember that such a profile is part of the standard range). Then you call it using JavaScript.

And you have a JavaScript which you can automate.

On Mac, you could also create a Preflight Droplet from the Preflight Profile, and have a similar capability.

Hope this can help.

Max Wyss.


Max Wyss   

Long answer, requires Acrobat X or XI (or 9 but UI is different) :

1- Tools pane : Print Production : Preflight : Profiles : Options : Create new preflight profile : Fixups : All available fixups : Set minimum line width to 0.14 pt (edit as needed). Enter a name, save and close.

2- Tools pane : Action Wizard : Create new action :

  • Document Processing : Preflight (add to right side) : Uncheck "Prompt user" : Specify Settings : Run preflight check using : Select your new preflight profile in the menu.

  • Save & Export : Save (add to the right side) : Specify Settings.

Save, enter a name and close.

3- Enjoy your new Action!


JR Boulay   

With Acrobat XI Pro (and perhaps earlier Pro releases) one has the "fix hairlines" dialog available two ways.

As already mentioned there is the dialog available via the Print Production tools.

As well there is ---

In the "Fixups" there is a fixup type within the Page contents category.

This is the "Increase line width" fixup.

This increases line width to a given value if current line width is below a given threshold.

You can configure this fixup. Change of values for "If below", "Increase to", Unit type as well as some others are possible.

Compare the graphic at

http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7b88.w.html

to:

.

a screen capture

.

Be well...


David Austin   


Please specify a reason: