Several groups in PDF export

I posted a similar question in the past and it has been sorted (ending with export groups but in JPG format). However, I would like to export them to PDF, now that I know it's possible and have a rough idea of how to do this through some members of this forum.

Although I only got an extreme like the code below. It resizes the page but it looks like the right size - and the Group meets in pasteboard somewhere.

Would be very happy if someone could remember where I've gone wrong!

var doc=app.activeDocument;  
var links=doc.links.everyItem().getElements();  
var fd=new Folder(doc.fullName.parent+'/PDF');  
if(!fd.exists){
  fd.create();
}
var f;  
for (var i=0;i<links.length; i++){
  if ((links[i].status==LinkStatus.NORMAL||links[i].status==LinkStatus.LINK_EMBEDDED)&&  
  links[i].parent instanceof EPS &&
  links[i].parent.parent.parent instanceof Group){


    //create new document
    app.documents.add();


    //duplicate group to new document
    links[i].parent.parent.parent.duplicate(document.pages.item(0));


    //set bounds of page to bounds of group
    var pg = app.activeDocument.pages.item(0);
    var gBounds = links[i].parent.parent.parent.geometricBounds;
    pg.reframe(CoordinateSpaces.INNER_COORDINATES, [[gBounds[1], gBounds[0]], [gBounds[3], gBounds[2]]]);


    //export as PDF
    f=File(fd.fullName+'/'+links[i].name.replace(/.[^.]+$/,'')+'.pdf');  
    app.activeDocument.exportFile(ExportFormat.pdfType, f)


    //exit without saving
    app.activeDocument.close(SaveOptions.NO);


  }
}

Adam

Adam,

It seems simpler to create the new document to the appropriate size so that no resizing is required. Something like this:

group = links[i].parent.parent.parent;
gb = group.geometricBounds;
app.documents.add ({documentPreferences: {pageWidth: gb[3]-gb[1], pageHeight:gb[2]-gb[0]}});
duped = group.duplicate(app.documents[0].pages.item(0));
duped.move([0,0]);

P.

Tags: InDesign

Similar Questions

  • Several types of pdf export (high quality, prepress, smaller size, etc.) in a single process indd file?

    Hello world

    For many of the projects I'm working on that I need to provide customers with a high resolution, low resolution and ready to print their documents. It is not a huge deal to run the export of Indesign 3 times, but I wonder if there is a batch process that can do at once? For the moment, I'm archiving work and it's a major pain to do this for each file!

    I have been a script, perhaps a droplet of acrobat or action, Distiller affecting thinking, or perhaps a third-party app?

    Does anyone have any ideas or suggestions? I looked for something like this for a while, but the only thing I found is out factory of Zervik - I'm not yet sure he does several types of indd. But surely there are free tools or some intelligent workflows that I have not yet stumbled...

    Any ideas or suggestions would be greatly appreciated!

    Thank you very much

    Manny

    Manny, check out this blog post:

    http://www.ID-extras.com/script-to-export-multiple-PDFs-at-once

  • Automation of several scanned page PDF export to Excel

    We have MANY PDF files scanned at work (about 8 400) that we need to export to Excel. There are a few tricky parts to what I'm trying to find out if there is a way to automate this. These are all individual PDF files, but I know that I could convert them all to a multipage PDF, if I need to, that shouldn't be a problem. The major problem being that we want only a small part of all files PDF, the upper left corner that has some basic information (name and address) to be exported to an Excel worksheet. The rest of the PDF file is not required. If that helps anything on the automation of formatting are simple page PDF. Anyone know if this is possible?

    I asked this in the PDF forum, but someone suggested to ask in the forum of java script instead.

    It can be done, most likely, but it would be a custom script to extract the text from the desired coordinates and then export it to a format that can be read using Excel (for example, a text file delimited by tabs). This is not a simple task, however.

  • Doc page PDF export.

    When I export a doc page to PDF function stops page index score does not appear to work, for example, when I place the cursor on the page number in the new PDF, the hand symbol copy content page and the page does not open.

    That ability is not taken in charge when Pages PDF exports. In fact, there is no usable exported links. A downside when you export to PDF is that supported in Adobe Acrobat features are not supported in no Adobe product of PDFs.

  • PDF-export truncates report

    When I export my TDR-report (test.tdr in attachment) to PDF I get only truncated reports (see testDIAdem2012.pdf in the attachment). Export to JPG or WMF format is OK. (see test.jpg in attachment). Even the printer output is as expected.

    It does not matter if I use the Menu\PDF file to the export or the following code

      Pads const = "C:\temp\test. TDR.
    SPDF const = "C:\temp\test.pdf."

    Call PicLoad (pads-r)

    PicWidthInScal = 29.7
    PicHeightInScal = 21
    PrintLeftMarg = 0
    PrintTopMarg = 0
    PrintOrient = "landscape".

    If FileExist (sPDF), THEN call FileDelete (sPDF)
    PDFFileName = sPDF
    PrintName = "winspool, DIAdem PDF Export"
    Call PicPrint ("WinPrint")

    Truncated PicPdfExport results in the same report.

    What can I do to get a whole PDF-report page?

    GEMÜ

    Hi GEMÜ,.

    When chossing the pdf export as part of your report is printed. You can turn off the frame in page layout options.

    Letter: Einstellungen > einrichten Layout > Layout-setting...

    I've attached a screenshot of the box you need to uncheck.

    If this does not resolve your problem, please do not hesitate to come back to me.

    Kind regards

    Vanessa

    AE Munich

  • Windows vista ultimate 64 bit PDF export error

    Hi, I use diadem 11.0 and I have a big problem with my new operating system.

    When I try to export a report to PDF I get a printing error in the status of the printer "diadem pdf export.

    Any idea or solution for this problem?

    Thanks for the support of Brad, I tried to download and install diadem 11.1, but it does not solve the problem.

    After that, I tried to search the forum for a solution amyuni and I discovered this (he solved my problem)

    Windows Vista:

    1. Make sure that you are connected as a Windows administrator.
    2. Click the windows button, and then click Printers.
    3. Make the Diadem pdf Export right click and select Properties
    4. Click the Ports tab, and then click the Add Port button.
      Note: If the Ports tab is grayed out, right-click on the Diadem Pdf Export icon and select run as administrator.
    5. Select Local Port and click New Port .
    6. Enter the new name of port PDF1 , and then click OK. Close the Printer Ports window.
    7. Put a check mark in the box next to the port of PDF1 if it is not already.
    8. Click the Advanced tab.
    9. Select the option Spool print documents to the below clickable options.
    10. Clear (uncheck) the box for enable advanced printing features by clicking on it.
    11. Select the print directly to the printer option button to make the options below not clickable.
    12. Click the apply button, and then click OK.
    13. Important: so that the changes take effect, you must restart your computer.
      Restart your computer, and then try to print, send, or create a PDF of DIAdem.

    Kind regards

    Gert Ierman

  • HP 4630: I am wanting to scan several pages in PDF format that I I use a HP4630

    I am wanting to scan several pages in PDF format I can do, but I want to print a copy at the same time? Is this possible.  I use a HP4630?

    Hello

    No, they are two different functions.

    Kind regards.

  • How to scan documents several pages into .pdf using Microsoft Fax and Scan in Windows 7 64 bit

    I need to scan documents from several pages to .pdf files in a user's preferred directory.  I have a HP Color Laserjet 2840 Director HP Windows XP to scan documents to .pdf files. I had to move the printer/scanner on a 64-bit Windows 7 computer.  No HP Director or the HP Solution Center is supported for this printer under Windows 7 and HP Internet site recommends the use of Windows Fax and Scan.  Fax and scanning does not support scanning into .pdf analyses or several pages in any format except TIFF.  It also only allows files to be redirected to network folders and is not a browse button to select a location.  Short buying Adobe Acrobat and using a 2-step process of digitization in TIFF format and then print the TIFF to PDF file. does anyone have any suggestions?

    I discovered thanks to a thread on this issue that Windows 7 does not come with the ability to scan multi-page documents, although versions previous to Windows.  I read that it takes download program Microsoft Office Document Imaging (MODI) Microsoft to scan multi-page documents.  What a pain!

  • VPN access query remote ASA - several group policies for the unique connection profile

    Hi all

    Two quick questions here that I need to help.

    1. in an ASA 5525, is it possible to have several group policies for a single connection profile?

    Scenario: A customer is running F5 Firepass to their VPN solution and this device is used by them to have multiple strategies group by the connection profile. We plan to migrate them to ASA (5525) and I don't know if the ASA can support that.

    2. in an ASA-5525 for Clientless Remote access VPN, can pass us the page to connect to an external server? For example, if I have a connection with a URL profile setup: "'https://wyz.vpn.com/ ';" for the LDAP/Radius Authentication, but for https://wyz.vpn.com/data and https://wyz.vpn.com/test I want to HTTP based authentication form and this page needs to be sent to an external server that is to say ASA step will manage this page, but rather the first page for this is served by the external server.

    Scenario: One of our clients is running F5 Firepass to their VPN solution. On the F5 they have pages of configuration such as the https://wyz.vpn.com/ that the F5 shows to the user when they connect via VPN without client; However if the user types https://wyz.vpn.com/data in the browser, the traffic comes to the F5, but F5 redirects this traffic to an external server (with an external url as well). Then it's this external server that transfers the first page of the user requesting authentication for HTTP form based authentication information.

    Thanks in advance to all!

    Hello

    You can have fallback to LOCAL only primary method.

    http://www.Cisco.com/c/en/us/TD/docs/security/ASA/asa90/configuration/gu...

    HTH

    Averroès.

  • Several groups of RADIUS auth on a single Windows Server

    We have several groups RA VPN on a 3845 router.

    Authentication RADIUS which is currently happening between the 3845 and one Windows 2008 Server.  We have a group of specific windows which AD users are members, and they are allowed to connect through the VPN.

    I create a new group of VPN, which should only allow different users of the AD.  Is it possible to create another association of RADIUS on the same server, or do I need to authenticate to a different Windows Server?

    Thank you

    Tyler

    Hey Tyler,

    If I understand the question, here's what you have to say.

    There are several groups on the announcement. currently 1 user group special on AD connect very well to the RAVPN.

    Now you want to connected VPN or authorized for another group on AD. Basically, you want to control access to resources based on the groups that they belong to the advertising. Am I wrong?

    You use the aaa server is the RADIUS. I don't think you can do authentication and control of access based on the ad groups using RADIUS.

    I would say try LDAP.

    http://www.Cisco.com/en/us/docs/iOS/sec_user_services/configuration/guide/sec_cfg_ldap.html

    I hope this helps.

    Kind regards

    Anisha

    P.S.: Please evaluate the useful messages

  • PDF export settings have disappeared?

    My pdf export settings have disappeared. This is the default, hires, ready to print, settings lores.

    I tried to look for a solution without a bit of luck!

    Anyone have any ideas?

    See you soon!

    Means the faster seems be reinstall InDesign...

  • Come fare by reinstallare Adobe PDF Export all year dal vecchio al nuovo computer

    Salve, ho changed it mio computer ora devo reinstallare he pacchetto di Adobe da me labor-intensive che comprende i components sotto sins, come devo fare? IO sono in possesso della mail confirmation ordine di con solo he number di ordine. Chiedo cortesemente di kindly in italiano Grazie

    • Adobe PDF Pack
    • Adobe PDF export
    • Send and track Adobe
    • Adobe sign
    App per dispositivi mobili
    0 "style =" box-sizing: border-box; " padding: 0px 10px 0px 0px; ">
    Più
    • Document Archiviazione Cloud
    • Funzioni dispositivi mobili premium

    Cloud license allows 2 activations to time http://www.adobe.com/legal/licenses-terms.html

    -pdf of 200 http://www.adobe.com/content/dam/Adobe/en/legal/servicetou/Software_Terms-en_US-20150601_2.

    -Install on a 2nd computer http://forums.adobe.com/thread/1452292?tstart=0

    -https://helpx.adobe.com/creative-cloud/help/sign-in-out-activate-apps.html

    -Windows or Mac has no importance... 2 on the same operating system or 1 on each

    -Two activations on one account CAN NOT be used at the same time (to be noted in the link above of the license)

  • How to return to my first pdf export?

    Hello

    I HAD ALREADY PURCHASED ANNUAL PDF-EXPORT IN APRIL 2017, THEN 10 DAYS AGO SIGNED FOR 7 DAY TRIAL

    DC - PRO ADOBE, NOW THAT THE 7 DAYS ARE OVER, HE I CANNOT RETURN TO MY ORIGINAL

    PLAN AND MAKE THE PDF-EXPORT TO WORD FORMAT.

    HE KEEPS ASKING ME TO SIGN UP TO THE SUM OF $ PLUS PLAN PRO, I HOPE YOU DON'T.

    HOW TO RETURN TO MY FIRST PDF EXPORT? PLS HELP.

    RGDS

    KP

    Hi contel$ $44,

    Please use Adobe Acrobat Reader DC application PDF export.

    Try to log out of the application, restart it and then reconnect with the Adobe ID

    You can also export a PDF online here: https://cloud.acrobat.com/exportpdf

    Let us know if you still experience the problem.

    Kind regards

    Meenakshi

  • Cannot use Adobe PDF Export services

    Hello

    When I click on connect, I don't have the (window) option to choose my PDF file to convert to Word. I use an iMac, ElCapitan uptodated.

    Thank you.

    Robert

    Hi roberth84201471 ,

    Could you please say how you use Adobe PDF Export services, through Reader or by going to https://cloud.acrobat.com/

    Do you receive an error message?

    Also, try the following steps:

    1. disconnect from the Application (Reader), click on your name in the upper right corner of the screen, and then click Sign Out, proximity reader.

    2 - Launch Reader again and login and try to use the PDF services.

    3 - If you use https://cloud.acrobat.com/ , click on the upper right of the screen and click sign out, close the browser and try again.

    4 - also, try using a different Web browser to connect and check if you are able to use the services.

    Let us know the results.

    Thank you!

    Shivam

  • Preference of interactive pdf export

    Dear friends,

    My work: I need to create interactive pdf and including some value is preferably below I have screenshot of the place.

    I need "interactive pdf export preference setting" only. I try a code but does not work. What I need interactive pdf parameter in the screenshot below. Otherwise, I put my code also. Please suggest friends.

    My code:

    
    var myDocument = 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) {  
            
    //************************* Need help ********************************      
            InteractiveElementsOptions.APPEARANCE_ONLY        
            PDFJPEGQualityOptions.HIGH;  
            PdfMagnificationOptions.FIT_PAGE;  
            PageLayoutOptions.SINGLE_PAGE;  
            colorBitmapCompression = BitmapCompression.AUTO_COMPRESSION;
            colorBitmapCompression = BitmapCompression.zip;  
            colorBitmapQuality = CompressionQuality.MAXIMUM;  
            colorBitmapSampling = Sampling.BICUBIC_DOWNSAMPLE;  
            colorBitmapSamplingDPI = 300;  
    //************************* Need help ********************************      
    
    
        }  
    
    
        myDocument.exportFile(ExportFormat.INTERACTIVE_PDF, new File(myFileNamePDF_Web));  
    } else {  
        alert("Save your file before continuing");  
    }  
    

    Screenshot:

    pdf.png

    Please help very urgent process of a friend

    Thanks in advance.

    Optimize the creation of large INDB exported as an interactive PDF

Maybe you are looking for