473,473 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Creating PDF's and Bookmarks

I automatically generate several PDF a night from a DB I manage. Below
is a snippet of code that just tweakes the registry settings to store
path and filename then prints the PDF. Typically a report is compiled
of multiple sites and I was wondering if there is a way to add
bookmarks to the PDF's. I'm also familiar with some visual basic
methods to merge single PDF's into one. But I dont know how, if
possible, to add bookmarks.

Can anyone offer suggestions?
code follows

adhSetRegistryValueFromPath "\HKEY_CURRENT_USER\Software\Adobe\Acrobat
PDFWriter\PDFFileName", "J:\TAC\WEB\pm_reports\" & hold_rs!UserName &
".pdf"

Print_Adobe.ChangeToAcrobat
DoCmd.OpenReport "discrepancy_report", acViewNormal
Print_Adobe.ResetDefaultPrinter
Nov 12 '05 #1
2 7701
SA
Thomas:

Our PDF and Mail Libray for Access, PDF Pro Plus Edition, will allow you to
create bookmarks for your PDF files created from Access reports, including
nested child bookmarks. You'll find it on our web.

HTH
--
Steve Arbaugh
ACG Soft
http://ourworld.compuserve.com/homepages/attac-cg

"Thomas Anderson" <th****************@hotmail.com> wrote in message
news:3c**************************@posting.google.c om...
I automatically generate several PDF a night from a DB I manage. Below
is a snippet of code that just tweakes the registry settings to store
path and filename then prints the PDF. Typically a report is compiled
of multiple sites and I was wondering if there is a way to add
bookmarks to the PDF's. I'm also familiar with some visual basic
methods to merge single PDF's into one. But I dont know how, if
possible, to add bookmarks.

Can anyone offer suggestions?
code follows

adhSetRegistryValueFromPath "\HKEY_CURRENT_USER\Software\Adobe\Acrobat
PDFWriter\PDFFileName", "J:\TAC\WEB\pm_reports\" & hold_rs!UserName &
".pdf"

Print_Adobe.ChangeToAcrobat
DoCmd.OpenReport "discrepancy_report", acViewNormal
Print_Adobe.ResetDefaultPrinter

Nov 12 '05 #2
In addition to purchasing tools that others offered, you may want to
read the free reference manual that comes with the Acrobat SDK. The SDK
provides a number of objects that allow you to manipulate contents of
PDF pages, bookmarks etc.
You can also combine bookmark management via the SDK with the Java
abilities of Acrobat itself.
I use bookmarks management extensively in one of my Access databases. I
must add that I encountered a couple of fatal glitches when using the
SDK (v. 5). Mainly, I had problems with re-using the same file objects
and, subsequently, bookmark trees. The code eventually crashed, unable
to open any more PDF files. I am saying this so that you are not
surprised if the SDK acts up with VBA.
But in the end, it works great.
Good luck,
Pavel

Thomas Anderson wrote:

I automatically generate several PDF a night from a DB I manage. Below
is a snippet of code that just tweakes the registry settings to store
path and filename then prints the PDF. Typically a report is compiled
of multiple sites and I was wondering if there is a way to add
bookmarks to the PDF's. I'm also familiar with some visual basic
methods to merge single PDF's into one. But I dont know how, if
possible, to add bookmarks.

Can anyone offer suggestions?

code follows

adhSetRegistryValueFromPath "\HKEY_CURRENT_USER\Software\Adobe\Acrobat
PDFWriter\PDFFileName", "J:\TAC\WEB\pm_reports\" & hold_rs!UserName &
".pdf"

Print_Adobe.ChangeToAcrobat
DoCmd.OpenReport "discrepancy_report", acViewNormal
Print_Adobe.ResetDefaultPrinter

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Deane Barker | last post by:
I'd like to open an existing PDF and read out the bookmarks present in the document. Using PDFLib (http://www.pdflib.com/), I managed to get the page count out thusly: $pdf = pdf_new();...
0
by: John Bonds | last post by:
Anyone know of a good .NET tool that converts TIFF's to PDF's that supports inserting bookmarks in the PDF? Thanks, John
27
by: Mark | last post by:
I'm curious to get feedback regarding the potential SVG has in performing the same functionality as PDF for fixing documents. Thanks. Mark
1
by: Alon | last post by:
When I export a report to PDF format, the bookmarks pane is closed, and needs to be pressed in order for the bookmarks to open. Is it possible that Upon opening the PDF, the bookmark pane will be...
1
by: chazmanian | last post by:
We have a situation where we display PDF files through IE via a method in our code-behind as follows protected void displayPDF(string exePath, string filePath { // exePath is the...
3
by: Null | last post by:
Hello -- I am looking for a way to dynamically generate PDF documents - combining Crystal Reports and data driven "fields". For example, I have a template that's essentially a summary document...
3
by: MJ | last post by:
Automatically download and save pdf files from a website. Is there a way to do this? I would like to automate a daily procedure for downloading and saving a couple of dozen pdf from several...
0
by: UtilityWarrior | last post by:
If you use Visual Basic 6 or VB.net and want to create PDFs from images royalty free then this DLL is for you. The Image to PDF Dynamic Link Library (DLL) will convert one or more images (JPEG,...
9
by: Andrew Poulos | last post by:
I have some js that looks like this: fOpenPDFInNewWindow = function(url,page) { var page = page || 1; newPDF = window.open(url+"#pagemode=bookmarks&page="+page,...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.