Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening a PDF From Access, setting 'Full Screen Mode' and saving

Status
Not open for further replies.

Gammachaser

Programmer
Joined
Apr 30, 2011
Messages
183
Location
US

The title pretty much says it...

I can open the document, I can set the mode to Full Screen and I can save the document... only that does not preserve the setting. I need a way to set the Property for the document, not just the current view mode.

Any suggestions? (The Adobe API is not very helpful.)
 

HA!

I knew if I took the time to post this message the answer would arrive as soon as I did.

I have the solution.

Code:
Dim accApp As New Acrobat.AcroApp
Dim accDoc As New Acrobat.AcroPDDoc

accDoc.Open "MyFile.pdf"
accDoc.SetPageMode PDFullScreen
accDoc.Save PDSaveFull, "MyFile.pdf"
accDoc.Close
accApp.Exit
Set accDoc = Nothing
Set accApp = Nothing

That is all there is to it. Couldn't see the forest for the trees.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top