Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Manipulating PDF

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,40193
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Manipulating PDF
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Manipulating PDF - 11/29/2006 6:33:57 AM   
  Abbas1


Posts: 23
Score: 0
Joined: 11/28/2006
Status: offline
 

I am trying to write anything in VB5 that can access or just make minor changes;
such as the metadata in a PDF document;
Is that possible?


                                   



_____________________________

Thank you very much
 
 
Post #: 1
 
 RE: Manipulating PDF - 11/29/2006 6:37:50 AM   
  ebgreen


Posts: 5246
Score: 31
Joined: 7/12/2005
Status: offline
In VB5 or VBS?

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Abbas1)
 
 
Post #: 2
 
 RE: Manipulating PDF - 11/29/2006 6:40:57 AM   
  Abbas1


Posts: 23
Score: 0
Joined: 11/28/2006
Status: offline
 

Visual Basic Five;
By the way; what is (VBS)?

                                     



_____________________________

Thank you very much

(in reply to ebgreen)
 
 
Post #: 3
 
 RE: Manipulating PDF - 11/29/2006 6:45:19 AM   
  ebgreen


Posts: 5246
Score: 31
Joined: 7/12/2005
Status: offline
VBS is Visual Basic Script. It is the language that these fora are for. VB5 is not the same thing although the two languages are related. You will probably get a faster and more thorough answer at a VB5 forum. VB5 has not been supported for many years now so don't expect a huge outpouring of support from just about anywhere.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Abbas1)
 
 
Post #: 4
 
 RE: Manipulating PDF - 11/29/2006 6:46:16 AM   
  Abbas1


Posts: 23
Score: 0
Joined: 11/28/2006
Status: offline
 

Sorry;
I guess I have VB6 not VB5.





_____________________________

Thank you very much

(in reply to ebgreen)
 
 
Post #: 5
 
 RE: Manipulating PDF - 11/29/2006 6:47:12 AM   
  ebgreen


Posts: 5246
Score: 31
Joined: 7/12/2005
Status: offline
Either way, while you may run accross someone here that has done this in VB, you would probably get a better and faster answer at a VB forum.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Abbas1)
 
 
Post #: 6
 
 RE: Manipulating PDF - 11/29/2006 6:48:53 AM   
  ebgreen


Posts: 5246
Score: 31
Joined: 7/12/2005
Status: offline
Searching for "visual basic open pdf" on google turned up several interesting sites that looked like they might have the code that you are looking for.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to ebgreen)
 
 
Post #: 7
 
 RE: Manipulating PDF - 11/29/2006 6:52:16 AM   
  Abbas1


Posts: 23
Score: 0
Joined: 11/28/2006
Status: offline
 

I tried so hard for long time, and that is how I found your forum;
But I did not get any answer to this question;
I just found sophisticated programs for sell in the internet...


I wouldn't mind replacing VB6 to VBS in my computer;
 if I could get answer from you.

Cheers.



                         




_____________________________

Thank you very much

(in reply to ebgreen)
 
 
Post #: 8
 
 RE: Manipulating PDF - 11/29/2006 6:54:10 AM   
  Abbas1


Posts: 23
Score: 0
Joined: 11/28/2006
Status: offline
 

I agree;
That is what I've found,
but no one tell how to change the metadata of multiple files at once;
and without opening the files;
That is exactly what I am trying to do.



_____________________________

Thank you very much

(in reply to ebgreen)
 
 
Post #: 9
 
 RE: Manipulating PDF - 11/29/2006 6:55:28 AM   
  ebgreen


Posts: 5246
Score: 31
Joined: 7/12/2005
Status: offline
Well, first of all I think you need to have the Adobe Writer program installed. The reader program does not expose an API as far as I know.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Abbas1)
 
 
Post #: 10
 
 RE: Manipulating PDF - 11/29/2006 6:59:22 AM   
  Abbas1


Posts: 23
Score: 0
Joined: 11/28/2006
Status: offline
 

I have Adobe full version.
Is it possible to access to multiple files throught it and change the metadata without opening them (for faster process)?



_____________________________

Thank you very much

(in reply to ebgreen)
 
 
Post #: 11
 
 RE: Manipulating PDF - 11/29/2006 7:02:04 AM   
  ebgreen


Posts: 5246
Score: 31
Joined: 7/12/2005
Status: offline
What sort of metadata do you want to change?

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Abbas1)
 
 
Post #: 12
 
 RE: Manipulating PDF - 11/29/2006 7:05:21 AM   
  Abbas1


Posts: 23
Score: 0
Joined: 11/28/2006
Status: offline
 

Author, Creator, and Producer.

_____________________________

Thank you very much

(in reply to ebgreen)
 
 
Post #: 13
 
 RE: Manipulating PDF - 11/29/2006 7:18:08 AM   
  ebgreen


Posts: 5246
Score: 31
Joined: 7/12/2005
Status: offline
Quite a bit of the pdf file is saved in clear text. For instance if you open a pdf in notepad and poke around in it you can find where that metadata is stored and change it right there in notepad. This means that you should be able to use VBS (or VB6) to open the file and make modifications then write the file back out just like any other text file.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Abbas1)
 
 
Post #: 14
 
 RE: Manipulating PDF - 11/29/2006 7:23:34 AM   
  Abbas1


Posts: 23
Score: 0
Joined: 11/28/2006
Status: offline
 
 
WOW! 
 
This is very clever way;
I did not think of it this way;
 

 
I will try it tonight and let you know the results.
 
again for the idea.



_____________________________

Thank you very much

(in reply to ebgreen)
 
 
Post #: 15
 
 RE: Manipulating PDF - 11/29/2006 7:27:48 AM   
  CaffeineAddiction

 

Posts: 144
Score: 0
Joined: 2/9/2005
From:
Status: offline
Info found at:
http://www.accesspdf.com/index.php?topic=toolslibs

Scripting object required "pdftk.exe" can be found at:
http://www.accesspdf.com/pdftk/
Code Shown here

      

Disclaimer: I havent tested or reviewed any of this code or checked out this executable ... this is just the simple results of a 5 min google search for "vbscript metadata"

_____________________________

Thanks for Answering my Questions ... I hope my Answer to your questions help!

(in reply to Abbas1)
 
 
Post #: 16
 
 RE: Manipulating PDF - 11/29/2006 12:31:13 PM   
  Abbas1


Posts: 23
Score: 0
Joined: 11/28/2006
Status: offline
 

I tried both;

The text method did not work;
becasue simply, when I change anything using text, I could not open the file.

The other method, when I pasted the code, it did not work.

Any ideas?


                         



_____________________________

Thank you very much

(in reply to CaffeineAddiction)
 
 
Post #: 17
 
 RE: Manipulating PDF - 11/30/2006 2:20:22 AM   
  ebgreen


Posts: 5246
Score: 31
Joined: 7/12/2005
Status: offline
Well the pdf files use *nix style end of lines not windows style. Please post the code. When I open a pdf file using an editor that support *nix end of lines (Vi) and change the author, then the chage shows up in the PDF properties tab for the file and I can still open the file just fine.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Abbas1)
 
 
Post #: 18
 
 RE: Manipulating PDF - 11/30/2006 8:09:44 AM   
  Abbas1


Posts: 23
Score: 0
Joined: 11/28/2006
Status: offline
 

About the code, I still haven't started becasue I have no experience how to deal with PDFs.
I think I have to do more reading on the (nix), I am not familiar with this format;
Then I have to develope the code.







_____________________________

Thank you very much

(in reply to ebgreen)
 
 
Post #: 19
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Manipulating PDF Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts