File count in PDF package

Is there an easy way to get a count of the files in a packaged PDF? I know that I can extract all files to a folder and then get a file count from the folder, but I am hoping that there is an easy way in Acrobat to get this.

The File operations in java.io are relative to the current directory--that is, whatever directory was current when the VM was started. They have nothing to do with where a given class resides.
Use Class.getResource or Class.getResourceAsStream.

Similar Messages

  • Can no longer print multiple files from a PDF package

    Prior to our upgrade to Acrobat Pro X, we had the ability to print multiple files within a PDF package.  We would simply select the files we wanted to print, say print and it would print them all.  It no longer does so, although it still allows us to select multiple files and to select ALL from the print menu but then it only sends the first file to the printer.
    We have tried it on both Windows XP and Windows 7 and it won't work correctly on either one.
    Does anyone have any ideas?  This is very frustrating as these packages are created by folks bundling their e-mail messages to send to the fileroom for printing and filing in the official case files.  With the old method we were able to quickly print out all the messages without attachments, and then would only have to individually print those messages that had attachments.  As stands now if we get a package with 100 messages in  it we will have to select and print each file individually instead of being able to print the 75 without attachments as one print job and then only have to do the seperate handling for the remaining 25 with attachments.
    Any and all suggestions are welcome.

    I'm using windows 7. The Acrobat that came with the Adobe Creative Suit 4 is Adobe Acrobat Pro. When I am on a web site that has a page in PDF I click on the printer icon and the print page comes up but the preview side is blank and will not print the page.

  • Is it possible to link to a specific file in a PDF "package"?

    I'd like to link to a specific file in a PDF "package" from a web page. Is this possible?
    Thanks.

    No. Here's the most recent documentation on what is available: http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open _parameters_v9.pdf

  • Can I Link To Another File In A PDF Package?

    In an effort to create an inexpensive linked technical manual, I put the manual and related systems manuals and drawings into a PDF Package. But I would like to be able to link between a page of the technical manual, and another manual or drawing within the package. Can I do that, and if so, how?

    I'm sorry I don't have an answer for you other than to say it's a grim future for Spry.   Adobe abandoned the framework late last year with no plans for future development with it.
    Nancy O.

  • Order of PDF Package Files

    I'm attempting to arrange the files in a PDF Package in a specific order yet no matter what I do in the DDX it they still get sorted alphabetically.
    This is a simple example of what I want to do;
    When the package is displayed Doc1 shows first then Doc2 rather than the order shown in the DDX.
    Does anyone have any idea how to create a non-alphabetic order of Package files.

    This works. I added a sorting field to the schema and hide it in the package.
                1
                Mutual Fund Fact 2.pdf
                3
                Mutual Fund Fact 1.pdf
                2
                prepareinstallsingle.pdf

  • Multiple files are bound together in this PDF Package. Adobe recommends using Adobe Reader or Adobe.

    Multiple files are bound together in this PDF Package.
    Adobe recommends using Adobe Reader or Adobe Acrobat version 8 or later to work with documents contained within a PDF Package. By updating to the latest version, you’ll enjoy the following benefits:
    • Efficient, integrated PDF viewing • Easy printing
    • Quick searches
    Don’t have the latest version of Adobe Reader?
    Click here to download the latest version of Adobe Reader
    If you already have Adobe Reader 8, click a file in this PDF Package to view it.
    Get this message when trying to open some docs. Link goes nowhere and nothing to click on.

    When you use Acrobat to convert emails it makes a special kind of PDF called a PDF package. This cannot be viewed on iOS and never will be able to be. I don't think Adobe really thought it through...

  • How to search in a pdf package via command line

    How can I search a specific PDF file within a PDF package via the command line? Previously I have used the following code in VB6 to search a single PDF file successfully.
    acroPath = String(128, " ")        'initialise this string
    resultStatus = FindExecutable(pdfPath, vbNullString, acroPath)
    acroPath = Replace(acroPath, vbNullChar, "")        'Get rid of the null character
    acroPath = """" & Trim$(acroPath) & """"
    cmdLineString = acroPath & " /n /A ""search=" & searchString & """ " & pdfPath
    Call Shell(cmdLineString, vbNormalFocus)
    I now receive this file as part of a PDF package, so how can I amend the command line to search the specific file within the package?
    I only have Reader, not the full blown Acrobat version.
    Vas.

    Sorry forgot to say that I am using Acrobat Reader 8.1 on Win XP SP2
    Vas.

  • Distorted text when trying to merge files into single pdf

    I am trying to merge several pdf documents into a single pdf. The pages are all distorted with missing words and random characters appearing here and there. I have combined these pages successfully using 'Assemble files into a PDF package' so I know the files are okay. Trying 'Merge files into a single pdf' is what creates the problem. I have tried this on Acrobat 8.0 and also 10. It is the same in both cases.
    Help please!

    Hello again. I took the long weekend off, so haven't replied for a while.
    While trying to set up a few documents out of the package I wanted to create, I discovered that there
    is only one file that is causing the problem.
    The biggest problem is that it is a confidential financial file, and I'm loathe to put it up on the web.
    I'm going to try to re-create the file without the confidential part, then send it to this forum. I can't
    figure out why it should cause problems when all the others don't and they have all been created by
    the same person with the same version of Office.
    So thanks for your help so far. I really appreciate the quick response from a couple of you.  I will get back to you.

  • Using Assembler to extract links from a file contained in a package

    Hi everyone,
    I need help creating a DDX file that would extract links from the second file in a package. Can you point me to some examples somewhere? The file has links to other files in the package. It doesn`t work when I remove it from the package, the links seem to be broken, so I can`t extract them. I've tried a lot of ways with PackageFiles nameKeys but I always get the Cover page links for some reason. We need to extract the links to view what they need to look like.  Ultimately, I need to replace URL links with links to files in a package.  In the solution, I will extract URL links, replace them with GOTOE actions in the .xfdf file and reinsert the links in that PDF that's being packaged.  It will point directly to files in the package as oppose to web locations.  I plan to apply an XSLT transformation as a step in the process.
    Thanks,
    Alain Roy

    You mentioned that The file has links to other files in the package. How did those links get there? Were those links originally between PDF files in a relative folder structure? Then you put those PDF files into the PDF package?
    Unfortunately, Acrobat 9 does not support hypertext linking between files in a PDF package.
    You mentioned your lack of success getting the links from the second file in the PDF package. In your PackageFiles result element, you can specify the name of the file you want, but you cannot specify the ordinal number of the file.  Here is a DDX that extracts a file from a package. The <NoPackage> changes the result from a PDF package to a single PDF.
    <DDX xmlns="http://ns.adobe.com/DDX/1.0/">
    <PDF result="myresult">
    <NoPackage/>
        <PackageFiles  nameKeys="Recap.pdf">
            <PDF source="doc1"/>
        </PackageFiles>
    </PDF>
    </DDX>

  • Automate Extraction of PDF attachment/PDF package

    Hi,
    Can any one help me in my problem? This is my poblem, I want to extract all PDF file in a PDF package or PDF with PDF attachment using VB.net or C# .net automatically? Or maybe I can use scripting method here to extract the PDF attachment.
    Thanks in advance.
    Regards,
    Buddy

    Hi, I have the same problem as Buddy (except I'm using VBA and am a newbie). I have several PDF packages that were created with 'Acrobat PDFMaker 8.1 for Lotus Notes'. I have been successful in extracting the PDF messages using JSO, but not the attachments (mostly non-PDFs). I'm having problems getting the cName of the attachment by either using 'doc.dataObjects' with JSO in VBA or 'this.dataObjects' using JS in the console.
    If I add an attachment (.txt file) to an extracted PDF message that already has attachments that were created by the Lotus PDFMaker, I do get the cName "Untitled Object" back for the newly attached file, but it will not give me the name(s) of the other attachment(s). I either get a runtime error in VBA or a 'null/has no properties' error at the JS console.
    What am I doing wrong? Grateful for any help.
    Thanks

  • How to add a file to an existing package programmatically in Acrobat 8?

    Hello
    Is it possible to add a file to an existing package programmatically in Acrobat 8? (embed a pdf file in a pdf package programmatically); If so, how should I do it?
    Thanks in advance,

    Finally, I found out how to add a file to an existing package programmatically by using JavaScript (function: app.execMenuItem("AddFileAttachment")). Thanks for your help Ironsenth. However, I need to specify the file to attach programmatically and I can't figure out how to do it.
    Could you let me know where I can find this information (what document to read)? Is there any parameters for the 'AddFileAttachment' method?
    Thanks in advance,

  • How to open a pdf package in browser when multiple files are bound together.

    Hi,
    I have to open a pdf package in browser that contains multiple pdf files any suggestions will help me a lot.
    Thanks.

    It shows me a page says "Multiple files are bound together in this PDF package"

  • Can't open pdf. files something about patch package

    Can't open PDF files something about patch package verification.error.

    I am having the same issue.  Unable to open ANYTHING related to adobe (PDF, downloads), as well as unable to delete and reinstall or even change or correct. 

  • Issue printing PDF Packages

    I'm having issues printing PDF Packages.Clients have contacted us stating that our PDF Packages don't print properly. Essentially they were only able to print the "coversheet" and nothing else. I ran some test scenarios and noted that PDF Packages print feature behaved differently depending on several criterias:
    how it was viewed (ie: desktop, Firefox browser, IE browser)
    what Adobe Reader Plugin
    what command was used to access print feature (ie: file>print, ctrl + P, print icon)
    So far I've noticed that Adobe Reader utilizes two versions of the Print Dialog Box. The first one shows four choices for "Print Range" (All, Current View, Current Page, Pages...) seems to always be misconfigured and does not print as intended. The second one I've noticed seems to limit your Print Range choices (All, Current View) which usually works.
    This seems to be an Adobe bug. This Print Bug exists on both Acrobat 8 and 9, and the bug may or may not exist depending on how you view the "PDF Package" (ie: Desktop, Firefox, IE).
    If you open the PDF Package on your desktop and view via Adobe Reader for the most part it prints as expected for "Print Current Documents" or "Print All Documents". Although the "Print Range" is misaligned (ie: "Print All" behaves as "Current View", "Current View" behaves as "Current Page".
    If you open the PDF Package on a browser with an Adobe Reader plugin, a different scenario occurs.
    You might experience that you're locked into printing only the "coversheet" of the PDF Package.
    And again your "Print Range" might be misaligned.
    In Adobe Reader 8, a dropdown appeared when you selected "File>Print" or the "Print Icon". The dropdown then gave you an option to "Print Current Documents" or "Print All Documents". Which basically provided you an option to print the entire "PDF Package" or choose to print only a section of the "PDF Package".
    In Adobe Reader 9, the option to choose between "Print Current Documents" or "Print All Documents" was removed.
    In fact I started to document the instances to see if its an isolated issue and it looks like it fails to print (as intended) 60% of the time. Of the 40% that does print as intended... it looks like half the time the "Print Range" is misconfigured.
    Also, I've noticed that Reader utilizes two different "Print Dialog" boxes.
    The testing scenario I set up was that you can print in three different ways:
        1. File>Print
        2. <ctrl + P>
        3. <print icon>
    Three ways to view the PDF package:
        1. Download PDF Package & view on your desktop via Adobe Reader
        2. View PDF Package on Firefox w/ Adobe Reader plugin
        3. View PDF Package on Internet Explored  w/ Adobe Reader plugin
    My computer is using:
    XP Pro SP3,  Acrobat Reader 9
    I've also spot tested on:
    XP Pro SP3, Acrobat Reader 8
    Vista, Acrobat Reader 8
    Any Ideas?

    Hi Greg,
    Since this is sytem defined settings that you are trying to implement, I presume that the INI changes ought to be done in FSISYS.INI rather than the FSIUSER.INI.
    Apart from that most of your INI changes look fine as we are also using pdf as our Output type. Please find the INI change swe have implemented in our system for printing pdf.
    Device = ..\Print\Prt.pdf
    Bookmark = Yes,Page
    Compression = 0
    DownLoadFonts = Yes,Enabled
    LanguageLevel = Level2
    Module = PDFW32
    PageNumbers = Yes
    PrintFunc = PDFPrint
    PrintType = PDF
    SendOverlays = No,Enabled
    SendColor = Yes,Enabled
    PrintViewOnly = No
    SplitText = No
    SplitPercent = 50
    TextCommentOn = FORMSET
    Papersize = 0
    FontCompression = 1
    Hope this is helpful.
    Thanks,
    Akhil

  • How do I make a batch file if the .class file uses a foreign package?

    I am trying to make an MS-DOS batch file using the bytecode file from the Java source file, called AddFields.java. This program uses the package BreezySwing; which is not standard with the JDK. I had to download it seperately. I will come back to this batch file later.
    But first, in order to prove the concept, I created a Java file called Soap.java in JCreator. It is a very simple GUI program that uses the javax.swing package; which does come with the JDK. The JDK is currently stored in the following directory: C:\Program Files\Java\jdk1.6.0_07. I have the PATH environment variable set to the 'bin' folder of the JDK. I believe that it is important that this variable stay this way because C:\Program Files\Java\jdk1.6.0_07\bin is where the file 'java.exe' and 'javac.exe' are stored. Here is my batch file so far for Soap:
    @echo off
    cd \acorn
    set path=C:\Program Files\Java\jdk1.6.0_07\bin
    set classpath=.
    java Soap
    pause
    Before I ran this file, I compiled Soap.java in my IDE and then ran it successfully. Then I moved the .class file to the directory C:\acorn. I put NOTHING ELSE in this folder. then I told the computer where to find the file 'java.exe' which I know is needed for execution of the .class file. I put the above text in Notepad and then saved it as Soap.bat onto my desktop. When I double click on it, the command prompt comes up in a little green box for a few seconds, and then the GUI opens and says "It Works!". Now that I know the concept of batch files, I tried creating another one that used the BreezySwing package.
    After I installed my JDK, I installed BreezySwing and TerminalIO which are two foreign packages that make building code much easier. I downloaded the .zip file from Lambert and Osborne called BreezySwingAndTerminalIO.zip. I extracted the files to the 'bin' folder of my JDK. Once I did this, and set the PATH environment variable to the 'bin' folder of my JDK, all BreezySwing and TerminalIO programs that I made worked. Now I wanted to make a batch file from the program AddFields.java. It is a GUI program that imports two packages, the traditional GUI javax.swing package and the foreign package BreezySwing. The user enters two numbers in two DoubleField objects and then selects one of four buttons; one for each arithmetic operation (add, subtract, multiply, or divide). Then the program displays the solution in a third DoubleField object. This program both compiles and runs successfully in JCreator. So, next I moved the .class file from the MyProjects folder that JCreator uses to C:\acorn. I put nothing else in this folder. The file Soap.class was still in there, but I did not think it would matter. Then I created the batch file:
    @echo off
    cd \acorn
    set path=C:\Program Files\Java\jdk1.6.0_07\bin
    set classpath=.
    java AddFields
    pause
    As you can see, it is exactly the same as the one for Soap. I made this file in Notepad and called it AddFields.bat. Upon double clicking on the file, I got this error message from command prompt:
    Exception in thread "main" java.lang.NoClassDefFoundError: BreezySwing/GBFrame
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    4)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    Caused by: java.lang.ClassNotFoundException: BreezySwing.GBFrame
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    ... 12 more
    Press any key to continue . . .
    I know that most of this makes no sense; but that it only means that it cannot find the class BreezySwing or GBFrame (which AddFields extends). Notice, however that it does not give an error for javax.swing. If I change the "set path..." command to anything other than the 'bin' folder of my JDK, I get this error:
    'java' is not recognized as an internal or external command,
    operable program or batch file.
    Press any key to continue . . .
    I know this means that the computer cannot find the file 'java.exe' which I believe holds all of the java.x.y.z style packages (native packages); but not BreezySwing or any other foreign packages. Remember, I do not get this error for any of the native Java packages. I decided to compare the java.x.y.z packages with BreezySwing:
    I see that all of the native packages are not actually visible in the JDK's bin folder. I think that they are all stored in one of the .exe files in there because there are no .class files in the JDK's bin folder.
    However, BreezySwing is different, there is no such file called "BreezySwing.exe"; there are just about 20 .class files all with names like "GBFrame.class", and "GBActionListener.class". As a last effort, I moved all of these .class files directly into the bin folder (they were originally in a seperate folder called BreezySwingAndTerminalIO). This did nothing; even with all of the files in the same folder as java.exe.
    So my question is: What do I need to do to get the BreezySwing package recognized on my computer? Is there possibly a download for a file called "BreezySwing.exe" somewhere that would be similar to "java.exe" and contain all of the BreezySwing packages?

    There is a lot of detail in your posts. I won't properly quote everything you put (too laborious). Instead I'll just put your words inside quotes (").
    "..there are some things about the interface that I do not like."
    Like +what?+ This is not a help desk, and I would appreciate you participating in this discussion by providing details of what it is about the 'interface' of webstart that you 'do not like'. They are probably misunderstandings on your part.
    "Some of the .jar files I made were so dangerously corrupt, that I had to restart my computer before I could delete them."
    Corrupt?! I have never once had the Java tools produce a corrupt Jar. OTOH, the 'cannot delete' problem might relate to the JRE gaining a file lock on the archive at run-time. If the file lock persisted after ending the app., it suggests that the JRE was not properly shut down. This is a bug in the code and should be fixed. Deploying as .class files will only 'hide' the problem (from casual inspection - though the Task Manager should show the orphaned 'java' process).
    "I then turned to batch files for their simple structure and portability (I managed to successfully transport a java.util containing batch file from my computer to another). This was what I did:
    - I created a folder called Task
    - Then I copied three things into this folder: 1. The file "java.exe" from my JDK. 2. The program's .class file (Count.class). and 3. The original batch file.
    - Then I moved the folder from a removable disk to the second computer's C drive (C:\Task).
    - Last, I changed the code in the batch file...:"
    That is the +funniest+ thing I've heard on the forums in the last 72 hours. You say that is easy?! Some points.
    - editing batch files is not scalable to 100+ machines, let alone 10000+.
    - The fact that Java worked on the target machine was because it was +already installed.+ Dragging the 'java.exe' onto a Windows PC which has no Java will not magically make it 'Java enabled'.
    And speaking of Java on the client machine. Webstart has in-built mechanisms to ensure that the end user has the minimum required Java version to run the app. - we can also use the [deployJava.js|http://java.sun.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html#deplToolkit] on the original web page, to check for minimum Java before it puts the link to download/install the app. - if the user does not have the required Java, the script should guide them through installing it.
    Those nice features in deployJava.js are available to applets and apps. launched using webstart, but they are not available for (plain) Jar's or loose class files. So if 'ensuring the user has Java' is one of the requirements for your launch, you are barking up the wrong tree by deploying loose class files.
    Note also that if you abandon webstart, but have your app. set up to work from a Jar, the installation process would be similar to above (though it would not need a .bat file, or editing it). This basic strategy is one way that I provide [Appleteer (as a downloadable ZIP archive)|http://pscode.org/appleteer/#download]. Though I side-step your part 1 by putting the stuff into a Jar with the path Appleteer/ - when the user expands the ZIP, the parts of the app. are already in the Appleteer directory.
    Appleteer is also provided as a webstart launched application (and as an applet). Either of those are 'easier' to use than the downloadable ZIP, but I thought I would provide it in case the end user wants to save it to disk and transport the app. to a machine with no internet connection, but with Java (why they would be testing applets on a PC with no internet connection, I am not sure - but the option is there).
    "I know that .jar and .exe files are out because I always get errors and I do not like their interfaces. "
    What on earth are you talking about? Once the app. is on-screen, the end user would not be able to distinguish between
    1) A Jar launched using a manifest.
    2) A Jar launched using webstart.
    3) Loose class files.
    Your fixation on .bat files sounds much like the adage that 'If the only tool you have is a hammer, every job starts to look like a nail'.
    Get over them, will you? +Using .bat files is not a practical way to provide a Java app. to the end user+ (and launching an app. from a .bat looks quite crappy and 'second hand' to +this+ user).
    Edit 1:
    The instructions for running Appleteer as a Jar are further up the page, in the [Running Appleteer: Application|http://pscode.org/appleteer/#application] section.
    Edited by: AndrewThompson64 on May 19, 2009 12:06 PM

Maybe you are looking for

  • Can I share iTunes purchases on same computer, different apple ID?

    If I purchase an album from iTunes, can I share it with my daughter, who lives at home and uses the same computer, but has a different apple ID and separate user account in Windows 7?  Our computer would presumably be authorized already by each of us

  • Is it possible for double view in iCal?

    It would be great if I could have my week view, and month view side by side. Or one on top of the other. I'm not talking about the month calender in the corner, I mean the full on moth view. Is this possible? Thanks

  • Exchange 2013 SP1 Object is corrupted and inconsistent state after Lync 2013 Installation

    Hi Fellows, I am facing an issue with Exchange 2013 SP1 (5.0.847.32) environment. I recently installed Lync 2013 (version: 5.0.8308.0) a week ago and just recently start getting the below error when configuring delegation or modifying the users/group

  • User Settings keep resetting

    I have an I-Mac. I keep using the get Info to set my preferance for opening photos and other items. I find that the computer keeps resetting them to the default settings. For example I want my .jpeg files to open with Adobe Photoshop but they keep re

  • Best screen capture program

    I just purchased Adobe CS4 Master Collection and I am wondering if it includes any programs that could capture still screen shots. I could always use Windows 7's snipping tool but does CS4 have anything better?