SaveAs() method doesn't work for PDF file

I used the script below to generate a PDF file. When I ran it, no error occurred but no PDF was generated either
var pdf = new File("E:\\STWWEB1\\CDLG_ILL\\temp\\jpeg\\640\\1.pdf");
docRef.saveAs(pdf);
Does anybody know what's wrong?

PDF needs to have a new instance of the PDFSaveOptions created. Look at the JS Reference
PDFSaveOptions
Options for saving a document as an Adobe PDF file, used with the saveAs method. All properties are optional.
Saving to PDF format
// Saves the current document as PDF to dest with specified options
// dest contains the full path and file name to save to
function saveFileToPDF (dest) {
var doc = app.activeDocument;
if ( app.documents.length > 0 ) {
var saveName = new File ( dest );
saveOpts = new PDFSaveOptions();
saveOpts.compatibility = PDFCompatibility.ACROBAT5;
saveOpts.generateThumbnails = true;
saveOpts.preserveEditability = true;
doc.saveAs( saveName, saveOpts );

Similar Messages

  • Page turn effect doesn't work for PDFs in iBooks

    Hi All,
    Page turn in iBooks doesn't seem to be working for PDF files. Whenever I open the PDF file on Macbook, iBooks opens the file in Acrobat reader.
    I was just wondering if this is the default behaviour or something can be changed to get the page turn effect for PDFs in iBooks.
    Configuration:
    Macbook Pro OS X 10.9.2
    I would appreciate any help on this.

    That is normal. My PDFs open in Preview as that is what I use as the default application for reading PDFs.

  • Central Autoreaction Method doesn't work for NW 7.10 in SolMan 7.01

    Hello!
    The central autoreaction method doesn't work for the satellite system
    NW 7.10. For systems with kernel releases 4.6D, 640, 700 this method
    works fine and e-mail alerts are coming.
    The configuration steps I've checked:
    1. Configured SCOT. The mail_send job executes every 5 minutes.
    2. Background dispatching job is released: SAP_CCMS_MONI_BATCH_DP (In
    central CEN/000/DDIC and satellite system SAT/000/DDIC)
    3. Central dispatching job is released: SAP_CCMS_CENSYS_DISPATCHER
    (Only in central system CEN/000/DDIC)
    4. The sapccm4x-agent registered as web service within CEN using
    Create Remote Monitoring for NW 7.10:
    Connection test to SAPCCM4X.<satellite_host>.00 was performed successfully
    5. Created a new autoreaction method by copying method
    CCMS_OnAlert_Email_V2 to the own Z_CCMS_Email_Alert_CEN:
    Function Module - SALO_EMAIL_IN_CASE_OF_ALERT_V2
    Execute Method on Any Server and Only in Central System, triggered by
    CCMS agents
    SENDER (EMAIL_USER) exists in CEN/000 , RECEPIENT - <distr list
    SAP_BASIS in CEN/000>, RECIPIENT-TYPEID - C
    6. Got MTE Classes from NW 7.10 satellite system and assigned this method
    Z_CCMS_Email_Alert_CEN to an MTE-class CCMS_ORAucPSAPSR3 for NW 7.10
    satellite system. The alert is red right now.
    7. The mail_send job doesn't send anything, in SCOT there are no
    sending orders.
    8. Autoreaction status on this alert in CEN in RZ20 - Sent to CEN.
    CEN_CHECKED.
    9. The alert status in RZ20 in CEN - ACTION_REQUIRED. If I execute it
    in manual the alert status changes to ACTIVE, but no email and no
    messages in sending orders in SCOT.
    Please help me to solve this issue.
    Thank you!

    Hi,
    Since you are using RECIPIENT-TYPEID =C i.e. General distribution list, pls ensure to have shared type of list created in SBWP.
    Also pls verify your SCOT configutaion , if apropriate address area i.e. *@abc.com
    Also one point to note that even if you trigger auto reaction method manually via RZ20 , pls check if alert is listed in SOST.
    if yes , that means there is problem in either SCOT configuration or distribution list.
    If alert is not appearing in SOST , that means you need to check auto reaction method parameters;
    Z_CCMS_OnAlert_Email_V2 , here check release section if Auto reaction execution method is checked.
    Regards,
    Rupali

  • In the product/app Adobe Acrobat reader mobile.it would be good to have layer support working for pdf files.

    In the product/app Adobe Acrobat reader mobile.it would be good to have layer support working for pdf files.

    http://winsupersite.com/article/windows8/windows-8-tip-change-file-associations-144102

  • Index doesn't work if PDF file resides in RoboHelp Project

    If I create a RH8 project and publish, the index works as it should.  Each keystroke will change where you are in the Index. If I put a .PDF file in the project, the Index doesn't work -- it no longer recognizes keystrokes and you can only scroll through it.
    Does RoboHelp not support PDF files within the project?

    Ummm, did I hear you say "Usage Reports"?
    That sems to indicate that you are publishing to RoboHelp Server, no? And that piece of information would have been nice to know up front. Please click here for more on why.
    If you are indeed using the RoboHelp Server, I'm going to move this thread over into that forum category. But I'll wait to hear back with a confirmation from you before I do.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Iframe is not working for pdf files in iPad safari

    Hi,
    Pdf file is not displaying properly in iPad safari. I have faced below issue while using iframe
    Not displaying in full width and height
    Not able scroll other pages in pdf
    Thanks,
    Arun

    Hi Viraj,
    You need to upload an image "pdf.gif" in \etc\public\mimes\images folder.
    Also, you need to define the MIME Type for PDF documents in portal.
    Navigate to System Administration -> System Configuration -> Knowledge Management -> Content Management -> Utilities -> MIME Types.
    Check whether you already have a MIME Type for PDF or not. Else you can create a new Type "pdf" with MIME Type "application/pdf".
    Regards,
    Sudip

  • BUG: Record Limit per Document doesn't work for PDF in CS4 - does it work in CS5?

    Hey all - I'm attempting to export 100 data merged documents to pdf.  I know i can use "Record Limit per Document" set to 1 to create 100 InDesign files, which isn't what i want to do.  When you select "Export to PDF" in the data merge window, the "record limit per document" option exists, but no matter what, it will always create one giant pdf file - it will NOT separate into 100 different pdf files.  This is a bug in CS4.
    I am wondering if the bug has been fixed in CS5 or if there is a workaround in CS4 to generate the pdfs.
    All I found is this ancient thread in which people say the only workaround is to batch convert the pdf files later, and then degenerates into unrelated discussion:
    http://forums.adobe.com/message/1110826

    g'day there
    has there been any follow-up to this or workarounds?
    i constantly have VDP jobs which have tens of thousands of records, but the chaps printing it only want the PDFs in lots of 500 or so. being able to do ONE merge which splits the merge into bite-size PDFs for our printing section would be preferable to making them through the dialog box in the appropriate lots.
    colly

  • Open in "iBooks" button has stopped working (for PDF files)..plz help!!

    The "open in iBooks" prompt was working just fine until last night..but when I tried the same today on a PDF file (as usual..) ..it did not work:(

    That issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Thumbnail preview is not working for pdf file in KM

    Hi Experts,
    I have upload one pdf file. I have changed profile of one KM content folder from System Default to Thumbnails(For that Click on context menu of folder-> settings-> presentation->click on Select Profile ->check on Thumbnails-> Click on OK) but it is not changed. Rest of other file format's(gif etc) icon is changing.
    Regards,
    Viraj Vashi

    Hi Viraj,
    You need to upload an image "pdf.gif" in \etc\public\mimes\images folder.
    Also, you need to define the MIME Type for PDF documents in portal.
    Navigate to System Administration -> System Configuration -> Knowledge Management -> Content Management -> Utilities -> MIME Types.
    Check whether you already have a MIME Type for PDF or not. Else you can create a new Type "pdf" with MIME Type "application/pdf".
    Regards,
    Sudip

  • Itunes 10 Add to Library doesn't work for mp4 file

    I'm running OS X Lion, iTunes 10.5.2, Quicktime 10.
    I am trying to add an MP4 video file to my library and itunes simply does nothing when I drag it to the Movies folder or when I try to select the file from the Add to Library command.  I've been reading for the past hour and see others have had similar issues.  Is there a fix for this?

    I just discovered that iTunes doesn't like the H.264 version of MP4 files. If I convert the video to MPEG-4, I can successfully copy the file into iTunes.  Is this a bug or a feature?

  • Doesn't open the PDF file (i.e. articles, books pages). It appears a black page. Thanks for help

    Safari doesn't open the PDF file (articles, book page, etc). It appears a black page. Before that it was working perfectly. Thank for your help

    Try this ...
    Open a Finder window then from the menu bar click Go > Go to Folder
    Type or copy paste the following:
    /Library/Internet Plug-Ins
    Click Go.
    If you see the:  AdobePDFViewer plugin (or anything Adobe related) in the Internet Plug-Ins folder, move it to the trash.
    Restart your Mac and try opening a PDF file.

  • PDF download worked in FFox3 but not in 4. Do I have to wait for a new plug in for PDF files?

    I was downloading monthly statements from mutual fund firms. Firefox 4.0 worked fine with the T Rowe Price web site (they must not do anything tricky), but does not work with Fidelity. Firefox doesn't seem to recognize that what Fidelity is offering is really a PDF file. I tested the same action with my same computer and Safari as the browser which worked fine, and I tested the same action with my same computer and Firefox 3.6.16 and it, too, worked fine. Your help screen for PDF files suggest I download "Firefox PDF plugin extension" but when I get there, it says a version for FFox 4 is not available. I probably have that added to my 3.6.16 version and that's why it works there. So I guess I just have to use a different browser until that plugin is available. But it is another puzzle why TRowePrice makes it work with 4.0 and Fidelity doesn't.
    Do you have a better suggestion than "just wait" ?

    I have never herd of Verizon adding an additional account especially since new account required both a credit check and your signature. Anyway this is a customer to customer forum so I'm not sure how you expect other customers to help you.

  • I'm using OS 10.6.8 and Mail 4.5. When I receive mails with attachments which are visible the save button doesn't work. Some contacts have problems opening files sent by me using Mail too. This was never a problem on pre-Intel. A real Mac **** up !

    I'm using OS 10.6.8 and Mail 4.5. When I receive mails with attachments which are visible the save button doesn't work. And some contacts occasionally have problems opening files sent by me using Mail too. This was never a problem on pre-Intel Mac. A real Mac **** up ! Any ideas ?

    Can you drag and drop the attachments visible in the email to the Desktop OK or does that fail ?
    Re the sending: Are these recipients on Mac's or PC's as the file type could be an issue, if on Mac's then try setting the Mail Preferences Composing setting to Plain Text not Rich Text and see if that improves things.

  • How does full-text search for pdf files work?

    Hi there,
    Basically I can see my pdf file in the content server.. inside the pdf there's a piece of test that says: "Test's Sample" but when I do a search with that string the file gets filtered from the results.
    I think it has to do with the ' (single quote) being there because other text in the pdf works fine.. so I was wondering how does VDK store this full text? where? I'd like to see how it gets translated IF that's how it works with pdf files....
    Following advice from Re: Parse error with search query I tried doing the search by:
    Test\'s Sample
    Test`s Sample
    "Test's Sample"
    The database is db2 if that helps.. how can I fix this problem?

    Nevermind, I fixed it by changing the VDK filters (in case someone is looking for a solution too).
    Cheers,

  • Firefox preview for pdf files doesn't show certain Cyrillic scripts.

    Since pdf preview support was added in Firefox I can't find a solution for the missing Cyrillic letters in the preview of the pdfs which the software in my company generates.
    Other pdf software/browsers with preview don't have issues with the Cyrillic script regardless of localization and OS as the fonts are embedded in the pdf.
    Can you please help with finding some documentation to use as a reference point for finding the solution for this issue?

    Hello,
    In order to change the default reader for PDF files (to not open PDF files with Firefox's internal PDF reader), follow these steps:
    #Go to ''Tools'' > ''Options'' (or ''Firefox'' > ''Options'').
    #In the Options window, select the ''Applications'' tab.
    #In the ''Search'' field, type ''PDF''. You should find ''Portable Document Format (PDF)''.
    #On the right handside you should find an ''Action'' column. Use that to select your favorite PDF reader. In order to view PDF files in Firefox, choose ''Preview in Firefox''.
    Did this fix your problems? Please report back to us!
    Thank you.

Maybe you are looking for

  • WRT54G can connect to router but not internet

    A few days ago, I stopped being able to connect to the internet through my router. I have a desktop which is connected to my cable modem. My desktop connection works fine, but I cannot connect wirelessly with my laptop. Even if I connect a wired conn

  • TS1702 problems with flash based products not running on the ipad 2

    I have problems viewing certain web pages in safari, getting the message that the laatest version of flash player is not loaded, does anyone have any ideas on how to resolve this?

  • Thunderbolt ethernet or wifi?

    Hi I have a 2011 macbook air running mavericks 10,9,4 and a 2012 thunderbolt display with a wired ethernet cable attached, my question is should I turn off the wifi on my MBA when connected to the display or does the MBA automatically select the fast

  • TS2446 How can I get my account to be enable

    How can I get my account enable?

  • Advice request - Collections vs Keywords

    Greetings, This is a question from a Lightroom newbie. I have a large number of photos (86,000). They are mostly botanical photos of plants. I need to quickly find all photos of a particular species. I have photos of about 800 different species. Shou