?
Solved

Need assistance/opinions with creating a PDF library page

Posted on 2014-11-20
3
Medium Priority
?
42 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
[X]
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
  • 2
3 Comments
 
LVL 53

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 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

762 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