Solved

Need assistance/opinions with creating a PDF library page

Posted on 2014-11-20
3
36 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…

803 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