Skip to main content
_MGadAllah_
Known Participant
August 18, 2023
Answered

What is the starting point to learn & develop scripts that are working with .PDF files

  • August 18, 2023
  • 2 replies
  • 884 views

Hi,

Editing and cleaning. PDF files and make ready for printing are eating and consuming my life.

Please, I read that there is a scripting language or technique that can be used using the Ctrl+J shortcut through the console.

I do not know if I am saying anything wrong, apologized.

So What is the starting point for learning & develop scripts that are working with PDF files?

What do I need to learn?

What is this programming language?

Is it a wizard technique or something I write by hand manually from scratch?

This topic has been closed for replies.
Correct answer Bernd Alheit

You can start here:

https://acrobatusers.com/tutorials/javascript_console/index.html 

2 replies

try67
Community Expert
Community Expert
August 19, 2023

Most editing tasks can't be done with a script. Maybe let us know what it is you're trying to automate, exactly, so we could tell you if it's at all possible, before you sink a lot of time and effort into learning Acrobat JS...

_MGadAllah_
Known Participant
August 24, 2023

I am sorry for the late reply.

I want to do one or all of the following:

  1. remove all margins from any pages.
  2. ident the header and footer of the page to the middle, so after I remove margins in 1st step most headers and footers are being cut off because of eliminating the margins.
  3. The final step always will be to use the preflight to set the page size to a prespecified size and I put it to 197 & 210 as this is the A4 size, because when I choose the regular preflight resize to A4, I found the result page is not rescaled to full page as desired.

These are the main things I want to do most of the time

 

Thanks,Mohamed GadAllah
Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
August 18, 2023
_MGadAllah_
Known Participant
August 19, 2023

Thank you 😊

Thanks,Mohamed GadAllah