Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).


New Forum | Previous | Next | (P-PDF) Developers


Topic: setFile Java-does it use pdf in server, or locally cached pdf???
Conf: (P-PDF) Developers, Msg: 92983
From: sgho
Date: 7/26/2003 01:35 AM

Does setFile(http://www.myDomain.com/PDF/my.pdf) method in Java FDF Tool kit always opens a file from the server, or does it open that file from user's compueter's cache, if that file is available in user's cache and is the same as the file in server?

PDF file will get cached in C:\Documents And Settings\myProfile\TemporaryInternetFiles\my.pdf - unless the cache is cleared.

Code below sets values to pdf file:

FDFDoc f = new FDFDoc();
f.SetValue("field1", "AAA");
f.SetFile(http://www.myDomain.com/PDF/my.pdf);

Question is:
Will setFile method set value in the cached file (C:\Documents And Settings\myProfile\TemporaryInternetFiles\my.pdf ) or, will it always set values in the file in the server?

I want to make sure that a new pdf file is not downloaded on user's computer, unless the file in server is different from the file in cache (C:\Documents....). Any browser (IE, Netscape etc.) will do conditional get based on last modified time and will use cached copy of the pdf, instead of downloading it again from the server.

So, does the line below:
setFile(http://www.myDomain.com/PDF/my.pdf)

use the cached copy of the pdf or, does it always retrieve the pdf file from the server?
Thanks,
Sam
sgho@aol.com

PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Back to the past, 15 years ago! Open Publish 2002

Looking back to 2002, it's amazing how much of the prediction became a reality. Take a read and see what you think!

September 14, 2017
Platinum Sponsor





Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.

Features

Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.