Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Need assistance/opinions with creating a PDF library page

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
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…

840 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