6

The Problem

I have a 35mb PDF file with 130 pages that I need to put online so that people can print off different sections from it each week.

I host the PDF file on Amazon S3 now and have been told that the users don't like to have to wait on the whole file to download before they choose which pages they want to print.

I assume I am going to have to get creative and output the whole magazine to JPGs and get a neat viewer or find another service like ISSUU that doesn't suck.

The Requirements and Situation

I am given 130 single page PDF Files each week (All together this makes up The Magazine).

  • Users can browse the Magazine
  • Users can print a few pages.
  • Can Pay
  • Automated Process

Things I've tried

  • Google Docs Viewer - Get an Error, Sorry, we are unable to retrieve the document for viewing or you don't have permission to view the document.
  • ISSUU.com - They make my users log in to print. No way to automate the upload/conversion.
  • FlexPaper - Uses SWFTools (see next)
  • SWFTools - File is too complex error.
  • Hosting PDF File with an Image Preview of Cover - Users say having to download the whole file before viewing it is too slow. (I can't get new users. =()

Anyone have a solution to this? Or a fix for something I have tried already?

5
  • 1
    separate the PDF into multiple smaller files is not a valid option ? Yes, you need to program the view mechanism, but overall you'll improve performance.
    – BigMike
    Jan 23, 2012 at 19:49
  • Users don't want to download a 35mb document just to look at a single page? Hard to believe. Jan 23, 2012 at 20:00
  • Each user owns 2-10 pages in the document. They usually want to print these when the new one comes out. I don't have a way of knowing which pages belong to whom without looking at it though. Also, I thought Adobe would load the first couple pages and let you view it while it loaded the rest. Did they change this or do I need to do something different?
    – Jason
    Jan 23, 2012 at 20:12
  • Are you married to Amazon S3, or is there a chance of using a Linux server that you have root rights on (or at least, can install new software?)
    – Pekka
    Jan 23, 2012 at 20:30
  • 3
    I am married to something that I don't have to manage, worry about bandwidth, and uptime.
    – Jason
    Jan 23, 2012 at 20:40

3 Answers 3

3

PDF documents can be optimized for downloading through the web, this process is known as PDF Linearization. If you have control over the PDF files you are going to use, you could try to optimize them as linearized PDF files. There are many tools that can help you on this task, just to name a few:

Another option could be to split your file in sections and only deliver each section to its "owner". For the rest of the information, you can put bookmarks linking to the other sections, so that they can be retrieved also if needed. For example:

enter image description here

If the linearization was not enough and you do not have a way to know how to split the file, you could try to split it by page numbers and create bookmarks like these:

-Pages 1-100
-Pages 101-200
-Pages 201-300
...
-Pages 901-1000
-All pages*

The last bookmark is for the ambitious guy that wants to have the whole thing by all means.

And of course you can combine the two approaches and deliver each section as a linearized PDF.

1
  • "Another option could be to split your file in sections and only deliver each section to its "owner"" That is what I really would like to do. But I don't have the info needed to do that. I think that optimization will help out a lot. The files I start with are pretty large and optimized for print.
    – Jason
    Jan 24, 2012 at 16:17
2

Blankasaurus,

Based on what you've tried, it looks like you are willing to prep the document(s) or I wouldn't suggest this. See if it'll meet your needs... Download ColdFusion and install locally on your PC/VM. You can use CF's cfpdf function to automatically create "thumbnails" (you can set the size) of each of the pages without so much work. Then load it into your favorite gallery script with links to the individual PDFs. Convaluted, I know, but it shouldn't take more than 10 mins once you get the gallery script working.

2
  • It may come to this. The thing I don't like about this is that printing more than a couple of pages will be pretty annoying. Thanks for the suggestion.
    – Jason
    Jan 23, 2012 at 22:19
  • Yeah, I can see that too. YMS may have you on the right track, but in case that doesn't work for you I'll just take this idea a bit further... I've done something similar in CF and in PHP (sorry, not .NET... yet) If you create the thumbnails, put checkboxes next to the thumbs, and let the users check off the pages they want, they can submit and you can merge the individual PDFs into one and initiate the download of the merged file (I saw PDF# has merge ability). They get all the pages they want and can print in one doc, you get the performance boost of not indiscriminately sending 35mb.
    – AlexC
    Jan 24, 2012 at 14:26
0

I would recommend splitting the pdf into pages and then using a web based viewer to publish them online. FlexPaper has many open source tools such as pdf2json, pdftoimage to help out with the publishing. Have a look at our examples here:

http://flexpaper.devaldi.com/demo/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.