How to extract title from .pdf file using c#?

Question:I know that for Python such solution exist already.But I hope that someone could suggest some library for c# for this issue. Is there any solution on VeryPDF for extracting title from PDF using C#?

Answer: According to your needs, maybe you can have a free trial of this software:VeryPDF PDF Metadata Manager Cloud API, by which you can extract or insert Title, Author, Subject, Keywords, Creator, Producer, Created Date, Modified Date from/to PDF files easily. And as this API can be called from any platform and any program languages, include C#, VB.NET, ASP.NET, ASP, PHP, Java, Ruby, Amazon, etc. Please check more information of this software on homepage. In the following part, let us check how to use this software.

Step 1. Get an account of this API application.

  • This is cloud API application, you do not need to download any software but you need to register an account for it first. And the registration is totally free. But this API is not totally free, you can buy this service per month or per file. If you buy this software per month, $19.95 / Month then you can extract tile from PDF files as many as you need. 
  • When registration, please register an account on registration page, then you will get an code on APIKEY in your account page.

Step 2. Use this cloud API to extract title from PDF using C#.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.Serialization;
using System.Net;
using System.IO;

namespace WindowsFormsApplication1
    public partial class Form1 : Form
        public Form1()
        private void button1_Click(object sender, EventArgs e)
            string url = "";
            WebRequest request = HttpWebRequest.Create(url);
            WebResponse response = request.GetResponse();
            StreamReader reader = new StreamReader(response.GetResponseStream());
            string urlText = reader.ReadToEnd();

During the using, if you have any question, please contact us as soon as possible. We will solve your matter at the first time.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!