I am creating a PDF file from within my ASP page.
I downloaded Adobe FDF Toolkit, registered DLLs, configured MIME types.
Now, the problem I have is that when I write a sample PDF back to the client, it is cached and when I make changes in the ASP code, the file displayed to the client is the same as before.
I am developing an online application that allows actors to post their acting resumes online, and I want to provide a way for them to export the resume to the file format that can be printed accurately, so I chose PDF. Obviously, when a user makes a change to the resume, I want the changes to be made immediately, so that they can print their updated resume. The trick is, since the PDF file is cached, it shows the old version.
Here is a sample code (it's an Adobe sample that came with FDF toolkit):
<%@ Language=VBScript %>
<%
Set FdfAcX = Server.CreateObject("FdfApp.FdfApp"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Set outputFDF = FdfAcX.FDFCreate
outputFDF.FDFSetValue "Date", "December 31 1999", False
outputFDF.FDFSetValue "Name", "John Clays", False
outputFDF.FDFSetValue "Address", "12 Saratoga Ave", False
outputFDF.FDFSetValue "City", "Saratoga", False
outputFDF.FDFSetValue "State", "CA", False
outputFDF.FDFSetFile "
Response.ContentType = "application/vnd.fdf"
Response.BinaryWrite outputFDF.FDFSaveToBuf
outputFDF.FDFClose
%>
Did anyone run into the same problem?
Is there any way I can avoid caching of PDF files
(Response.ExpiresAbsolute = #1/1/1980#
Response.AddHeader "cache-control", "no-store, must-revalidate, private"
Response.AddHeader "Pragma", "no-cache"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
does not seem to make any difference...
Thanks in advance!
<Dmitriy>
dbrom@crosswinds.net
I downloaded Adobe FDF Toolkit, registered DLLs, configured MIME types.
Now, the problem I have is that when I write a sample PDF back to the client, it is cached and when I make changes in the ASP code, the file displayed to the client is the same as before.
I am developing an online application that allows actors to post their acting resumes online, and I want to provide a way for them to export the resume to the file format that can be printed accurately, so I chose PDF. Obviously, when a user makes a change to the resume, I want the changes to be made immediately, so that they can print their updated resume. The trick is, since the PDF file is cached, it shows the old version.
Here is a sample code (it's an Adobe sample that came with FDF toolkit):
<%@ Language=VBScript %>
<%
Set FdfAcX = Server.CreateObject("FdfApp.FdfApp"
Set outputFDF = FdfAcX.FDFCreate
outputFDF.FDFSetValue "Date", "December 31 1999", False
outputFDF.FDFSetValue "Name", "John Clays", False
outputFDF.FDFSetValue "Address", "12 Saratoga Ave", False
outputFDF.FDFSetValue "City", "Saratoga", False
outputFDF.FDFSetValue "State", "CA", False
outputFDF.FDFSetFile "
Response.ContentType = "application/vnd.fdf"
Response.BinaryWrite outputFDF.FDFSaveToBuf
outputFDF.FDFClose
%>
Did anyone run into the same problem?
Is there any way I can avoid caching of PDF files
(Response.ExpiresAbsolute = #1/1/1980#
Response.AddHeader "cache-control", "no-store, must-revalidate, private"
Response.AddHeader "Pragma", "no-cache"
does not seem to make any difference...
Thanks in advance!
<Dmitriy>
dbrom@crosswinds.net