Solved

Need assistance/opinions with creating a PDF library page

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
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.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

705 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now