How to generate an index of a PDF file showing basic information?

Question:Given an existing PDF document, I would like to tack on an index to the end of the file to show the pages, on which key words show up. It would be best if I don't have to give a list of words to look for and the list of words is automatically generated. However, if a list of words must be given, I can work with it. I'm looking to do this either through a C# library or a command line tool. It needs to run as part of another command line app.Is there anything out there that is capable of this? Is there any solution on VeryPDF?

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 Title, Author, Subject, Keywords, Creator, Producer, Created Date, Modified Date from/to PDF files in other page. And if you need, this cloud based application also can allows you to use it together with C#. But you can not use it as command line software. Please check more information of this software on homepage, now let us check how to use this software.

Step 1. Register an account of VeryPDF PDF Metadata Manager Cloud API

  • VeryPDF PDF Metadata Manager Cloud API belongs to one of the applications of VeryPDF cloud based applications. When you use those software, you do not need to download any software to your computer. Simply open any browse then input the URL, you can use it easily.
  • If you do not register an account, the API code can not be sent to your email box. Then the output file will taken with watermark. When you use the API code, this limitation will be removed.

Step 2. Generate an index of a PDF showing basic information.

  • When you use this software, please refer to the following URL.
    http://online.verypdf.com/api/?apikey=XXXX-XXXX-XXXX-XXXX&app=pdfinfo&infile=http://online.verypdf.com/examples/cloud-api/verypdf.pdf
    When you use it, please pay more attention to its structure. At the first part of URL, it is the main URL of cloud application website. Next to it, please input the real API code you have got in your email box. Then input parameter app=pdfinfo, which stands for you need to extract data of the PDF. At last, please input the URL of the PDF, you need to extract data and show it in the new index. Simply copy this kind of URL in any browser then you will get the following basic information:
  • Title:          PDF Tools, Document Process Software, Multimedia Applications and Development Packages - VeryPDF
    Creator:       
    Producer:       VeryPDF
    Keyword: PDF Tools, Document Process Software, Multimedia Applications and Development Packages – VeryPDF
    CreationDate:   D:20130712095842-04'00'

  • When you need to call it from C#, please refer to the following code templates:

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()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            string url = "http://online.verypdf.com/api/?apikey=XXXX-XXXX-XXXX-XXXX&app=pdfinfo&infile=http://online.verypdf.com/examples/cloud-api/verypdf.pdf";
            WebRequest request = HttpWebRequest.Create(url);
            WebResponse response = request.GetResponse();
            StreamReader reader = new StreamReader(response.GetResponseStream());
            string urlText = reader.ReadToEnd();
            MessageBox.Show(urlText);
        }
    }
}

During the using, if you have any question, please contact us as soon as possible.

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

This entry was posted in VeryPDF Cloud API and tagged . Bookmark the permalink.

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!