How nested bookmarks via VBA Excel

Hi, I'm looking to accomplish a task using Microsoft Excel 2007, VBA and typotheque Adobe Acrobat 10.0. I am able to create bookmarks programmatically in a specified PDF but I would like to also nest these bookmarks programmatically. I think I can handle the designation of these groups (i.e. bookmarks fall into each of the headings of the nest) using VBA code, but I can't determine if there is no Adobe API to handle nesting. I looked through ' Communication monitor QAnywhere .

" Kit SDK adobe® Acrobat®" - November 2006 - Version 8.0 but found nothing on this subject. I have Adobe Acrobat 9 installed on my machine.

Any help is welcome.

Gary

Hello

It is sometimes more I looked there are in this area. But if you use / google for "Bookmarks VBA Reinhard", you will find discussions for what you want to do.

You can set bookmarks using Acrobat and VBA via:

-using the PDFmark. Means: You write a file with bookmarks and Virgin, PS the placeholder pages, change via printer 'Adobe PDF' (distilling) in PDF format and replace the placeholder with your pages pages.

-with the help of Acrobat JS via JS-object. If you create bookmarks via JS you must define an action (like: this.pageNum).

Blows to the top of your size, which is very hard (if you delete a page, you must reset any bookmarks after). So for me it's not a real option.

-If you set the bookmark via "Menuiteminsert" or "Sendkey ^ b ', as the method used, you can set 'natural' first level bookmarks and rearange them later in nested using bookmarks JS/JSO.

To do this, I saved an example of "Jens Kammerath". If you contact me I can send it to you.

Because all these methods are not real smart and Adobe seems not to be interested by this domain (no change since Version 4) personal I prefer freeware commandline tools like PDFTk, bookmarks. However, attached an example file PDFmark PS you can save and run (doubleclick).

best regards, Reinhard

BookmarkTest.ps

------------------------------------------------------------------------------------------ ----------

%! PS-Adobe - 3.0
% BeginProlog
/pdfmark where {pop} ifelse {userdict /pdfmark /cleartomark load put}
%% EndProlog

% CROP PAGES
[/ Pdfmark/pages CropBox [54 403 558 720]]

Space reserved-Pages and bookmarks
showPage [/ pdfmark/out/Page 1 2 title (mother) count]
showPage [/ pdfmark/out/Page 2 count 1 title (child)]
showPage [/ Page 3 count 0/title (child) / out pdfmark]
showPage [/ pdfmark/out/Page 4 count 1 title (child)]
showPage [/ Page 5 count 0/title (child) / out pdfmark]
showPage [/ Page 6 count 0/title (mother) / out pdfmark]

Tags: Acrobat

Similar Questions

  • I'm trying to control adobe via VBA in Excel

    I'm trying to control adobe via VBA in Excel, well I can control some things, like opening the window 'about' and so on. However, what I want to do is click on the button "Prepare form" by using VBA, and I tried a lot of different ways to do this. HOW to trigger the button to "prepare the form?

    Grateful for answers!

    You can automate Adobe Acrobat in various ways, but none of them involve button clicks, and several button clicks are not things that can be automated. Programmers wishing to work with Acrobat need the Acrobat SDK kit.

    I notice that you just say "Adobe". Maybe you mean the free Adobe Reader/Acrobat Reader software. If so you're out of luck, some interfaces in the SDK Acrobat Reader will not be cut.

  • REST API via Excel VBA, Excel reports? All Plans

    Hi, Fred / TJ (Eloqua).

    Is there a method or system library (.dll) file that we can use to pull the Eloqua reports directly in Excel. I met many cloud based system allowing this as part of a widely used feature.

    Any method that we can use to pull reports directly in Eloqua (VBA, Excel plug-ins, etc.). Would be very useful if we have many users marketing to draw relations stats in real-time to Eloqua, rather than each is trying to open a session in Eloqua every time.

    Thank you

    Amit Pandya

    Thanks for the comments, Amit.

    I guess that's an instance of the E10?

    We must do a better job of making reports available via the API data. Let's look at this when we look at this larger project.

  • How can I import an excel file into an already existing form on the PDF (via AdobePro)?

    How can I import an excel file into an already existing form on the PDF (via AdobePro)? No data just directly, drop-down lists.

    Hi spencert3881156,

    Please post on the Adobe forums.

    You can visit the following link on the same thread:

    Can I import data from an Excel worksheet to a PDF form? (Create PDF)

    Let me know if this helps.

    Kind regards

    Ana Maria

  • How to judge if a PDF doc is with XFA by VBA Excel?

    Here is my code in VBA Excel, but there is an error: "run-time error '438': object doesn't support this property of method:

    Void IsXFA()

    Dim app, avdoc Object jso Object did Object, pageview As Object

    Set app = CreateObject ("AcroExch.App")

    Set avdoc = app. GetActiveDoc

    Define the jso = avdoc. GetJSObject

    If avdoc.dynamicXFAForm = True Then

    JSO. Console.println ("this is a dynamic XML form.")

    End If

    End Sub

    The GetJSObject method is available for a PDDoc, you get the corresponding to your AVDoc PDDoc and then get the JSObject.

  • Merger of field via download Excel?

    I decided to create a new channel for that matter, although I had found an article where I initially made an assignment (I can now edit or delete my original announcement - menu "actions" does not open for me, PC and Mac, Chrome and FF):

    With the help of merge field to dynamically display a picture

    The above post describes pretty much exactly what I want to do, but I'm missing something-

    Here's what I would do: I have some customer information I want to merge to an email; the information is not something I necessarily want to hold with my contacts.

    We use Excel to download the lists, because these contacts are not currently in our database. I created a new fusion of field and inserted the fusion in my email. The creation of the merger of field requires linking the merger with Contacts, accounts, events/event Sessions or CDO. My initial assumption was that I would need to create a CDO, I did. So I created from the merger of field, connected to my CDO and inserted the field in the email.

    When I then test the email, I download my segment of the tests. I can't match the data fields to match the fields, additional Excel in fields in Eloqua - I thought that maybe the CDO fields appear as options for matching.

    So, my question is, how do I get data to Excel at the height of my merge field in Eloqua?

    Thanks for any help you can give!

    Colin

    Here is the result:

    You cannot perform a merge via download Excel (IE - trying to create a new segment via upload that contains the data to merge) - I was on the right track, that this should be done through CDO.

    1. create your CDO, upload your Excel file and map on the data card contacts

    -Create a new CDO, adding additional fields that you want to capture

    -Specify 'E-mail address' in the full name, the Unique ID and the email address fields. I also set the Group By field to the E-mail address and the type of entity as Contacts with new Email Address field.

    -When you transfer your Excel file with records to merge, be sure to map downloaded from the data card contacts (custom object > download custom object records). In the wizard in step 4 - resulting Actions to download, make sure that the card data card check box is selected. Real do not know why you ever not wanted - it seems to me that you can't do much without it.

    2. create your field field Email merges mergers

    -map to your CDO fields

    3. Insert the field merges in your email

    That of about it - if anyone has any additional info or corrections on the above, let me know. Hope this helps-

    Colin

  • HOW MANY BOOKMARKS YOU CAN ADD TO THE LIST?

    My list of BOOKMARKS can become very long. How many BOOKMARKS can I continue to add to the list?

    The list of bookmarks can get almost as full as you want. Keep in mind that the longer the list, it can slow down your Firefox installation.

  • Video Sport: No bookmarking on audio books on external Micro SD. No bookmarking via the FILE menu.

    Please read the following before posting.  THX.

    (1) ' Bookmarking' (placeholding) works only via the menu ' books / audio books. Bookmarking does NOT work with the SAME files played via the Menu 'folder '.

    (2) the menu ' books / audio books ' does NOT show audio books on the external Micro SD card.

    Thus, only audio books on the internal map have bookmarking.

    ___

    MORE INFORMATION:

    > All files (internal / external cards) appear in the FILE menu. (But there is no bookmarking via this menu.)

    > If I copy audio files from the external card to the internal card, whereas they appear under the heading books / audio books. Similarly when I copy to internal or external, whereas they appear MORE under the heading books / audio books.

    > So far, it makes NO DIFFERENCE the files located in the FOLDER.  (I put then under "Audiobooks" folder).

    > So far, it makes NO DIFFERENCE whether cases are identified as types of MUSIC files or AUDIO book.

    > Audio books come from a public library online of Overdrive Media Console in my Win8 ' Docs / My Media "folder. Can I use OMC to 'transfer' the files on my drive. I tried to download and upload a NEW COPY of a book currently extracts on the EXTERNAL drive. No improvement.

    > I tried to use a Micro SD card diff. No difference.

    WORKED!  I reformatted the external chip enabled Sport Clip recreate the files and then copied the files to the new folder "audio books", and now BOOKMARKING works under the BOOKS and CARDS. (Although not 'FOLDERS', but this can be normal.)

    Very happy!

  • How to import data in Excel sheet to the database using ADF BC

    Hello

    Can someone help me in suggesting how to import data from excel to database.

    Thank you

    Kunal Sharma

    Hello

    You can use the API to read each line of the file excel with your application and the creation of lines for each line that you read.

    See link

    http://www.codejava.NET/coding/how-to-read-Excel-files-in-Java-using-Apache-POI

  • How to register via the microphone port and play at the same time?

    How to record via mic mic.jpg port and at the same time I playt bydownload.jpgport ?

    cs6 hearing support, or any other software would help?

    Your screenshot was a little small so I zoomed in on one of my friends... the 'I' is the area click on my yellow arrow is pointing:

  • Someone at - it a VBA Excel code saves a pdf file into a text file?

    I use Adobe Reader XI.  I have the directory on my HDD that has two files; the first is an Excel worksheet and the second is a file 'pdf' of Adode.  I wrote a code using VBA Excel that opens the pdf file.  I am looking for a procedure that would save the pdf file to a text file (for example, "*.txt").  So far I found the code to do this, but it is written for Adobe Professional.  Someone has the code that would do the same thing using Adobe Reader XI?

    Not possible with Adobe Reader.

  • How to export data to excel that has 2 tables with the same number of columns and the column names?

    Hi everyone, yet once landed upward with a problem.

    After trying many things to myself, finally decided to post here...

    I created a form in form builder 6i in which clicking on a button, the data gets exported to the excel sheet.

    It works very well with a single table. The problem now is that I cannot do the same with 2 tables.

    Because the tables have the same number of columns and the columns names.

    Here are the 2 tables with column names:

    Table-1 (MONTHLY_PART_1) Table-2 (MONTHLY_PART_2)
    SL_NOSL_NO
    MODELMODEL
    END_DATEEND_DATE
    U-1U-1
    U-2U-2
    U-4U-4
    ..................
    ..................
    U-20U-20
    U-25U-25

    Given that the tables have the same column names, I get the following error :

    402 error at line 103, column 4

    required aliases in the SELECT list of the slider to avoid duplicate column names.

    So how to export data to excel that has 2 tables with the same number of columns and the column names?

    Should I paste the code? Should I publish this query in 'SQL and PL/SQL ' Forum?

    Help me with this please.

    Thank you.

    Wait a second... is this a kind of House of partitioning? Shouldn't it is a union of two tables instead a join?

    see you soon

  • How to draw a line on Illustrator uses Excel via VBA coordinates

    Void line_viaCoordinates()

    Set appRef = CreateObject ("Illustrator.Application")

    IAPP Dim As New Illustrator.Application

    Dim idoc as Illustrator.Document

    Dim Illustrator.PathItem As isquare

    Define the idoc = iapp. Documents.Add

    Dim lineList (4)

    lineList (0) = Array (50, 50)

    lineList (1) = Array (50, 100)

    lineList (2) = Array (100, 100)

    lineList (3) = Array (150, 80)

    lineList (4) = Array (90, 200)

    "my question is: how to turn this painting (50, 50) in table (LINE B1, RANGEC1)..." So whatever the number, I type this cell to Excel, Illustator it will use as input to draw the line.

    Define isquare idoc =. PathItems.Add

    iSQUARE. SetEntirePath (lineList)

    Isquare = Nothing set

    Define the idoc = Nothing

    Define the iapp = Nothing

    End Sub

    You can use the range or cell objects to get a reference to your range values

    in this example, the data is on the A1 to B5

    Dim lineList(4)
    
    lineList(0) = Array(Cells(1, 1).Value, Cells(1, 2).Value)
    lineList(1) = Array(Cells(2, 1).Value, Cells(2, 2).Value)
    lineList(2) = Array(Cells(3, 1).Value, Cells(3, 2).Value)
    lineList(3) = Array(Cells(4, 1).Value, Cells(4, 2).Value)
    lineList(4) = Array(Cells(5, 1).Value, Cells(5, 2).Value)
    
  • Add bookmarks to PDF using VBA Excel

    Good morning-

    I have, through research on the internet, created an Excel macro that prints several workbooks to PDF, combines in a single file and print this file.  I searched for the last piece, which is adding bookmarks, but have had no luck getting it to work.  Here is the code I use to add bookmarks-

    Dim avdoc, pddoc, app As Object
    Dim stFile As String
    Subtitles As Boolean Dim
    Dim PDBookmark As CAcroPDBookmark

    stFile = "D:\Test\Test.pdf."
    Set app = CreateObject ("AcroExch.app")

    Set avdoc = CreateObject ("AcroExch.AVDoc")
    Set pddoc = CreateObject ("AcroExch.PDDoc")
    pddoc. StFile open

    Set avdoc = pddoc. OpenAVDoc (stFile)
    Set PDBookmark = CreateObject ("AcroExch.PDBookmark", "")

    App. MenuItemExecute ("NewBookmark")

    subtitles = PDBookmark.SetTitle ("Test bookmark")

    This code inserts a bookmark on the first page of the document.  The bookmark title appears as untitled instead of Test bookmark as indicated in the code.  Can someone answer the following questions -

    1. why the code not change the Untitled Test highlighted bookmark bookmark, and

    2. How will nodify code above to go to a certain page, then enter the bookmark.

    Any help is greatly appreciated.  Thanks in advance for your time.

    Hello

    This discussion reminds me of a great example VBA of Jens Kammerath,

    who also answer your next question = how to set bookmarks as a tree.

    Also save some work and tests :-)).

    You can download:

    http://www.ReFob.de/downloads/Acrobat/AcroJsBookmarksVBA.zip

    HTH, Reinhard

  • [VBA] Excel-> Indesign: "can't find project or library"-how to fix?

    Hello everyone!

    My problem this time is something weird. I developed a VBA to get values from a worksheet Excel to an InDesign Document. With my PC, everything works fine. But when I run the same sheet on my boss's PC it has this Message: "can't find project or library".

    I tried following steps:

    1. I have relinked the library

    2. I deleted the tbl file on my drive and created a new starting InDesign as an administrator

    3. I deleted any file of tbl script (those in the UserProfile) and them recreated from InDesign

    4. I tried to register the tbl with regsvr32, but Windows always tells me that this file is not compatible

    My boss and I work both with Windows 7 64 bit. The only difference is, I work with final and he is using professionals.

    Any suggestions how we can solve this problem?

    With sincere friendships.

    Steffi

    Found the problem!

    The other PC I wanted the program to execute necessary numerical values for the attributes.

    For others with the same problem:

    idUserInteractionLevels.idInteractWithAll = 1699311169

    idUserInteractionLevels.idNeverInteract = 1699640946

    idJavascript = 1246973031

Maybe you are looking for

  • password for a restore of backup?

    I'll have my iPhone 6 repaired and so after backing up the phone I tried reinstalling this backup on my spare iPhone 5.  It's iTunes asks me the password for my backup but I did not indicate an and so obviously have no idea of what the * your passwor

  • How to concatenate the string of normal worksheet to srting

    Hello I try to concatenate string worksheet to sring normal, but she cannot concatenate... here, I have attached my program for your firm .the support cannot be CONCATENATE.

  • What is this dialog box? "Run-time error '380': invalid property value."

    I'm trying to load a registration program and I get a dialog box that indicates that following. "Run-time error '380': invalid property value." What it means. How can I solve this problem? Pescatore

  • Records of gel and gel comp.

    I lost my hard drive last month and had to get a new one. I used to use drive C, but now it's a drive of F. Not sure if this is the reason. In any case when I go to a folder such as my pictures or my PSP etc it did not open until then freeze. I can't

  • RTL 8191 s WLAN adapter for windows 7 x 64?

    Anyone know where I can get this driver? I can't seem to find one anywhere. I also seem to have a problem finding the right driver for a texas instruments OCHI compatible host as well as the driver of Ethernet controller controller. It seems that Win