Hi
Can anyone offer any help with this seemingly simple task.
I wanto to create some custom size pdfs for printing on a thermal transfer label printer.
One of the documents needs to be 65mm square. I will then paste content from a master pdf document to create a single page (65mm page size) file.
This file will be sent to a label printer.
Any ideas?
Regards
Rob
Use the Acrobat SDK's JavaScript API:
JavaScript > JavaScript for Acrobat API Reference > JavaScript API > app > app methods > newDoc
Creates a new document and returns its Doc object. The optional parameters specify the media box dimensions of the document in points.
Note: This method can only be executed during a batch or console event. See Privileged versus non-privileged context. See the event object for a discussion of JavaScript events.
(optional) The width (in points) for the new document. The default value is 612.
(optional) The height (in points) for the new document. The default value is 792.
The object of the newly created document.
If you're only doing it once or twice, the JS console is the simplest option (using the function Sabian mentions)
Press Ctrl-J or CMD-J to open the console, and clear the messages
Type the line
app.newDoc(184,184)
Highlight it and press ENTER. To be strictly accurate, 65mm = 184.25 points, but Acrobat only accepts integer values.
If you find yourself doing this type of thing a lot, it makes sense to create a custom menu item. Grab the free script from here and change the values to whatever you usually create, then copy the JS file into the JavaScripts folder of your Acrobat installation.
North America
Europe, Middle East and Africa
Asia Pacific