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

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

Have you setup the exportPresets?
Look at the ExportPDFWithOptions.jsx from the indesign_scripting_guide_scripts?
Your export settings might be different in the two applications.
(app.pdfExportPreferences)

Similar Messages

  • Indesign CS3 export to PDF shows a fog/low contrast layer on photos

    When I export an indesign CS3 file to pdf the photos seem to cover up with a fog/low contrast layer once loaded. Does anyone else have this problem? Is there a solution? anything i'm doing wrong!!!

    I have managed sort it out. Its just a matter of changing the colour profile to the desired one. cheers steve. i will next time!!

  • CS3 export to PDF jagged text

    My file is just text, and it looks beautiful when I print directly from InDesign. However, when I export to PDF, the text has noticeably jagged edges.
    I've tried all the included export settings. I've tried printing to a PDF directly. These all look fine in Acrobat, but lead to the same disappointing results when printed.
    PDF files that I didn't produce, print perfectly from Acrobat.
    What am I doing wrong?

    Michaela
    "I changed the color from "leave unchanged" to "RGB" and the file printed pefectly."
    When you "leave color unchanged" you are effectively telling InDesign that the printer will interpret the color values in the document. When you change it to something else (ie: RGB or CMYK or greyscale) you are letting indesign decide what color values to send so that the printer will print closer to what you see. The caveat is that your monitor must be calibrated so that you are seeing color values consistently. And as far as your monitor is concerned black is a color (RGB 0 0 0).
    Stan Wetherald
    Quality Quickprint
    DeLand, Florida USA

  • [CS3] Export to PDF

    I have a document with tagged contents that I want to export to PDF including the tags. The resulting PDF file has the tags but they are incomplete, i.e. no attributes, and the child elements of the tags are also missing. How can I force InDesign to export all the tags info to PDF?
    I have set the PDF export prefs compatibility to kPDFVersion17.
    Thanks,
    Leo Diaz

    Michaela
    "I changed the color from "leave unchanged" to "RGB" and the file printed pefectly."
    When you "leave color unchanged" you are effectively telling InDesign that the printer will interpret the color values in the document. When you change it to something else (ie: RGB or CMYK or greyscale) you are letting indesign decide what color values to send so that the printer will print closer to what you see. The caveat is that your monitor must be calibrated so that you are seeing color values consistently. And as far as your monitor is concerned black is a color (RGB 0 0 0).
    Stan Wetherald
    Quality Quickprint
    DeLand, Florida USA

  • Will InDesign CS3 export to PDF on it's own?

    I am planning to purchase InDesign CS3 but do not have Adobe Acrobat Pro.  Will I still be able to print or export an InDesign file to pdf without it?  If not can I buy PDF Converter Professional to make this possible?  I am working on a PC.  thank you!

    Indesign has it's own PDF generator so you wouldn't need Acrobat to create a simple PDF.
    If you want to create fillable forms then you will need Acrobat.
    One thing to keep in mind, CS3 is a few versions expired and is not being sold legally anywhere (unless someone is selling their personal copy and hasn't used it to upgrade to a newer version). You'll want to be sure you are getting a ligitimate version.

  • ID CS3 export to PDF - how to get superscripts into bookmarks ?

    I'm exporting my InDesign (CS3 Design Standard) file to PDF, and the headings are all nicely showing up in the bookmarks, but the superscript chars in my headings (such as the trademark symbol) are showing as regular chars in the resulting PDF bookmarks.
    Anyone know if it's possible to get superscripts into the PDF bookmarks? Either directly from InDesign's export function or after-the-fact w/Acrobat?
    I'm using Acrobat 7.0 Standard on Win XP, but if this is do-able with Professional or a later version, I'm open to upgrading.
    (I asked the same question in the InDesign forum, and it was suggested that I ask here in the Acrobat forum.)
    Many thanks,
    -Monique

    >superscript chars [..] (such as the trademark symbol)
    There is some dispute over a trademark symbol being superscript or not. In some fonts it is, in others not. Therefore, for some fonts you need to apply "superscript" and in others not.
    >[..] showing as regular chars in the resulting PDF bookmarks
    That's the way it is. You cannot apply formatting to bookmark text. You
    i can
    change the font (I seem to rembember), but that doesn't help -- it's a global change.
    If you desperately positively need some characters to be in superscript, check the character map for (I think) Arial Unicode. There is a tiny set of characters that has a superscript form: ¹²³ -- but do check if they appear the same in Acrobat.

  • Indesign CS3 - export to PDF and keep RGB colors

    I'm trying to export from InDesign to a pfd file that contains the original RGB colors of an imported image. The imported image is RGB and is from Illustrator CS3. I've tried changing the output color options in the export dialogue box but I can't seem to figure out how to make it work so that the original RGB colors are preserved. Can someone please help?

    P. Marlowe, you're correct. Use PDF/X-4 to support live transparency used by the Adobe PDF Print Engine RIPs. PDF/X-4 supports the same color spaces as PDF/X-3 but keeps them device-independent when there is transparency.

  • I can't get InDesign CS3 to export a pdf properly

    Hi all,
    Actually I have resolved the problem but I thought I share with you all.
    I have done up a booklet in CS2, containing 70 over TIFF images, all of them with clipping path done in Photoshop. In between this project, I upgraded to CS3 from CS2. After I amended and saved the .indd file to CS3 version, I encountered problem exporting the booklet to pdf. The pathed text and images were missing from the pdf.
    1. I tried export the pages to JPG, everything looks fine.
    2. Thinking probably the .indd file size is too big. I deleted some pages and export to pdf again. Same problem.
    3. Then I read in the forum that some users encounter problem with TIFF images with clipping paths done up in Photoshop. BUT since I have 70 over images to re-save to psd as some suggested, I decide to put it aside first, hoping it's not clipping path that causes the problem.
    4. Fed up and desperate. I started troubleshooting by deleting one element at a time and try export to pdf. Elements like path text, rounded corners boxes, color-filled boxes, etc.
    5. FINALLY, I found out it was the dotted outline that causes the problem. I successfully exported the pdf after I remove the dotted outline! But client has approved the design and layout, so I can't simply remove the dotted outline! Luckily, I still able to export to pdf without error after I re-applied the dotted lines to the boxes.
    If you encounter the same problem as me, probably you want to try re-apply all the dotted or any fancy line by setting it to 0pt, then to your desire thickness again. =)
    Please share how you resolve your PDF error too!

    Hi Ron ,
    Please refer to the following link and see if this helps.
    https://helpx.adobe.com/acrobat/kb/warning-20225-pdf-printer-missing.html
    Regards
    Sukrit Dhingra

  • [JS CS3 Win] Export to PDF then auto-print PDF from Acrobat

    Hello!
    I am working on the script that is exporting pages to PDF, and would like to automatically send exported PDF to print from Acrobat.
    I get the scripting part for exporting to PDF, and it's working very well, but I have trouble on the part of the script that tells Acrobat to open the PDF and send it to printer. Script is run from InDesign, so I thought this is right forum to ask.
    The following part of the script is working OK on one computer, but on other two computers with similar configuration (CS3. Windows, Acrobat 8) it doesn't work at all and I can't figure out where is the problem:
    var printFile = "/c/temp/test.pdf";
    var remoteScript = "printFile = decodeURI('"+printFile+"');\n";
    remoteScript += "var doc = app.openDoc({cPath: printFile});\n";
    remoteScript += "var pp = doc.getPrintParams();\n";
    remoteScript += "pp.pageHandling = pp.constants.handling.shrink;\n";
    remoteScript += "pp.NumCopies = 2;\n";
    remoteScript += "pp.interactive = pp.constants.interactionLevel.silent;\n";
    remoteScript += "pp.printerName = '\\\\hrhqzgw23prn01\\\hr300019ps';\n";
    remoteScript += "doc.print(pp);\n";
    remoteScript += "doc.closeDoc(true);";
    acrobat.executeScript(remoteScript);
    I would appreciate any help. thank you.

    Hi Mark,
    Here is a sample script. It exports the active InDesign document to pdf file, using its base name, to the root of C drive. Then opens the exported file in Acrobat, prints it to the default printer and silently closes it.
    Tested on InDesign 5.0.3, Acrobat 8.0.0, Windows XP SP3.
    #target indesign
    var myIndesignDoc = app.activeDocument;
    var myBaseName = GetFileNameOnly(myIndesignDoc.name);
    var myFile = new File( "/C/" + myBaseName + ".pdf" );
    myIndesignDoc.exportFile( ExportFormat.pdfType, myFile, false );
    var myScript = 'var myAcrobatDoc = app.openDoc( "/C/' + myBaseName + '.pdf" );\n';
    myScript += 'myAcrobatDoc.print( {bUI: false, bSilent: true} );\n';
    myScript += 'myAcrobatDoc.closeDoc( true );';
    var bt = new BridgeTalk;
    bt.target = "acrobat";
    bt.body = myScript;
    bt.send();
    function GetFileNameOnly(myFileName) {
        var myString = "";
        var myResult = myFileName.lastIndexOf(".");
        if (myResult == -1) {
            myString = myFileName;
        else {
            myString = myFileName.substr(0, myResult);
        return myString;
    Short explanation of the acrobat script:
    1. Open the pdf file, just exported from InDesign
    var myAcrobatDoc = app.openDoc( "/C/' + myBaseName + '.pdf" );
    2. To print the document silently I use the doc object’s print method and set the following parameters:
    bUI -- Determines whether to present a user interface to the user
    bSilent -- Suppresses the Cancel dialog box while the document is printed
    myAcrobatDoc.print( {bUI: false, bSilent: true} );
    3. Close the document without notifying the user:
    myAcrobatDoc.closeDoc( true );
    Regards,
    Kasyan

  • Cs3 indesign export to pdf slow

    When I export to pdf with a new file name the process is very quick, if I export the same document for a second time using the same pdf file name (overwrite exsisting file) it goes very slow and I get the "not responding message" if I wait long enough the process does eventually complete. If I redo the export but select a new pdf filename it works ok. It does not seem to matter if its a large or small file.
    I also seem to be getting a similar problem if I use pdfmaker in my office applications.
    I am using indesign cs3 with Acrobat professional 8 on  Windows 7.
    Can anyone help!

    Handling of missing links HAS changed, and in my opinion for the worse, but at the request of users, so that missing links no longer open the Links panel automatically or ask you to update on opening as they used to, though you should still receive a warning that the links are missing UNLESS YOU HAVE TURNED IT OFF IN YOUR PREFERENCES. It's on by default and you will find the option under the file handling section.
    The rationale is that many workflows do not require that links be intact to accomplish the current editing, and longer documents with hundreds of missing links used to take many minutes to open while ID searched, essentially costing those users lots of money.
    IF you have stored the links in the same directory as the .indd file, and IF you have moved the entire directory and IF you have enabled finding missing links when opening files, InDesign will find and update the locations for the links when the file is opened. If ID is unable to locate a link, because it is not in the current directory or a subfolder, you will see a warning message (in the past you would have had the option to browse for the missing files), and you must open the links panel if you wish to fix them manually.
    In my opinion this is a very acceptable situation, and a great benefit to all types of workflows. I need to know links are modified or missing, so I've left that enabled. Those who don't need to know are no longer bothered or delayed. I suggest you pay a visit to the preferences and make sure that missing/modified checks are enabled, and if you are still having problems then your links aren't stored in the same directory, and that has always been an issue in ID when things get moved.

  • Dotted Strokes not exporting to pdf (InDesign CS3).

    I'm producing a booklet in CS3 where I've used a lot of dotted strokes (both as decorative lines, and as outlines to background panels beneath text). When I export to pdf, I'm finding that all the spreads that contain these elements come up blank with error messages. If I change the stroke type to solid, there is no problem. Is this a bug with the dotted stroke feature, or anything else? Any fixes or suggestions would be great to hear.

    Thanks Peter. Yup, I even sent it to my regular printer and they get the issue too. Moving the strokes to different layers and unchecking compression doesn't help either. I have actually had this issue before on another project, and had to workaround by redoing the dotted lines in illustrator and importing them into the InDesign file as pdfs. But this time the artwork has a ton of the dotted lines, too many to redraw.

  • Export to pdf vs. print to pdf, from InDesign CS3

    We are using Indesign CS3 on Windows XP. We are creating documents for offset printing, with 300dpi photos placed in the document. We are finding that when we "EXPORT" to pdf, and choose a "high quality print", the pdf is fine. However, if we 'print to pdf' and choose "high quality print", the photos in our pdf are more pixellated, and appear to be 150 dpi or lower resolution. Is this a problem with CS3? Does it make any difference how the tiff files have been placed, or sized, in InDesign? Has anyone else experienced this problem?

    In the print dialog, when printing to PDF, under the graphics panel, make sure you change the default value of "Optimized Subsampling" to "all" for the "Send Image Data" field.
    Peter

  • CS3:  Export PDF crash...located the source, now what?

    InDesign CS3 keeps crashing on page 86 or 87 of a file I'm trying to Export to PDF.  I know this from watching the progress bar move across the screen, everything is fine until the status box shows page 86/87, then poof, InDesign disappears and requests to send an error report.  I was under the impression this was being caused by the Export PDF settings.  With printer's marks enabled, the Export PDF crash occurs on page 86.  Turn printer's marks off and the crash happens on page 87.  So I tried all kinds of things with Export PDF settings but came up empty.
    Then I messed around with pages 86 and 87.  Removed text frames from page 86 and tried various combinations with Export PDF.  Did the same thing on page 87, and then combinations of 86 and 87 at the same time.  No good...keeps crashing.  I removed ALL content from pages 86 and 87 and the Export PDF still crashes, even with blank pages.
    I finally got a clue when moving text frames to other pages.  Both pages have 4 text frames each.  When I moved the top text frame on page 87 to a different page -- in this case I moved it to page 98 -- the Export PDF crashed on page 96.  Not page 98 where it was located, but page 96. Weird, but it gave me a clue.
    Long story short:
    Export PDF causes InDesign to crash on page 86 or 87 unless the uppermost text frame on page 87 is moved to a non-printing layer. The text frame can remain on page 87 or be on the pasteboard; either way, it must be non-printing to prevent a crash in Export PDF mode.
    Any suggestions?  I've already searched the text frame and nothing out of the ordinary catches my eye.  The text frame is necessary for a book project.  I can't consolidate it with another frame.
    Thanks in advance!

    My memory is not so great after all...
    The bug was in CS4 and it was fixed in 6.0.4. I remembered the rest correctly...
    Here's the tech note:
    Type on a Path fails to draw in output (PDF, Print, JPEG) on the 35th and subsequent spreads. [2297179]
    Harbs

  • Export a Indesign(CS3)  Document as PDF(Windows)

    Hi,
    I am beginner in Indesign Plugin development.
    I want to export a Indesign CS3 document as PDF programmatically. I
    know that we need to use IPDFExportPrefs and set the various
    attributes.I dont know proper code.
    Can anybody give the code to implement it.
    Or any reference to find it.
    Thanks,
    Ravi sharma

    Arthur,
    You can't export the document directly to HTML, but you can use the Cross-Media Export to make and XHTML file for Dreamweaver (or other editor). It will generate an HTML page and a blank CSS style sheet, as well as gathering the images, but web and print are entirely different formats so you won't have anything resembling your ID doc when you get through, as far as layout is concerned. If you want people to see your layout as is, you need to use PDF. Try changing the compression settings for the export to bring the size down, but it will be a compromise somewhere most likely.
    Peter

  • Indesign CS4/CS3 and Export to PDF problems

    Hello,
    I have been having problems with both Indesign CS3 and CS4 and exporting large documents to a PDF-file. Exporting halts with error messages like: "Failed to Export the PDF file" in CS4 or "Error encountered while reading JPEG image" in CS3.
    Problem can be corrected by simply closing InDesign and restarting it and opening the same file again. It appears that problem occurs more often the file is large. Any suggestions how to fix this problem?
    I'm using Vista 64-bit and have 8GB memory.

    Handling of missing links HAS changed, and in my opinion for the worse, but at the request of users, so that missing links no longer open the Links panel automatically or ask you to update on opening as they used to, though you should still receive a warning that the links are missing UNLESS YOU HAVE TURNED IT OFF IN YOUR PREFERENCES. It's on by default and you will find the option under the file handling section.
    The rationale is that many workflows do not require that links be intact to accomplish the current editing, and longer documents with hundreds of missing links used to take many minutes to open while ID searched, essentially costing those users lots of money.
    IF you have stored the links in the same directory as the .indd file, and IF you have moved the entire directory and IF you have enabled finding missing links when opening files, InDesign will find and update the locations for the links when the file is opened. If ID is unable to locate a link, because it is not in the current directory or a subfolder, you will see a warning message (in the past you would have had the option to browse for the missing files), and you must open the links panel if you wish to fix them manually.
    In my opinion this is a very acceptable situation, and a great benefit to all types of workflows. I need to know links are modified or missing, so I've left that enabled. Those who don't need to know are no longer bothered or delayed. I suggest you pay a visit to the preferences and make sure that missing/modified checks are enabled, and if you are still having problems then your links aren't stored in the same directory, and that has always been an issue in ID when things get moved.

Maybe you are looking for

  • HT5287 how do i install microsoft on my macbook air without having to buy a 80$ disk drive

    i have a macbook air and im trying to install microsft 2008. i have the cd and product key..... how do i install this product without having to buy the external disk?

  • Can you block phone calls on the iPhone

    Can you block a phone number on the iPhone?

  • GeoKettle: Error running javac.exe compiler

    Hi, I am trying to use GeoKettle exactly as mentioned at http://209.85.229.132/search?q=cache:JHfrxCo7y0YJ:forge.osor.eu/docman/view.php/143/250/Kettle_Devel_guide_v0.odt+geokettle+spoon+java+api&cd=2&hl=en&ct=clnk&client=firefox-a But when I try to

  • Cant Rotate First Page of ANY pdf

    I can no longer rotate the first page of ANY pdf. If I try to rotate all pages, every page but the first will rotate. If I try to rotate only the first page I get a message saying "Invalid Page Range". I've been using Acrobat for years and never had

  • Log in HTTP adapter

    Hi, we have the following asynchronous scenario: R/3 - proxy--> PI -HTTP-- > 3r party We have realized that HTTP communications channels don't appear on runtime workbench. Is there any possibility to see the runtime workbench LOG (or similar) like SO