Export PDF to the path

Hello world

I have a challenge in export PDF special folder called "PDF".

The path PDF to be exported in the News/PDF file. Path of the PDf file.

where indesign file will be inside News/File1/untitled.indd. the InDesign file path

The ESTK shows the result of the error like "cannot find file".

var myFolderPDF = folder (app.activeDocument.filePath) .parent + "/PDF/.

var myJobOptionName = "paper"; Please provide a name to work PDF option available in InDesign.

var myOutFolderPathName = folder (app.activeDocument.filePath) .parent + "/PDF/; Please change your path according to the requirement of

var myPDFFilePath = myOutFolderPathName;

var InDJobOption = app.pdfExportPresets;

App.documents [0] .exportFile (ExportFormat.pdfType, myPDFFilePath, myJobOptionName, false);

Forum thank you

Thanks that I found...

var myFolder = app.activeDocument.filePath.parent + "/PDF/;

myDoc var = app.activeDocument;

var myDocname = myDoc.name.split (".indd");

myDoc.exportFile (ExportFormat.PDF_TYPE, file (new file (MyFolder + "/" + myDocname.join (".pdf")));)

Tags: InDesign

Similar Questions

  • Export PDF to the selective path

    Hello world

    I tried this code to export my PDF in a specific location that is defined in the script below.

    "But I could only receive the error 'Cannot find the location of the folder'~C:\\Documents and Settings\Wande\Desktop\Wander_2.pdf '.

    When I tried to use the same script for Mac, it works, but in Windows, it is not.

    myFolder = "~C:\\Documents and Settings\Wande\Desktop\Wander_2\";

    myDoc var = app.activeDocument;

    var myPath = myDoc.filePath;

    I want to save the PDF file to my specific location (MyAccount) and not in the path of the document (myDoc.filePath).

    var myDocname = myDoc.name.split (".indd");

    app.activeDocument.exportFile (ExportFormat.PDF_TYPE, file (new file (MyFolder + "\" + myDocname.join (".pdf")));)

    Please help on this forum.

    Hi wander,

    Try the code js modifed below.

    //If you want to choose the folder location and save the file. Use the below line.
    var myFolder = Folder.selectDialog();
    
    //You want  default location use the below line.
    var myFolder = "~\Desktop";
    var myDoc = app.activeDocument;
    var myDocname = myDoc.name.split(".indd");
    myDoc.exportFile(ExportFormat.PDF_TYPE, File(new File(myFolder+"\\" + myDocname.join(".pdf"))));
    

    THX,

    csm_phil

  • Adobe CC - Export PDF of the brochure

    I've been struggling this for hours now so I ask for help. It seems that I should be able to export a PDF in the print booklet window, but on my Mac, this isn't an option. I was able to export successfully to a post script file and distill the file in PDF format. But I need to be formatted for 12-inch by 18-inch pages booklet. I don't have a printer that is capable of large-format, so I was not able to create a 12 x 18 of booklet pdf.

    Also, when I try to use the system save in PDF, I get the error "save it as PDF option in the dialogue of the printer is not supported.

    It seems quite ridiculous to me that adobe has not fixed this. Any help would be appreciated. Thank you!

    You can create the PDF distilling postscript, but you need the right PPD. Rob Day has posted a link to the PPD to print booklet post script does not work. Adobe Community

  • Annual subscription to export PDF on the new laptop computer

    We bought export them to Adobe PDF, subscription annually in January and used format on my old laptop. I now have a problem using it on my new laptop and wandered what I should be doing to offer me the possibility to transfer PDF files straight to the word that the old system liked before.

    Hi jog50404415,

    Are you able to connect to ExportPDF at https://cloud.acrobat.com? If so, you can convert your files directly on the site. If you prefer to access the service of Adobe Reader, please download the latest version of the reader of this page: https://get.adobe.com/reader.

    Best,

    Sara

  • Export PDF in the form of Pages

    How to export a PDF that shows each page separately, instead of spreads.

    I have a need to create PDF files in both formats.

    THX

    Said Steve Werner, but to add to it a checkbox indicating "Spreads" when you export to PDF (Print) you will need to make sure there is unchecked.  And if you export to PDF (Interactive) then take a look at this post here.

  • Problem with procedure of 'Export Image' of the graph

    Using Labview 8.5.1 on Windows XP.

    I want the current graphs of a XPGraph object stored in a file, using the precedure 'Export picture'. The path is valid and I always put "crush" true. Yet sometimes the right procedure does not any file at all.

    Is there something that I have to watch any explanation why it works sometimes and sometimes it isn't?

    Best regards

    Heinrich


  • How to get the path of PDF file?

    Hello

    Adobe Livecycle ES2 V9

    Here is the code that I currently use (postSave):

    var fileName = event.target.documentFileName;

    at this point, fileName is (myForm.pdf), there is no path to the file

    fileName = fileName.substring (0, fileName.indexOf("."));

    xfa.host.exportData (".") ("/" + name + ".xml", 0);

    In fact, when the user saves the document PDF an XML file is automatically saved in the same directory with the same name as the PDF file.

    The problem is event.target.documentFileName only gets the pdf and the extension (ex: site_checklist.pdf)

    If the client opens two or more PDF files, it tries to export the XML file in the directory of the first open PDF file (or the last, it have not narrowed down).

    How can I get the path of the current PDF (not PDF more recently opened)?

    I can find no documentation for .documentFileName, I tried documentFilePath too.

    The property you are looking for is the 'path' property: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.411.html

    Here is the documentation for documentFileName: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.389.html

  • Text on a path does not appear in exported PDF / print

    I have a file with the guide lines I typed text on paths. It seems well printed to the screen in InDesign, but when or exported to PDF format, the lines appear and the text does not. Any ideas?

    Windows XP SP3

    InDesign CS4 6.0.3

    6.0.3? First thing we do is update 6.0.6.

    Bob

  • Export XML to the local path. Compliance check

    Some questions that we are wrapping up development on our form.

    First of all, I'm trying to create a button that will save the XML file that is exported to a local path, IE, c:\\windows\desktop

    I found this: xfa.data.saveXML (); which I put in the click event, but how can I say to save in a way?  (and while we're at it, specify a file name)

    Alternatively I tried to use the built in buttons-email, HTTP, but I was unable to find documentation on how to build the code.  I know pretty much anything can be added to the XML source, but I need is a pointer to this that the best way to handle this and how to build the instructions to save the path.  It is for our directors extract XML file and import it in their database.

    Second question: what is the best way to let a user perform a completeness check?  I like how the default email send button checks all fields set to "the user has entered required" and I would like to configure a button that similarly does a completeness check and then warns the user that there are fields to the left or confirms that the form is complete, perhaps with instructions on what to do next.  What is the best way to handle this?  The presentation plan is the user save the pdf locally and then manually upload it to a server that requires a connection, then administrators will export the XML file and import it into a database.

    Thanks for your understanding...

    1. you cannot include a path or file name in this statement (unless you certify the document which has problems of its own). The user must select the path and name (for security reasons). By default, it will save the data in an XDP format. You can switch to another parameter that saves the file with the extension xml instead.

    xfa.host.exportData ("", false)

    2. just add a normal button and add code to the click event that will run all the validations for the form. Assuming that the root node of your form form1:

    Form1.execValidation)

    This will return a true or false value depending on whether there are validation errors or not. So you could combine this with an if statement:

    If (form1.execValidate () == true) {}

    code to cause the shipment arrives

    submitButtonName.execEvent ("click")

    } else {}

    App.Alert ("there are validation errors in your form!")

    }

    Hide you the real send in this case button if the user could not bypass your code.

    Hope this helps

    Paul

  • PDF empty created during the export of the BLOB to PDF on the unix Server

    Hello

    I'm trying to export a blob of DB and write in a PDF on the unix server. But what I get is a blank pdf on unix server.

    Any idea?

    My code is as follows:

    CREATE OR REPLACE PROCEDURE write_to_file ()
    IS
    v_cn_letter_name      VARCHAR2 (100);
    v_buffer              RAW (32767);
    v_amount              BINARY_INTEGER := 32767
    v_pos                 INTEGER := 1;
    v_blob_len            INTEGER;
    v_file                UTL_FILE.FILE_TYPE;
    ftp_fldr_loc_i        VARCHAR2 := '/devl/apps/my_dir';

    data_to_write         BLOB;

    BEGIN
    v_cn_letter_name := 'MyLetter.pdf';
    BEGIN
      SELECT cnsmr_letter
      INTO data_to_write
      FROM my_table
      WHERE letter_emailed_ind = 0;

    EXCEPTION
      WHEN NO_DATA_FOUND
      THEN
      ent_logging_pkg.handle_exception_prc
      (SQLCODE,
      SQLERRM,
      'No Records for letters');
    END;

    BEGIN
    v_blob_len := DBMS_LOB.getlength(data_to_write);
    -- Open the destination file.
    v_file := UTL_FILE.fopen(ftp_fldr_loc_i, v_cn_letter_name, 'WB', 32767);
    WHILE v_pos <= v_blob_len
    LOOP
      IF v_pos + v_amount - 1 > v_blob_len
      THEN
      v_amount := v_blob_len - v_pos + 1;
      END IF;
    DBMS_LOB.read(data_to_write, v_amount, v_pos, v_buffer);
    UTL_FILE.put_raw(v_file, v_buffer, TRUE);
    utl_file.fflush(v_file);
    v_pos := v_pos + v_amount;
    END LOOP;
    -- Close the file.
    UTL_FILE.fclose(v_file);
    EXCEPTION
      WHEN OTHERS
      THEN
      IF utl_file.is_open(v_file)
      THEN
      utl_file.fclose(v_file);
      END if;
      ent_logging_pkg.handle_exception_prc
      (SQLCODE,
      SQLERRM,
      'EXCEPTION WRITING TO FILE');
    END;
    END write_to_file;

    How do you open the pdf in unix (or linux) server, which is the operating system on your database server? Maybe it's to do something with the tool that you use to open the pdf, I remember some problems with opening the Toolbox open office

  • How can I export as single STROKE trace the path?

    All my features (even on the smallest setting), out of the full paths when open in Illustrator.  Is there a way to export the paths as single striped?

    Lol draw create filled shapes, not outlines. It is similar to drawing with the BLOB brush in Illustrator.

  • Save pdf to the same location as the orginal .indd file that is exported from the

    Hello!

    I'm just starting to get my feet wet in Javascript scripts, and I greatly enjoy!

    I am wanting to create a script that a PDF using a PDF export preset I set export and then I want to have the pdf saved in the same folder as the indesign file that was exported from. I already know how to export the pdf file using a "Preset" I already have. The only thing I do not know how to do is to indicate the pdf file to be saved in the same folder as the Indesign file that is exported from. Can someone help me please? I would be very happy!

    I would also like to find a way to automatically name have the pdf named the same name as the Indesign file, it has been exported since.

    If I need to clarify something more, feel free to let me know.

    Thank you very much!

    Try this code example

    app.scriptPreferences.version = 11.0

    myDocument var = app.activeDocument;

    var myFileName.

    If (myDocument.modified == false) {}

    myFileName = myDocument.fullName + "";

    If (myFileName.indexOf (".indd")! = - 1) {}

    var myRegularExpression = /.indd/gi;

    myFileNamePDF_Web = myFileName.replace (myRegularExpression, ".pdf");

    }

    {with (App.pdfExportPreferences)}

    PDFJPEGQualityOptions.HIGH;

    PdfMagnificationOptions.FIT_PAGE;

    PageLayoutOptions.SINGLE_PAGE;

    colorBitmapCompression = BitmapCompression.zip;

    colorBitmapQuality = CompressionQuality.eightBit;

    colorBitmapSampling = Sampling.BICUBIC_DOWNSAMPLE;

    colorBitmapSamplingDPI = 300;

    }

    myDocument.exportFile (ExportFormat.pdfType, new leader (myFileNamePDF_Web));

    } else {}

    Alert ("save your file before you continue");

    }

    Thank you

  • Overview of the issues when exporting pdf from InDesign

    Hello

    I'm working on PC, Windows 7, InDesign of CS5. I had several problems with executives of color filled not appearing is not in the preview of an exported pdf file, different file, same problem. The files 'prints' very well. For example, I have a page that contains a logo, two lines of text in the Arial font, two photo .jpg (CMYK) and a background color solid process. When I export to PDF (I tried all the options available to me) the colorful background does not appear in the preview. I can send this file to the printer and it prints exactly as set upward in InDesign. I also systematically deleted each item separately and re-exported the same results each time. I even deleted everything on the page with just the colorful box. Same result. I did drag the elements on a page in a new document. Same result.

    Thoughts? Does anyone else know this? I looked for further discussions on this topic, but couldn't find one just like her.

    Thank you!

    one

    Blow of dagger in the dark here...

    Check your Acrobat preferences under the Page display and do not forget the large images are enabled, and under accessibility and make replace safe colors is not.

  • Some hyperslinks in the exported PDF file takes the Viewer to the pages "broken/missing. For example, the hyperlinks to specific of Youtube videos does not work, they brought to a youtube page is missing.

    Some hyperslinks in the exported PDF file takes the Viewer to the pages "broken/missing. For example, the hyperlinks to specific of Youtube videos does not work, they brought to a youtube page is missing.

    Hi Sarah!

    I solved it! I had to use the original URL shorter links to create

    functional hyperlinks or try to short the links using Google URL Shortener.

    I don't know why it worked by doing this, but he did!

    With the friendly and happy greetings!

    Sonny. A

    2015-11-24 9:32 GMT + 01:00 aadeshs76610910 [email protected]>:

    You talked

    by aadeshs76610910

    https://forums.Adobe.com/people/aadeshs76610910?et=notification.mention> * in

    Re: A few hyperslinks in the exported PDF file takes the Viewer to

    pages "broken/missing. For example specific Hypertext to Youtube videos links

    does not work, they will bring to a youtube page is missing. in Adobe

    Community *-view aadeshs76610910 you reference

    https://forums.Adobe.com/message/8209923?et=notification.mention#8209923>

  • How to access the pdf of the cloud on iPad when says "document path is not valid.

    Hello

    I am wanting to access a PDF file from my Windows PC, my iPhone and my IPad, I'm trying to read and HI-lighting for use in higher education. I can't seem to save my computer Adobe document cloud and you can view them on my iPhone, but all the documents I try to access on my IPad that are found on the cloud receive a message of: "the path to the document is not valid."  If I save a document in my software adobe reader on my IPad for an email or a Web site directly from my IPad, I am able to open it. This affects only the documents in the cloud. The files all say they have different file sizes (e.g. - 207KO, 166KB, etc. and NOT say 0 KB, so I know that the document is not a blank document). Any suggestion would be great. In addition, the settings in the application are the same for my IPhone and my IPad, so I find it confusing that I can access it on my IPhone but not my IPad. Both use the same IOS software. (IOS 9.0.2).

    Thank you

    LInda

    Hello

    Please check if you have saved the file storage cloud Document and mobile link is turned on. Also, check if the file is completely downloaded to the cloud storage by going to cloud.acrobat.com.

    Thank you

    Abhishek

Maybe you are looking for