Script for Portfolio PDF files

Hi,
I have a portfolio with several PDF XFA forms inside.
I want to set up a button so that when the user clicks it the PDF will
open in a new window (outside of the portfolio); Need help here!
lock some of the fields; Have this done with .access = "protected";
save the PDF locally; Done using app.execMenuItem("SaveAs")
I am having difficulty in scripting a solution like the standard button at the top right of the portfolio window: "Open .pdf file in a new window"
Any ideas?
Thanks,
Niall

This forum is for scripting questions rather than script requests.
Please start by reading the following:
Posting guidelines
Handy tips for posting to this forum
How to ask questions in a technical forum
Rubber duck problem solving
How to write a bad forum post
Help Vampires: A Spotter's Guide
-- Bill Stewart [Bill_Stewart]

Similar Messages

  • Script for Place PDF file into a InDesign file

    Hi everyone, i need to import a PDF file into a InDesign document and in order to do this i used scripts found over  the net (e.g. Zanelli's script ecc.) but i tried this solution:
    function(){
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
        var myDocument, myPage;
        if(app.documents.length != 0){
            myDocument = app.activeDocument;
        else{
            alert("No document opened");
            exit();
         if (app.selection[0] == undefined) {
            alert("Select box");
            exit();
         } else {
                var myPDFFile = File.openDialog("Select PDF:");
                if((myPDFFile != "")&&(myPDFFile != null)){
                    myDocument.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN;
                    myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.MILLIMETERS;
                    myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.MILLIMETERS;   
                    var myData = new Array;
                    myData[0] = app.selection[0].parentPage;
                    myData[1] = app.selection[0].geometricBounds;
                    myData[2] = app.selection[0];
                    myPlacePDF(myDocument, myData, myPDFFile);
        //FUNCTIONS
        function myPlacePDF(myDocument, myData, myPDFFile){
            var myPDFPage;
            var myPage = myData[0];
            var myGeometricBounds = myData[1].toString().split(",");
            app.pdfPlacePreferences.pdfCrop = PDFCrop.cropMedia;
            var myCounter = 1;
            var myBreak = false;
            while(myBreak == false){
                if(myCounter > 1){
                    myPage = myDocument.pages.add(LocationOptions.after, myPage);
                 app.pdfPlacePreferences.pageNumber = myCounter;
                 myRectangle = myPage.rectangles.add(undefined, undefined, undefined, {geometricBounds:[myGeometricBounds[0],myGeometricBounds[1],myGeometricBounds[2],myGeometricBounds[3]]});
                 myRectangle.clearFrameFittingOptions();  
                 myRectangle.frameFittingOptions.fittingOnEmptyFrame = EmptyFrameFittingOptions.PROPORTIONALLY;
                 myRectangle.frameFittingOptions.autoFit = true;
                 myRectangle.frameFittingOptions.fittingAlignment = AnchorPoint.CENTER_ANCHOR;
                 myPDFPage = myRectangle.place(File(myPDFFile), false)[0];           
                 if(myCounter == 1){
                    var myFirstPage = myPDFPage.pdfAttributes.pageNumber;
                else{
                    if(myPDFPage.pdfAttributes.pageNumber == myFirstPage){
                        myPage.remove();
                        myBreak = true;
                myCounter = myCounter + 1;
             myData[2].remove();  
    what i would is, before the script place every single page of PDF file in the document, determine if the same page of the Pdf file is vertical or horizontal, to make the right section for the page.
    Is it possible?
    Thank you

    Moved to scripting forum...

  • How can I perform the conversion of pdf files in Cyrillic script to Word files in Cyrillic script. The pdf file is too small for me to read right now. Julyan Watts

    How can I perform the conversion of .pdf files in Cyrillic script to Word files in Cyrillic script. The .pdf file is too small for me to read without a magnifying glass, and the document is more than one thousand pages.

    This answer was not helpful. First of all, I could not find "tech specs"
    anywhere on the Acrobat 11 homepage. And secondly I purchased this software
    for the specific purpose of converting .pdf files to Word. It was only
    after I had completed the purchase that I learnt that Acrobat does not
    permit the conversion of .pdf files in Cyrillic to Word files  in Cyrillic.
    I feel that Acrobat should have provided this crucial information before I
    allowed my credit card to be debited. That is why I  am now asking for my
    money back. But thanks for your attempt to solve my problem, even if it was
    not successful.
    Julyan Watts

  • Parameters for opening PDF files in a browser

    I read some of the posts about making a text link from an html page to a specific location in a pdf document in the browser.  I set up the parameters, as I understand it, according to the document "Parameters for Opening PDF Files." The result from my test took me to the top of page 1, not to the bookmark on page 3 that I specified. See the link below. What is wrong with the parameters?
    http://www.tabardtheatre.org/YPASCfolder/2012/SummerYouthProgram2012.pdff#page=3&bookmark= anniejr
    You can also go to the website: http://www.tabardtheatre.org/audition.html and click on the text link (in blue).

    The PDF Open Parameters do not contain the option to link directly to a bookmark, as was mentioned, but I've developed a script that can add this functionality to your files. Have a look here, if you're interested: http://try67.blogspot.com/2011/06/acrobat-link-to-specific-bookmark-in.html

  • How to download the script data into pdf file

    how to download the script data into pdf file
    i have one option to download the script data to pdf file --->rstxpdft4 program.
    i have one doubt how to use this proogram.or any function module to download the script data to pdf file.
    Thanks and regards,
    Sri.

    Hi      Sri Sai,
    I know one method to convert the sapscript to pdf file :
    first generate a Spool Request for the required Sapscript
    then goto transaction SP01 and copy the generated Spool Request number
    now execute the SAP report RSTXPDFT4
    here enter the copied Spool request number and the target directory into the parameters
    execute the report
    required pdf file will be generated into the target directory
    i hope it will help you out
    Please refer this simple program:
    http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
    Reward points if found helpful....
    Cheers,
    Eshwar.

  • How can I set the maximum number of restarts for my PDF files?

    I want sent my PDF to a friend,but I just allow him see it only twice.
    How can I set the maximum number of restarts for my PDF files?
    My software edition is Acrobat X

    In the old days when PDFs were only opened on desktops and only in Acrobat or Reader, scripting could fake security features and people were generally convinced. As there are so many ways to open a PDF without scripts ever being run (from mobile devices to in-browser display, or simply opening the file in Illustrator), none of that works anymore.

  • Install 3rd party PDF iFilter for index PDF file as attachment in e-mail (msg)

    I have called Microsoft Permium Support, base on the reply, SharePoint 2013 does not support to index a PDF file attachment in E-mail (msg) except 3rd party iFilter installed. And they finally told me how to edit Windows Registry for install the Adobe iFilter.
    But, the Adobe iFilter is too weak to call large PDF files. So, I would like to install and try the Foxit PDF iFilter, but I cannot find an installation guide for this 3rd party ifilter with SharePoint 2013. 
    Does anyone here have the experience for Foxit PDF iFilter with SharePoint 2013 can help me?
    I am not sure it is bug or feature in SharePoint 2013, but in case I still have to install 3rd party iFilter for index PDF file. I have no idea what is the out of box pdf file indexing support for.

    You ca plan to use Foxit. 
    steps are nearly the same which we use in sharepoint 2013
    1. We need to update registry for pdf . Registry value is {987f8d1a-26e6-4554-b007-6b20e2680632}
    2. we need to install the foxit ifilter
    Here are steps for same
    http://support.microsoft.com/kb/2293357
    3. run below command:
    net stop spsearch4
    net start spsearch4
    net stop osearch14
    net start osearch14
    Check below:
    http://bjarnegram.wordpress.com/2011/07/13/installing-foxit-pdf-ifilter-on-sharepoint-server-2010/

  • Saving Password for a pdf file in HP Client Security Manager

    Hello,
    I want to save the password for a pdf file in the Password Manager of the HP Client Security Manager Software but the symbol for the entry of the password is not appearing on the top right of the screen. If I use the registered fingerprint a dialog opens where the Client Security Manager asks which account it should use to login. But i can't add a password for the file. The login for websites is perfectly fine. 
    Do you have any idea how to fix that?
    Is there a way to manually enter password for files?
    Thanks in advance.

    Thanks for the information.
    Suggest you to try uninstall and re-install the latest version which is - 8.3.3.1762. The direct link is:
    http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdDetails/?sp4ts.oid=5405363&spf_p.tpst=swdMain&spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253Dob_129972_1%257CswEnvOID%253D4060%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken
    If this does not fix, then suggest you to log a call with technical support.
    Please do post any progress on this.

  • How do I make Adobe Reader NOT my default program for reading pdf files?

    I installed Adobe Reader and made it my default program for reading pdf files.  I'd like to undo that and go back to "preview" as my default.

    Sure you are following instructions:

  • How can I get a monthly subscription for combining PDF files

    How can I get a monthly subscription for combining PDF files. I have been able to subscribe in the past, but now all I see is annual subscription. I do not need an annual subscription because I do not use it often enough.

    Hi paige1186,
    The Adobe PDF Pack subscription, which allows you to combine PDF, is only available at an annual rate of $89.99. We do offer month-to-month subscriptions of Acrobat Pro and Standard, but I think you'd actually come out ahead with the annual PDF Pack subscription, if you planned on combining files more than 3-4 times throughout the year.
    Best,
    Sara

  • How to open my file in Gmail after download free trial for converting PDF file to Microsoft Words.

    after download the Free Trial for Converting PDF file to Microsoft Words, I can't open my file in gmail

    One solution would be to generate the report via an servlet which you then call with an af:golink with an target frame set to blank.
    For a sample how to do this check out http://tompeez.wordpress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-3/
    Timo

  • How to reliably check the resolution for a pdf file?

    Should I use preflight to reliably check the resolution for a pdf file?  I have posted my frustrations on http://forums.adobe.com/thread/978098

    You can create your own preflight tool to check for the dpi of embedded images.

  • Does Adobe provide a free API for creating PDF files

    Does Adobe provide a free API (for Windows) for creating PDF files?   We are currently using
    a basic, internally developed API for creating PDF files, but would like some additional
    capabilities ... in particular the ability to add a watermark that appears when printing
    but not when viewing PDF files on-line.
    If this is not the right forum for this question, please let me know what forum would be
    appropriate.
    Thanks,
    Mark

    OK, with a little bit of searching on Adobe's web site, I found the answer to my question.   Yes, Adobe does offer
    an API for creating/manipulating/reading PDF files:  it's called the Adobe PDF Library SDK and it has to be
    licensed.  Version 9 is the latest.   The cost is decided on a case-by-case basis.    Here is the link:
    http://www.adobe.com/devnet/pdf/library/
    Mark

  • Need  Shell Script  for picking the files

    Hi,
        I want to write a shell script for piking the files in a sequence order (according to filename with time stamp)  from the sorce FTP server ..
                     Requirement is  in the source directory I'm getting files (Jain_1.xml  , Jjain_2.xml, Jain_3.xml .. ect..)  at  present my file adapter is picking all the files at a time  but  i want to pick  one by one... that to first i want to Jain_1.xml  after finish the processing of the file then only my file adapter should  pick the next file ( Jain_2.xml )  .
                  so..  all the forum mates suggest me to write a shell script..  but where  i have to write the s hell script. and where i have to deploy this script.... my Xi is running on UNIX ... so please sugest me  the procedure ...
    Regards
    Jain

    Hi,
    Why dont you use the option EOIO in which files will be picked up in order and will be proccessed in sequence....one after another....
    Regards,
    Sreeni.

  • Okular freezes for some pdf files

    My problem is that Okular freezes for some pdf files, the problem is NOT related to how big files are, or how many pics/raster in them. I have many pdfs that exceeds 90 MB and run smoothly. Moreover, I have also many large djvu files that run smoothly. Evince runs all files smoothly  as well. I have the latest stable okular with the latest stable poppler versions as of today.
    Okular freezes in a somewhat weird way, if I go down from page x to x+1 in contiuous mode, It freezes when I reach the gray bar that spearates the 2 pages, when I want to go back to page x from page x+1, which it is supposed to be cached and should load smoothly, Okular also freezes at the same place.
    My problem happens with small books having almost all text, and also happens with scanned books. The weird thing is that some other scanned books and some other all-text pdfs, e.g. academic papers, runs smoothly.

    Sounds like a bug. Try to report it to the bug tracker and be sure to add a file that shows the problem so that the devs can backtrace it.

Maybe you are looking for

  • Stop Safari pages from reloading when selected.

    Safari in iPad is driving me crazy. Unlike tabs in Safari for Mac, the pages on the iPad seem to be hardwired to reload when you select them (I usually have several pages open and need to switch back and forth between them). And that means lots of wa

  • Connection to the deployment share could not be made (network driver not installed)

    Hi guys! i bought the new laptop Dell Latitude E6510 and try to install the enterprise image but i got the error: "A connection to the deployment share could not be made. The deployment will not proceed. The following networking device did not have a

  • Scale Pricing

    Hi, I am facing an issue where i have maintained scales as shown below: Scale Type     Scale Quantity     Unit    Amount     Unit    per   UOM From                  1                       DAY   4200         SGD   7      DAY                          

  • 60gb of 'other' on 120Gb classic - what is it and how do we get rid of it?

    60gb of 'other' on 120Gb classic - what is it and how do we get rid of it?

  • Defining container for BO FIPP method POST

    Hi Experts, New to workflow, we are creating a program that instantiate BO FIPP method POST, how to create container for this fields? object-key-documentno. object-key-sourcecompanycode. object-key-fiscalyear. We will populate this from parameters. T