Skip to main content
Inspiring
July 16, 2024
Answered

script to pdf convert all text to outline

  • July 16, 2024
  • 3 replies
  • 730 views

hello,  do you know how to  convert all text to outline in Adobe Acrobat with applescript, thanks

This topic has been closed for replies.
Correct answer rui huang

I got a tip from somewhere else, the following should be OK, I hope it is useful to everyone

set myFolder to (((path to desktop) as text) & "thScript:temp:")

tell application "Finder"

set pdfFileName to "test.pdf"

set filePath to myFolder & pdfFileName

tell application "Adobe Acrobat"

activate

open file filePath

tell document 1

do script "var oProfile = Preflight.getProfileByName('Convert fonts to outlines');
this.preflight(oProfile);"

end tell

save document pdfFileName to file filePath

close document 1 saving no

end tell

end tell

3 replies

rui huangAuthorCorrect answer
Inspiring
July 17, 2024

I got a tip from somewhere else, the following should be OK, I hope it is useful to everyone

set myFolder to (((path to desktop) as text) & "thScript:temp:")

tell application "Finder"

set pdfFileName to "test.pdf"

set filePath to myFolder & pdfFileName

tell application "Adobe Acrobat"

activate

open file filePath

tell document 1

do script "var oProfile = Preflight.getProfileByName('Convert fonts to outlines');
this.preflight(oProfile);"

end tell

save document pdfFileName to file filePath

close document 1 saving no

end tell

end tell

rui huangAuthor
Inspiring
July 17, 2024

2

rui huangAuthor
Inspiring
July 17, 2024

1