Hi,
When I use PDF-XChange Viewer SDK via C# for export pdf to image, SDK make pxv????.tmp file to C:/Windows/Temp directory.
I'd like to change TEMP directory path(ex:D drive) because of C-Drive lack of disk-space.
How can I set new TEMP path using SDK API while program running?
I don't want to change system env variable value permanently.
Best regards,
How to change TEMP folder for making .tmp file?
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 5
- Joined: Mon Jul 02, 2012 6:30 am
-
- Site Admin
- Posts: 19876
- Joined: Mon Jan 12, 2009 8:07 am
Re: How to change TEMP folder for making .tmp file?
Hello ys group,
I am afraid that the Viewer (and the AX) does not support custom temporary folders, but a workaround my colleagues offered is to:
Start PDF-X Viewer as COM server manually (<PDF-X Viewer install dir>\PDFXCview.exe /Embedding) having specified the appropriate value for TEMP and TMP environment variables for the launching process (the child processes will inherit the environment variables by default) or specifically for the PDF-X Viewer process.
But you have to make sure there is no PDF-X COM server already running.
In the PDF-X Editor's SDK there would be a native way of changing the temporary folder.
Best,
Stefan
I am afraid that the Viewer (and the AX) does not support custom temporary folders, but a workaround my colleagues offered is to:
Start PDF-X Viewer as COM server manually (<PDF-X Viewer install dir>\PDFXCview.exe /Embedding) having specified the appropriate value for TEMP and TMP environment variables for the launching process (the child processes will inherit the environment variables by default) or specifically for the PDF-X Viewer process.
But you have to make sure there is no PDF-X COM server already running.
In the PDF-X Editor's SDK there would be a native way of changing the temporary folder.
Best,
Stefan