C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Porgrammatically retrieve properties of a PDF document


Posted Date: 14 May 2008    Resource Type: Code Snippets    Category: Tools
Author: Balamurali BalajiMember Level: Diamond    
Rating: Points: 10



This code snippet allows you to retrieve the document properties of a Portable Document Format(.PDF) file. Note that MS-Word, Acrobat Reader allows you to store information like Title, Subject,Author, Keywords etc along with the respective files.

To get these information from a PDF file in your C# application, Add a reference to the COM component called PDFShellServer 1.0 Type library.


PDFSHELLSERVERLib.PDFShellInfoClass pdfinfo = new PDFSHELLSERVERLib.PDFShellInfoClass();
string title, subj, author, keyword;
pdfinfo.GetColumnInfo(@"d:\users\bala\documents\appln.pdf", out title, out subj, out author, out keyword);
Console.WriteLine(title);
Console.WriteLine(subj);
Console.WriteLine(author);
Console.WriteLine(keyword);





Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Generate New Random Password
Previous Resource: How to capture Screenshots in C#.Net
Return to Discussion Resource Index
Post New Resource
Category: Tools


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use