Solved

Need assistance/opinions with creating a PDF library page

Posted on 2014-11-20
3
40 Views
Last Modified: 2015-09-28
I am creating a PDF library page and would like to find out if what I am proposing of doing is even possible.

I would like to create a page that displays a database driven display of all the PDFs we have. I want to display thumbnails of the front page of each PDF but don't want to create images; instead I want to thumbnail the actual PDF. I don't know what type of performance issues I'll be running into, if any, and I'd like to see if someone else has attempted this. I was thinking of using a product called PDFThumbnail. Let me know your thoughts, or share some snippets of code please. Thanks.

will be done in asp.net

http://www.tallcomponents.com/pdfthumbnail.aspx
0
Comment
Question by:CementTruck
  • 2
3 Comments
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 40455132
Moved question to ASP.NET from Classic asp and added .NET programing and Misc WebDev topics.

padas
Topic Advisor
0
 

Author Comment

by:CementTruck
ID: 40455254
@padas,

Thanks for moving this to the proper topic areas.
0
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 40455352
I can't help too much with .NET.  But It does seem that creating a thumbnail to an image would be faster.  As a pdf is uploaded you can auto generate a jpg thumbnail.

I use image magick http://www.imagemagick.org/

Using command line http://www.imagemagick.org/script/command-line-processing.php

And I found this .net example http://imagemagick.codeplex.com/discussions/257915
using (ImageList imageList = new ImageList())
{
	imageList.ReadImages(inputFile);
	int pageIndex = 0;
	foreach (Image page in imageList)
	{
		page.Write(outputDirectory + "\\Page." + pageIndex + ".jpg");
		pageIndex++;
	}
}

using (Image firstPage = new Image())
{
	firstPage.Read(inputFile + "[0]");
	firstPage.Write(outputDirectory + "\\FirstPage.jpg");
}

Open in new window


If you can figure out how to hit the command line via .net, Image magick is very useful.
1

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question