2 Replies Latest reply on Jan 19, 2009 5:10 PM by (Ben_J.D)

    [JS]::[CS3] - Exporting a PDF

    Level 1
      Hi folks,

      I am having some difficulties exporting a pdf using javascript.
      The code I am using looks like this:

      myDocument.exportFile( ExportFormat.PDF_TYPE, new File(pathToFile) );

      myDocument is a business card sized document. When my script is run from CS4 on a mac this code works fine. It exports a business card sized PDF.

      However in CS3 on Windows it exports the artwork into a letter sized PDF. I don't think that it is a Windows problem I just happen to only have access to CS3 on windows and CS4 on a mac.

      I'd appreciate if anyone can shed some light on this and give me some pointers on how I can ensure my pdf is the correct size (the same size as the document).

      cheers
      Ben