Splitting PDFs while preserving bookmarks

I have a long PDF that i put mutliple levels of bookmarks into but now it is too large for me to upload. If I split it by the top level bookmarks I lose all the other bookmarks in the new file. Is there a way to do this without having to rebookmark the new files?

You can do it by deleting the pages you don't want in each file, which will preserve the bookmarks structure.
This process could also be automated using a script.

Similar Messages

  • Split PDF Files by Bookmarks

    Can anyone please let me know how do I split PDF Files by bookmark using Java Script.
    I am making a Visual Basic utility to read the bookmarks in PDF Files and split them based on the bookmarks. I am able to split the PDF Files by using Arts PDF Split Pro. However since I am already using Adobe Standard, I would like to do it with Adobe itself.
    Thus, I pay license for only one software and not two.
    Thanks
    Rahul

    I couldn't find much information online about this myself, but hammered away until it worked. You should easily be able to adjust it for your needs.
    My sources:
    Adobe IAC Developer Guide
    Adobe IAC API Reference
    Adobe JS API Reference
    Adobe Acrobat and VBA – An Introduction | Karl Heinz Kremer's Ramblings
    UtterAccess Discussion Forums > Splitting Pdf Files
    Private Sub extractBookmark()
    Dim AcroApp As AcroApp, AVDoc As AcroAVDoc, PDDoc As AcroPDDoc, PDBookmark As AcroPDBookmark, AVPageView As AcroAVPageView
    Dim newPDF As AcroPDDoc, mergePDF As AcroPDDoc
    Dim jso As Object, BookMarkRoot As Object
    Dim masterPath As String, testName As String, i As Variant, bookmark As Variant
    Dim startN As Integer, endN As Integer, nPages As Integer, totalP As Integer
    Set AcroApp = CreateObject("AcroExch.App")
    Set AVDoc = CreateObject("AcroExch.AVDoc")
    Set PDDoc = CreateObject("AcroExch.PDDoc")
    Set PDBookmark = CreateObject("AcroExch.PDBookmark")
    masterPath = ActiveWorkbook.Path & "\MasterDocument.pdf"     'Path of the PDF containing the bookmarks to be extracted
    AVDoc.Open masterPath, vbNull
    Set AVPageView = AVDoc.GetAVPageView
    Set PDDoc = AVDoc.GetPDDoc
    Set jso = PDDoc.GetJSObject
    Set BookMarkRoot = jso.BookMarkRoot
    bookmark = jso.BookMarkRoot.Children
    totalP = PDDoc.GetNumPages
    'Loop through the 10 bookmarks in MasterDocument.pdf and get the starting page # of each. This # has to be changed to the # of bookmarks in your pdf. Or write something to count the bookmarks and use that variable. "productName" is a global variable for my specific project... You'll need to revise this for your purpose.
    For i = 0 To 9
        If bookmark(i).Name = productName Then
            PDBookmark.GetByTitle PDDoc, bookmark(i).Name
            PDBookmark.Perform AVDoc
            AcroApp.Exit
            startN = AVPageView.GetPageNum
            If i < 9 Then
                PDBookmark.GetByTitle PDDoc, bookmark(i + 1).Name
                PDBookmark.Perform AVDoc
                AcroApp.Exit
                endN = AVPageView.GetPageNum
                nPages = endN - startN
            Else
                nPages = totalP - startN
            End If
        End If
    Next
    PDDoc.Close
    'This part will also need to be modified. I am inserting the bookmarks into an already made PDF (global variable for me "fName"). You'll want to create a new pdf.
    Set newPDF = CreateObject("AcroExch.PDDoc")
    Set mergePDF = CreateObject("AcroExch.PDDoc")
    newPDF.Open fName & ".pdf"     'This line needs changing for your purpose. Probably could be.... newPDF.Create
    mergePDF.Open masterPath
    newPDF.InsertPages 0, mergePDF, startN, nPages, 0
    newPDF.Save PDSaveFull, fName & ".pdf"
    newPDF.Close
    mergePDF.Close
    End Sub

  • Script to Split PDF files on Bookmarks

    I'm totally new to Java scripting.  What I'm looking for is a script I can run from batch processing with professional that will look at a collection files in s directory and split ech one of them on their bookmarks into smaller files.
    The bookmarks are all based on the page so it is possible to use the bookmark object's "execute" method to execute the bookmark action and pickup the page number.
    I read that last part somewhere. If someone can give me a reference to a thread or just some code to get me started that would help. Thanks,
    Josh

    5 years later... hopefully this helps someone out there.
    I couldn't find much information online about this myself, but hammered away until it worked. My code is for a slightly different purpose, but you should easily be able to adjust it for your needs.
    My sources:
    Adobe IAC Developer Guide
    Adobe IAC API Reference
    Adobe JS API Reference
    Adobe Acrobat and VBA – An Introduction | Karl Heinz Kremer's Ramblings
    UtterAccess Discussion Forums > Splitting Pdf Files
    Private Sub extractBookmark()
    Dim AcroApp As AcroApp, AVDoc As AcroAVDoc, PDDoc As AcroPDDoc, PDBookmark As AcroPDBookmark, AVPageView As AcroAVPageView
    Dim newPDF As AcroPDDoc, mergePDF As AcroPDDoc
    Dim jso As Object, BookMarkRoot As Object
    Dim masterPath As String, testName As String, i As Variant, bookmark As Variant
    Dim startN As Integer, endN As Integer, nPages As Integer, totalP As Integer
    Set AcroApp = CreateObject("AcroExch.App")
    Set AVDoc = CreateObject("AcroExch.AVDoc")
    Set PDDoc = CreateObject("AcroExch.PDDoc")
    Set PDBookmark = CreateObject("AcroExch.PDBookmark")
    masterPath = ActiveWorkbook.Path & "\MasterDocument.pdf"     'Path of the PDF containing the bookmarks to be extracted
    AVDoc.Open masterPath, vbNull
    Set AVPageView = AVDoc.GetAVPageView
    Set PDDoc = AVDoc.GetPDDoc
    Set jso = PDDoc.GetJSObject
    Set BookMarkRoot = jso.BookMarkRoot
    bookmark = jso.BookMarkRoot.Children
    totalP = PDDoc.GetNumPages
    'Loop through the 10 bookmarks in MasterDocument.pdf and get the starting page # of each. This # has to be changed to the # of bookmarks in your pdf. Or write something to count the bookmarks and use that variable. "productName" is a global variable for my specific project... You'll need to revise this for your purpose.
    For i = 0 To 9
        If bookmark(i).Name = productName Then
            PDBookmark.GetByTitle PDDoc, bookmark(i).Name
            PDBookmark.Perform AVDoc
            AcroApp.Exit
            startN = AVPageView.GetPageNum
            If i < 9 Then
                PDBookmark.GetByTitle PDDoc, bookmark(i + 1).Name
                PDBookmark.Perform AVDoc
                AcroApp.Exit
                endN = AVPageView.GetPageNum
                nPages = endN - startN
            Else
                nPages = totalP - startN
            End If
        End If
    Next
    PDDoc.Close
    'This part will also need to be modified. I am inserting the bookmarks into an already made PDF (global variable for me "fName"). You'll want to create a new pdf.
    Set newPDF = CreateObject("AcroExch.PDDoc")
    Set mergePDF = CreateObject("AcroExch.PDDoc")
    newPDF.Open fName & ".pdf"     'This line needs changing for your purpose. Probably could be.... newPDF.Create
    mergePDF.Open masterPath
    newPDF.InsertPages 0, mergePDF, startN, nPages, 0
    newPDF.Save PDSaveFull, fName & ".pdf"
    newPDF.Close
    mergePDF.Close
    End Sub

  • Excel to PDF while preserving calculation/date functions

    I am developing electronic chemotherapy ordersets for my pediatirc hospital.  I am interested in converting them to PDFs that preserve the calculations and data validation functions (drop-downs).  I believe LiveCycle will allow me to to do this, but any advice that you havwe would be greatly appreciated.

    Sorry, LiveCycle doesn't have capability to preserve functions while converting ms excel file to pdf. LiveCycle yields out a pdf with the data which is there in excel at the time of conversion.
    Though, you might be aware, using livecycle you can create automated processes which will help you in fasten up your business process.
    Thanks,
    Sachin

  • Split PDF following preserving existing bookmarks

    Hello,
    Is it possible to split a PDF using Acrobat XI by top level bookmarks, while retaining existing bookmarks in the resulting files?
    With the default split it creates the new PDF's, but looses the bookmarks.
    Thanks for any suggestions.
    PS: I am on a Mac platform

    If it happens always at a specific location check if there's something out
    of the ordinary with that bookmark. For example, does it contain any weird
    characters in its name? Is it identical to another bookmark (or even to the
    name of the document itself)?
    I would think the application could handle those situations, but maybe it
    can't...

  • How do I convert thousands of TIFF files to PDF while preserving their individual filenames?

    I currently have a library of thousands (if not hundreds of thousands) of TIF documents.  We're going to switch document management programs so I figure this is an opportunity to cut the files over to a more user friendly format like PDF (everybody hates TIF). 
    I need the filenames to remain the same since this library of files is indexed by filename. 
    Is there any way to do this automatically?  Manually cutting over each file is not plausible.
    Thanks!
    Edit:  This may also be an opportunity to significantly reduce the size of my library, especially if I could make the resulting files "Reduced Size PDF's" compatible only with Adobe X and up.  If converting everything to a reduced file size is possible then that's definitely the way I'd like to go.

    If you adjust the printer properties to not open the PDF that is created after it creates it and adjust some of the properties of the Adobe PDF printer, you might be able to set up a batch file to print to the Adobe PDF printer. Been a while since I have done batch files and am not sure what would be required. You might have to define the default printer in the command line to be the Adobe PDF printer and see if that will work with the basic print. The key may be to have a delay to be sure the print process is completed before continuing.
    OK, I am just throwing out a possibility. I have no idea if it would work. However, it is a possibility if the batch process from Acrobat will not do the job.

  • Converting from Pages to PDF preserving bookmarks

    Hallo everybody,
    I'm new in this forum site.
    I've a big and complex Pages files and I want to create a PDF version with bookmarks architecture embedded in.
    If I print or export the .pages file I obtain a .pdf file with the items in the summary converted in hyperlinks, but not the pdf bookmarks structure.
    There's a way to create it automatically (put bookmars manually pre/post convrsion is not possibile)?
    In case I have Acrobat Professional 8 also)?
    If someone can help me, I'll be glad, thank you.
    /Gio

    Hi Gio,
    Yes, you can use Adobe Acrobat Professional to add a Table of Contents to the PDF.
    Or, you can use PDFOutliner, a $5 app on the Mac App Store, which makes it much easier to *automatically* build & edit the table of contents in your PDF.
    Disclaimer: I am the developer of PDFOutliner.

  • Split/Extract pages by bookmarks

    I have created a script which will successfully split the pdf at the first bookmark.
    I need for the script to split all bookmarks from the pdf. 
    I have modifed the script but the console reports the following error:
    TypeError: bookmarkRoot.children[i] is undefined
    Can someone please provide assistance to modify the script to split all bookmarks from the pdf?
    Script to split the pdf at the first bookmark - this works!
    if (this.bookmarkRoot.children!=null)
    var bm = bookmarkRoot.children[0].execute();
    var bmname = bookmarkRoot.children[0].name;
    this.extractPages({nStart:bm, cPath: "/C/Temp/"+bmname+".pdf"});
    Script to split all bookmarks in the pdf - this does not work!
    if (this.bookmarkRoot.children!=null)
    for (var i=0; i < this.bookmarkRoot.children.length; i++)
    var bm = bookmarkRoot.children[i].execute();
    var bmname = bookmarkRoot.children[i].name;
    this.extractPages({nStart:bm, cPath: "/C/Temp/"+bmname+".pdf"});
    Thank you!

    Thank you for your advice.
    I have placed the curly brackets after the "for command" and the script will rename the split files as the bookmark names.
    There is a problem with the var bm = this.bookmarkRoot.children[i].execute(); part of the script.
    The script splits all the bookmarks at page 1 and not the correct page associated with the bookmark names.
    My thoughts are that the bookmark execute command may need to be recursive to work??
    The script has been modified for recursive and the console reports back as undefined and does not split the pdf at the bookmarks.
    Can you please advise if I am going in the right direction in getting the file to split correctly:
    function splitBookmarks (bm,  nLevel)
    if (bm.children!=null)
    for (var i=0; i < bm.children.length; i++)
    var bmd = splitBookmarks(bm.children[i], nLevel + 1);
    var bme = bmd.execute();
    var bmname =bm.children[i].name;
    this.extractPages({nStart:bme, cPath: "/C/Temp/"+ bmname +".pdf"});
    Thanks!

  • How to split PDF file by pages

    Is there any programming way to split PDF into pages, say one PDF file per page or specify page range to split PDF file?
    Thanks for your help.

    Yes it does. It disassembles pdf1 by extracting pages 1-3 and disassembles pdf2 by extracting pages 4-5. Then re-assembles the two subsets into a new PDF.
    You could extract page1 from pdf1 only and create a pdf, then page2 of pdf1 into a different PDF using something similar to:
    <?xml version="1.0" encoding="UTF-8"?>
    <DDX xmlns="http://ns.adobe.com/DDX/1.0/">
    <PDF result="Final.pdf">
         <PDF source="PDF1.pdf" pages="1"/>
    </PDF>
    <PDF result="Final2.pdf">
          <PDF source="PDF1.pdf" pages="2"/>
    </PDF>
    </DDX>
    You can also use the  PDFFromBookmarks tag to generate a new document for each level 1 bookmark created in a PDF.
    <PDFsFromBookmarks prefix="stmt">
         <PDF source="doc1.pdf"/>
    </PDFsFromBookmarks>
    You can get more info at http://livedocs.adobe.com/livecycle/8.2/ddxRef/000640.html
    Jasmin

  • Advice for using  Acrobat/PDF  to preserve 110-year-old book

    I am a volunteer on a project for our historical society. The only known copy of a rare book from the early 1890's was found containing valuable historical and genealogical data (10,000 names which we indexed) plus woodcut portrait images. It will be an extremely important and popular resource if we can get it into a universal format such as PDF. I really need EXPERT advice.
    The book itself is deteriorating, and literally crumbling. Each page was scanned (and can't be re-scanned due to its fragility) and the resulting tiff images were repaired to replace the missing pieces using the Paint program, a painstaking process taking hours per page. (About 200 kb each)
    We have been trying to combine the 256 full-page tiff images by pasting them into MSWord documents containing 20 of the page images each, and then making PDFs of each 20-page document.
    The tools we have available are: Acrobat 4.0 on my home computer and Acrobat Standard 6.0 on my work computer, Word 2003 and Word 2000, Paint, Microsoft Picture Editor and Microsoft Picture Manager.
    I want to be sure the many hundreds of hours of work that has gone into this so far will not be lost for the future. What can I do to ensure a file that can be read on-screen, can be printed for people asking for copies, and will be readable into the future? I see that 8.0 is now the standard. Am I risking that no one will be able to open these in the future using 4.0 or 6.0?
    The PDF documents made with the 4.0 Acrobat have the nicest, clearest print images while the 6.0 appear smeary in print but OK on screen. We have tried all types of different settings for Acrobat 6.0 yet the results have all been the same - nothing we do seems to change the appearance but the file size increases.
    Can someone who really knows the workings of these programs please give me some advice on what settings to use to optimize the results and preserve our work for the future? If you or someone you know can talk an amateur thru this, it would be a great service. Thanks in advance!

    > We have been trying to combine the 256 full-page tiff images by pasting
    > them into MSWord documents containing 20 of the page images each, and then
    > making PDFs of each 20-page document.
    Word might be introducing it's own compression into the workflow (blurring
    the image, data loss), and it does not store this type of data efficiently.
    Instead of using Word, I would recommend using Irfanview (freeware) to
    combine the 256 TIFF files into a single multi-page TIFF file
    (View/Multi-page images/Create Multi-page TIFF...). Use the LZW compression
    option (no data loss) in Irfanview when combining to keep the file size down
    (that's if there are any color or grayscale images, otherwise use CCITT Fax
    4 if they are all monochrome).
    You can then open and print the multi-page TIFF from Irfanview to Acrobat to
    get a complete PDF file. You can experiment with different compression
    settings when printing the TIFF to PDF. You can disable image compression
    and downsampling when creating the PDF to preserve image quality, but you
    will end up with a pretty large file (will people be downloading it from a
    web site?). If the images are grayscale or color then try JPEG medium
    compression with 200 dpi downsampling as a starting point and see how that
    looks. To save time when testing compression settings, just print one
    typical page from the project. Then you will know what settings to use when
    printing the entire 256 page file to PDF.
    Also the multi-page TIFF, like a single page one, would be a pretty good
    option as an archive format (and all the pages will be in order in a single
    file).

  • Open and edit animated .gif while preserving frame timing

    CS4 Premium Design Edition, Win XP
    I was disappointed with the removal of Image Ready from CS3 because although some of the functionality was placed into Photoshop 10, there was no way to open and edit an existing animated .gif while preserving the timing of each individual frame. I was told on the PS forum at the time that I really needed to use Fireworks. I resented that, because I was very happy with Image Ready and I didn't want to have to learn a new application just to gain functionality that had been included in previous versions of PS/IM.
    I've now got CS4 Premium Design Edition which of course includs Fireworks... and here's what Help has to say on the subject of imported .gifs.
    "Note: When you import an animated GIF, the state delay setting defaults to 0.07 seconds. If necessary, use the States panel to restore the original timing."
    This is no use to me. What if I don't know the individual frame timings? What if there are 200 frames with varying timings?
    Simple question: which current Adobe product is capable of importing a .gif while retaining the frame timings? If anyone knows, or if I've misunderstood the nature of the Fireworks Help quote above, I'd really appreciate some input here. Thanks :)
    Not so simple question: why was an excellent gif-editing application thrown out to have its functionality partially replaced by a bunch of scripts and half-effective workarounds cooked up by desperate users ("import a gif by using the video import and typing *.* into the filename box..")? It's a fair question I think.
    Mark

    Hi Bob, that's not glib at all, it's a reasonable question.
    I uninstalled it along with everything else when I installed CS3, in the reasonable expectation that whatever replaced IR would be at least equal in functionality.
    Perhaps I should just dig out CS2 and install IM from there, but I have some serious reservations about doing so, because I don't know if/how a partial install of CS2 will impact upon my installation of CS4, and I'm not confident of getting support.
    I am also curious to know if/why Adobe actually removed basic functionality without replicating or replacing it in their other software. I really want to know: which recent, currently supported Adobe product
    should I be using in order to regain this functionality? Or do Adobe no longer produce a geniuinely comprehensive .gif-editing application?
    Mark

  • How can I process a linearly converted raw file while preserving color?

    Hi,
    I want to convert my raw files in a linear format (to preserve all the dynamic range and detail and prevent unnecessary clipping). My question is "how can I modify the brightness or luminance while preserving the hue and saturation of every color?"
    As for applying the gamma curve, I guess the best and only way in Photoshop is to create a Levels adjustment and place a 2.2 in the middle (gray) input box. However, I read in http://www.luminous-landscape.com/tutorials/hybrid-conversion.shtml that a 4.75 value should be used... Why? Is the number placed there not correspond to the gamma being applied?
    Thanks in advance.
    Juan Dent
    P.S.: getting colorimetrically accurate color from the camera, through all the manipulations in Photoshop is for me crucial. Any pointers as to what to do and what to avoid?

    First of all, you should have used the Adobe DNG Converter 8.6, not an old, obsolete version.  Always use the very latest version.  8.3 was simply the first ACR version to support your camera model, that's all.
    Note that the DNG Converter works only on folders, not on individual raw files.  Put all your Sony raw files in a folder and run the Converter on that folder containing the raw files.
    I have absolutely no clue as to what on Earth you mean by : "upon reading the memory chip from Photoshop CS5".
    You also need to make sure that CS5 is fully updated.  You cannot rely on the highly and notoriously unreliable Adobe auto updater to tell whether you have the latest update installed or not.
    I still have no idea what platform you are on, Mac or Windows. Please read the following for next time:
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them, etc.,
    someone may be able to help you (not necessarily this poster).
    A screen shot could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Parse and output XML document while preserving attribute order

    QUESTION: How can I take in an element with attributes from an XML and output the same element and attributes while preserving the order of those attributes?
    The following code will parse and XML document and generate (practically) unchanged output. However, all attributes are ordered a-z
    Example: The following element
    <work_item_type work_item_db_site="0000000000000000" work_item_db_id="0" work_item_type_code="3" user_tag_ident="Step" name="Work Step" gmt_last_updated="2008-12-31T18:00:00.000000000" last_upd_db_site="0000000000000000" last_upd_db_id="0" rstat_type_code="1">
    </work_item_type>is output as:
    <work_item_type gmt_last_updated="2008-12-31T18:00:00.000000000" last_upd_db_id="0" last_upd_db_site="0000000000000000" name="Work Step" rstat_type_code="1" user_tag_ident="Step" work_item_db_id="0" work_item_db_site="0000000000000000" work_item_type_code="3">
    </work_item_type>As you may notice, there is no difference in these besides order of the attributes!
    I am convened that the problem is not in the stylesheet.xslt but if you are not then it is posted bellow.
    Please, someone help me out with this! I have a feeling the solution is simple
    The following take the XML from source.xml and outputs it to DEST_filename with attributes in a-z order
    Code:
    private void OutputFile(String DEST_filename, String style_filename){
         //StreamSource stylesheet = new StreamSource(style_filename);
         try{
              File dest_file = new File(DEST_filename);
              if(!dest_file.exists())
                  dest_file.createNewFile();
              TransformerFactory tranFactory = TransformerFactory.newInstance();
              Transformer aTransformer = tranFactory.newTransformer();
              aTransformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
              Source src = new DOMSource("source.xml");
              Result dest = new StreamResult(dest_file);
              aTransformer.transform(src, dest);
              System.out.println("Finished");
         catch(Exception e){
              System.err.print(e);
              System.exit(-1);
        }

    You can't. The reason is, the XML Recommendation explicitly says the order of attributes is not significant. Therefore conforming XML serializers won't treat it as if it were significant.
    If you have an environment where you think that the order of attributes is significant, your first step should be to reconsider. Possibly it isn't really significant and you are over-reaching in some way. Or possibly someone writing requirements is ignorant of this fact and the requirement can be discarded.
    Or possibly your output is being given to somebody else who has a defective parser which expects the attributes to be in a particular order. You could quote the XML Recommendation to those people but often XML bozos are resistant to change. If you're stuck writing for that parser then you'll have to apply some non-XML processing to your output to fix it up on their behalf.

  • How to print an excel file (2010 version) with multiple tabs into a pdf file with bookmarks (acrobat 9). I was able to do this easily using excel (2007 version).

    Recently I got a new laptop, with excel 2010 version and acrobat 9 standard.
    I could no longer print (save as) an excel file with multiple tabs into a pdf file with bookmarks.
    My old computer has excel 2007 version and acrobat 9 standard.
    Print an excel file into pdf with bookmarks was a piece of cake.
    Both machine has the same add-in -- Acrobat PDFMaker Office COM addin
    Thanks if anyone could help me with this.
        Tom

    You need to upgrade Acrobat to a newer version.
    On Thu, Oct 30, 2014 at 4:12 PM, excel-pdf-bookmarks <

  • Split Tracks While Recording w/MediaSource Play

    I'm converting some cassettes using MediaSource Player. Can I split tracks while recording, i.e. record the whole cassette and then split that into individual tracks? I've done that with Microsoft Plus!, but can't seem to find that functionality with MediaSource. Also--if I want the absolute best quality recording of the cassettes, am I right in thinking I'd select WAV stereo, w/96.00 kHZ and 24 bits? The cassettes are li've recordings that I'd like to?have professionally mixed in a studio and then released as CD's, so I need the optimal "starting point" as far as the digital files are concerned. Thanks for any advice.

    Yes, recording at 24/96 wave is the best that you can go with.
    If you have one of the Creative sound cards, check whether you have the Creative Smart Recorder application. It has a split track function.

Maybe you are looking for