Hi all,
I have a VB application that generates a PDF reports. It works great except I would like to specify how the PDF file is display when it's opened. I want Bookmarks displayed without users clicking on the bookmark tab or Pane. I'm rather green on this and would like your help.
Currently I have this code:
For i = 1 To CurrentBookmark
If BookmarkList(i, 0) <> "" Then
Print #2, "[/Count " & BookmarkList(i, 1) & " " _
& "/Page " & BookmarkList(i, 2) & " " _
& "/View [/Fit]" & " " _
& "/Title (" & Replace(Replace(BookmarkList
(i,0), "(", "{"), ")", "}") & ") " _
& "/OUT pdfmark"
Else
Exit For
End If
Next i
Reading the Pdfmark Reference Manual, under Document Open Option, I though modifying the print statement as follows may work but it doesn't.
Print #2, "[/PageMode /UseOutLines" & " " _
& "[/Count " & BookmarkList(i, 1) & " " _
& "/Page " & BookmarkList(i, 2) & " " _
& "/View [/Fit]" & " " _
& "/Title (" & Replace(Replace(BookmarkList
(i,0), "(", "{"), ")", "}") & ") " _
& "/DOCVIEW pdfmark"
The manual seem to be saying that specifying [/PageMode /UseOutLines
and DOCVIEW pdfmark
Will do the trick, but it doesn't. What am I missing??
I appreciate for any assistance.
I have a VB application that generates a PDF reports. It works great except I would like to specify how the PDF file is display when it's opened. I want Bookmarks displayed without users clicking on the bookmark tab or Pane. I'm rather green on this and would like your help.
Currently I have this code:
For i = 1 To CurrentBookmark
If BookmarkList(i, 0) <> "" Then
Print #2, "[/Count " & BookmarkList(i, 1) & " " _
& "/Page " & BookmarkList(i, 2) & " " _
& "/View [/Fit]" & " " _
& "/Title (" & Replace(Replace(BookmarkList
(i,0), "(", "{"), ")", "}") & ") " _
& "/OUT pdfmark"
Else
Exit For
End If
Next i
Reading the Pdfmark Reference Manual, under Document Open Option, I though modifying the print statement as follows may work but it doesn't.
Print #2, "[/PageMode /UseOutLines" & " " _
& "[/Count " & BookmarkList(i, 1) & " " _
& "/Page " & BookmarkList(i, 2) & " " _
& "/View [/Fit]" & " " _
& "/Title (" & Replace(Replace(BookmarkList
(i,0), "(", "{"), ")", "}") & ") " _
& "/DOCVIEW pdfmark"
The manual seem to be saying that specifying [/PageMode /UseOutLines
and DOCVIEW pdfmark
Will do the trick, but it doesn't. What am I missing??
I appreciate for any assistance.