473,385 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Modify pdf Metadata in Access VBA

124 100+
Is it possible to change pdf metadata from within Access? I have the following code for reading data from a pdf but I need to change it. I am not averse to using the Acrobat application object rather than late binding. Thanks in advance for any advice.

Expand|Select|Wrap|Line Numbers
  1. Function ReadPDF(ByVal sFile As String) As Boolean
  2. Dim oDoc As Object ' Acrobat.CAcroPDDoc
  3. Dim msFileName As String, mnNumPages As Integer 
  4. Dim mnPageMode As Integer, msTitle As String
  5. Dim msSubject As String, msAuthor As String 
  6. Dim msKeywords As String, msCreator As String 
  7. Dim msProducer As String
  8.  
  9.   Set oDoc = CreateObject("AcroExch.PDDoc")
  10.   With oDoc    
  11.     If .Open(sFile) Then      
  12.       msFileName = .GetFileName
  13.       mnNumPages = .GetNumPages
  14.       mnPageMode = .GetPageMode
  15.       msTitle = .GetInfo("Title")
  16.       msSubject = .GetInfo("Subject")
  17.       msAuthor = .GetInfo("Author")
  18.       msKeywords = .GetInfo("Keywords")
  19.       msCreator = .GetInfo("Creator")
  20.       msProducer = .GetInfo("Producer")
  21.       .Close      
  22.       ReadPDF = True
  23.     Else
  24.       ReadPDF = False
  25.     End If
  26.   End With
  27.   Set oDoc = Nothing
  28. End Function
  29.  
Jun 11 '13 #1
1 5925
zmbd
5,501 Expert Mod 4TB
I'm afraid that very few of us have any experience with the acrobat automation.

I would suspect the ability to change the data would lie in two requirements: knowing the command (sorry, captain obvious here ;) ) and the correct security settings within the PDF file itself (it would do no good to make a change and then the file can't be opened!).

Hopefully someone will have a better answer for you
Jul 1 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Useko Netsumi | last post by:
Does anyone aware of any program/apps/scripts that has the ability to modify/add/create/delete metadata in any image type such as JPEG, GIF, PNG, etc. Question for the experts, is it wise to...
3
by: James P. | last post by:
Hello there, When the user opens Access form, they can either right click on the form to go to Form Design or click on View icon of Access (View - Toolbars - FormView) to see form design. From...
6
by: jkraemer | last post by:
I'm in search of an Access Programmer that is located in the Dallas / Fort Worth area to help modify an access database. Please send me an email if you have an interest in help us out. Best...
0
by: awetrwerewr | last post by:
I have a Microsoft Access database I'd like to have completed. I need forms added to add, delete and modify customers, sales and products. If you can also do the additional modifications to...
18
by: Andre Laplume via AccessMonster.com | last post by:
I have inherited a bunch of dbs which are are shared among a small group in my dept. We typically use the dbs to write queries to extract data, usually dumping it into Excel. Most dbs originated...
2
by: Travis | last post by:
Hi everyone, I'm using the System.Drawing.Imaging.Bitmap to retrieve and modify the metadata tags (user comments, keywords etc) of JPEGS. I was wondering if changing these tags in any way...
2
by: Nuno | last post by:
How can i change the access modifier of a control from protected to public if the designer code is not visible to the developer? I tryed declaring it on the page but it throws a compile error...
6
by: Thelma Lubkin | last post by:
I am trying to modify an Access form that allows a user to specify the information s/he needs from a census-type database. The form's code builds a SQL statement from the user's request, and...
15
by: ApexData | last post by:
Hello I'm using Access2000, SplitDB, ALL MenuBars are Off. The AccessTitleBar(BlueBar) displays at the top with its (Min/Max/) Controlbox. I have a MainMenuForm (Modal-On), that Calls a...
3
by: Charlotte | last post by:
Hello, info: I'me a rookie with IIS I have on a WinXP Pro the IIS installed, so I can test some pages before uploading to the hostserver online on the hostserver is a possibility (with the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.