473,387 Members | 1,290 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Embedding PDFs

polymorphic
I have a client with a large pdf catalog. The client's web site is using classic asp. The catalog is taking too long to load for users so we had decided to load one pdf page at a time via a navigation bar and embedded pdf. Unfortunately, it does not appear that caching of a pdf is allowed when embedding the pdf in a classic asp page. Is there another alternative or something I am missing?

What is the best way to manage a large .pdf? Would breaking it down into smaller sections be practical?

My code is essentially as follows:

Expand|Select|Wrap|Line Numbers
  1. <%
  2.     dim pageNum
  3.     pageNum = cint(request("page"))
  4. %>
  5. <%
  6.     Response.ExpiresAbsolute = Now() + 356
  7.     Response.AddHeader "pragma","cache"
  8.     Response.CacheControl = "cache"
  9.     Response.CacheControl = "Public"
  10. %>
  11.  
  12. --
  13.       <td width="648" colspan="2">
  14.         <%if pageNum > 1 then %>
  15.         <EMBED src="\Catalog\Page <%=(pageNum)%>.pdf" width="648" height="500"></EMBED>
  16.         <% else %>
  17.         <EMBED src="\Catalog\Page 1.pdf" width="648" height="500"></EMBED>
  18.         <% end if %>
  19.         <%Response.Write(pageNum)%>
  20.       </td>
Thanks,
cj
Jul 5 '07 #1
0 1156

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Alicia Haumann | last post by:
I accidentally sent this to webmaster@python.org, so this could be a duplicate if "webmaster" forwards it to this list. :{ Hi, there. Thanks for any help that can be offered. I've been...
6
by: Dave Karmens | last post by:
I fire the following code on Index Server (different obj) and it returns a PDFs no problem, but when I change the object to use the MSSearch for Site Server I don't get any PDFs. Anything in the...
4
by: Ragnar Heil | last post by:
Hi, I want to produce .fo-documents and now I am searching for a fo-processor which can transform them into secure pdfs. I donīt want to touch every pdf manually to set security settings like...
14
by: BlueDolphin | last post by:
Hello all. I'm looking for some opinions on using snapshot files or ..pdf for some reports. We are in the initial stages of creating some reports in access that will be pulled online through Cold...
2
by: google.groups.tr | last post by:
I have an Access 97 database that has a routine to generate a unique report as a PDF file and email it to one person, and loops about 300 times. Each instance through the loop uses a registry...
2
by: Pawan | last post by:
Hi Guys, I have this current assignment where I have to develop online forms for local municipal authorities. I have to use adobe acrobat to create online forms from PDFs (which I have never done...
3
by: Mike Kingscott | last post by:
Hi there, I'm writing an app in which a punter buys some PDFs online. After purchasing said PDFs, they will be given a token (bless them Guids) to go to a download .ASPX page from which they can...
0
by: hq4000 | last post by:
Given AStyleSheet.xsl : <AStyleSheet> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.mytest.mytest2.mytest3.com" version="1.0"> <xsl:output method="xml"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.