I'll make a point to be as detailed as I can with this. My company does sublimation printing for retail items. To make sure items are correctly identified on the production table, each item has to have a barcode added to it, along with its file name - which has to be mirrored since our printing software mirrors images for the sublimation printing process (the barcode doesn't need mirroring). We had previously done this by using a photoshop batch action that added an additional 1 inch of white space at the bottom of the file, then created the barcode and filename using javascript set up to create text layers based on the file's naming structure. It would align the barcode to the lower right corner, and center the file name as well.

Now, we've moved beyond using JPEGs for sublimation printing because PDFs tend to work better with our printing software. The only issue being is that I've been unable to replicate the previously mentioned batch action in Acrobat (we're still using Acrobat 9 Pro, as well), since I little to no experience setting up batch actions in Acrobat.

Is there a way to set up a batch action that would do what our Photoshop version did? I know it's possible to add a barcode to a PDF via a Javascript action, but in our case, it needs to be in a very specific place in the layout.

  • Acrobat 9 javascript documentation: livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/…
    – horatio
    May 2, 2014 at 16:43
  • Javascript/vbscript/applescript can be invoked from outside the {Adobe Program} environment (i.e. the OS level). One way might be to invoke PS, make an image with a specific filename flopped and add barcode, and then save'n'place that image in the PDF. I have no experience scripting Acrobat.
    – horatio
    May 2, 2014 at 16:46
  • We're currently using Photoshop to do it, but are saving the files with the barcodes as EPS files and dropping them into Acrobat Distiller (which gives us a nicer balance between file size and quality than saving as a PDF directly from Photoshop did...). May 2, 2014 at 20:30
  • It is possible to specify coordinates via scripts, and you can query the document size to calculate placement.
    – horatio
    May 2, 2014 at 20:56
  • does your printer use postscript as printing language? because it would be pretty easy to preprocess the code with merging two eps sources.
    – joojaa
    May 5, 2014 at 17:42

1 Answer 1


so how about this found on google jasper barcode

  • 1
    Hello Leona, welcome to GDSE and thanks for your answer. Could you please add a bit more info about what we can find at the link? That way, your answer will stsill be valuable in case the link breaks at a later time. Link rot is exactly why we don't really like link-only answers here. Don't be discouraged, we are happy to have you here and we know that using the site can be a learning curve. Thanks again!
    – Vincent
    Jul 22, 2014 at 6:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.