PDF - Open Bookmarks Panel when pdf opens - vba

When I open a certain pdf file on SharePoint, I wish to see the Bookmarks Navigation tab open by default. I can do this manually by File > Properties > initial View and changing the Navigation tab to "Bookmarks Panel and Page".
I need to do this with hundreds of pdf files and then upload them to SharePoint.
I am using VBA. I don't mind using other forms of automation.
Currently, I have AVDoc (CAcroAVDoc) and can open the Bookmarks Pane but it's not changed in the settings.
AVDoc.SetViewMode 3
I tried PDDoc.SetInfo etc but nothings changing the "settings".
Any suggestion will be appreciated.
I am running a lot of code in Excel VBA, that does a lot of pdf manipulation. The only thing that remains is to change the settings.

With Acrobat as the runtime, there is no scriptable interface to the initial view settings. However, you can easily use any of several .NET PDF libraries to make this change. A Google search for ".NET PDF Library" will yield both free and commercial varieties. You'll need to research which one is best for your task and skill set.

Related

Can you embed a separate pdf into Indesign and open it after exporting to PDF?

I would like to ask the following if possible. We have a client that wants a separate pdf document, embedded in a main pdf document and opens when you click it. Like the function in MS Word where you can attach another Word document inside a Word document (Word-ception, lol) and you can still open it.
I've tried it in Acrobat Pro with the Attachment and Link tools. Another option was to put the link document in an ftp server for accessibility. but our client really wants this functionality. Is this possible in Indesign?
Thank you!
Using Word as your example vehicle there are several ways to link 2 documents.
One is an appendix to the other, in PDF terms is a merge or binding but its one flowing document with separate sequential sections/chapters.
Another way is to link to an external file, in PDF terms a hyperlink to a relative second file, which can be locally folder relative or a web absolute reference. You have tried that.
In Word we can add objects internally with icons, in PDF that can be an annotation comment attachment to save externally and action accordingly. You also seem to discount that approach.
Finally PDF offers an Adobe Specific Structure where multiple PDFs attachments can be imbedded in an overall PDF wrapper. These are called Portfolios and not! to be confused with their portfolio service
They are unpopular since in a browser without Adobe Reader they should only offer the cover page.
Whilst in securer offline readers the files may well be shown as attachments that you need to save or independently open to view them.
Only some non Acrobat viewers may view them as a collection. And in the past that required runing insecure SWFlash, But I understand that has changed ?
Here is how the 3 internal PDF files seen above were shown in older Acrobat 9.
Possibly the best experience is using Foxit Reader

Preview pane for Microsoft Office files - VB.net

I have a treeview control based on the file system and I would like to implement functionality exactly like windows file explorer whereby a user can click on a file and it would display a preview in the preview windows/pane
I have already managed to do this for files such as images and PDF's with a web browser control but I'm struggling with Office files (xlsx, docx, pptx) as it opens the files in their respective applications rather than the preview window.
I've seen quite a few articles like this but can't find a working, or even semi-working example! Any help would be appreciated.

Open documents in Xamarin Forms

I would like opening documents in a Xamarin Forms app possibly without writing platform-specific code.
Documents could be PDF or Word files and I do NOT want to open documents inside the app, rather I want to use the default app: default Pdf Reader and Word (if installed). Any idea?
I am trying by using Device.OpenUri(new Uri("file:///Assets/pdf-sample.pdf")) and setting PDF file Build Action=Embedded Result, unfortunately without success.
You can do it simply with webview (there goes an example: https://developer.xamarin.com/recipes/cross-platform/xamarin-forms/controls/display-pdf/)

PDF downloading instead of opening in new tab

This is not a back-end programming question. I can only modify the markup or script (or the document itself). The reason I'm asking here is because all my searches for appropriate terms inevitably lead to questions and solutions about programming this functionality. I'm not trying to force it via progrmaming; I have to find out why this PDF is behaving differently.
So:
I have a bunch of links to PDFs on a page. Most of them open in new tabs, but one of them, the most recent, starts to open in a tab, but then the tab closes and the PDF gets downloaded as a file instead. All markup is consistent - there's nothing differnt about the odd-man-out except the actual URL.
You can see this here:
http://calwater.mwnewsroom.com/Investor-Relations/Financial-Reports/Annual-Reports
All annual reports up to 2012 open in a new tab, but 2013 downloads instead.
This leads me to believe that there is some meta-data property of the PDF itself that tells it how to open, and that, in this case, the 2013 PDF was created using different settings.
Apparently, the PDF was saved out to PDF from InDesign.
Does anyone have any insight?
Problem solved. There was simply an error in the string (like an extra period) that references the attachment such that it couldn't tell it was a PDF. Fixing the reference fixed the problem.

Making a button in indesign go to a specific page in exported PDF

In InDesign I can define buttons and can add different actions to them. One of these actions is "go to page", but apparently that function is only usable when exporting the InDesign document as an SWF. However, we want to export an interactive PDF.
When we open the exported PDF in Adobe Acrobat Professional we can touch up each and every button in the document and set the page to the page we want, but this is of course extremely tedious work, especially when you have several proving runs.
So, my question is: how do I get my buttons in InDesign to jump to a specific page without having to do the touch up late in Adobe Acrobat Professional? Surely it must be possible to navigate between pages?!
I stumbled on this issue a while back too, and i figured out how to link to a place in an interactive PDF document via Buttons:
1) Create Bookmarks on the pages you want to link to. (I usually make a text in the top of the page in 'paper color' and create a bookmark from that)
2) Button action "Go to destination" -> Bookmark
Hope this helps...
Make a box in inDesign.
Select the box.
Open Hyperlink panel
"Create a hyperlink destination" I use the page number
Then go to the page in your inDesign document where you want to make the button.
Make a box and select it
Open hyperlinkpanel "Make hyperlink" and choose the destination you made using the pulldown (not the page number counter, that didn't work for me).
interactiv->Hyperlink and You choose "New Hyperlink destination" from menu in top-right dropdown menu. And choose page.
I tried sometime but now i know the deal (on CS5 on Windows). I only have the German version so maybe i´ll label some things wrong:
When you create your button and determine the "action" you´ll get a list with available options. Here the upper options work in PDF and SWF, but some options are available "only in swf" and "only in pdf.
"Go to a certain page" is not available in PDF :(
So you have to edit the document via Acrobat.
Another thing: When writing an interactive pdf-file use the option "Export..." under "File", here you chose "Adobe PDF (Interactive)" under filetype.
Maybe (as a thought) there is a way to use Javascript in InDesign and/or Acrobat to assign the buttons automatically.