Temp and DispFileName Properties

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

jeffp
User
Posts: 914
Joined: Wed Sep 30, 2009 6:53 pm

Temp and DispFileName Properties

Post by jeffp »

I'm noticing what appears to me to be some anomolies using the Documents[xx].Temp and Documents[xx].DispFileName properties.

1. In the context of a normal (non-Stream) open, if I then set DispFileName to a value, the Temp property doesn't seem to work anymore.

Works:
1. Open PDF
2. Set Temp to true
3. Set Modified to True
4. Try to close PDF which produces Confirm Document Save dialog.
5. Click Yes on dialog.
6. SaveAs window pops up (This is correct)

Doesn't Work;
1. Open PDF
2. Set DispFileName to another name like "Test.pdf"
3. Set Temp to true
4. Set Modified to True
5. Try to close PDF which produces Confirm Document Save dialog.
6. Click Yes on dialog.
7. No SaveAs dialog appears and PDF gets saved out original filename.

2. When loading a PDF from a Stream, if I set DispFileName to something like just "Test.pdf" (with no directory) and the set Modified to true, I would expect a Close then Save to pop us a SaveAs dialog whether or not I have set Temp to true. However, even if I set Temp to true in this case, the close followed by save just seems to save the document. And with just the DispFileName set to "Test.pdf" with no path, I have no idea where it got saved to. Note, if I just click Save without trying to close the modifed PDF, it does bring up the save as dialog. Seems to be an issue with closing a modifed pdf then trying to click yes to save it.

Am I not understanding these properties correctly?

Thanks.
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Temp and DispFileName Properties

Post by Vasyl-Tracker Dev Team »

Hi, Jeff.

You are understanding these properties correctly.
This is bug really. Thanks for your investigation.
It will be fixed in the next build.

Thanks.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.