Dear support team,
I've been trying to find out whether the SDK's code is fully reentrant or not, and haven't yet been able to find out.
I'm assuming the code isn't thread-safe, but I don't know if it's safe to assume reentrancy.
How would I go on about rendering pages to thumbnail bitmaps in memory while doing other operations (loading a page, enumerating elements)?
I'm not sure whether I need 2 instances of the library in different threads, or if I could do with only one instance using another method.
For reference, this is about the PDF-Tools SDK, version 4.0.206
Thanks in advance.
Reentrancy, thread safety, asynchronous rendering
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Stefan - PDF-XChange
-
gschell
- User
- Posts: 4
- Joined: Thu Nov 01, 2012 2:10 pm
-
John - Tracker Supp
- Site Admin
- Posts: 5225
- Joined: Tue Jun 29, 2004 10:34 am
Re: Reentrancy, thread safety, asynchronous rendering
Hi,
Firstly I must point out that none of our non viewer DLL's, ActiveX etc are capable of converting PDF pages to a thumbnail - for this task - you must use either the Simple DLL Viewer or ActiveX SDK's - and both of these products are indeed - threadsafe
Though note - they both have Royalty payments required once you reach and exceed your basic 2500 or 7500 CDLP's distribution limits provided as part of the PDF-Tools or PDF-XChange PRO SDK's - so you will need to consider this if you intend to distribute your application in excess of these numbers to end users desktops
If you need more info on CDLP's and licensing - please do not hesitate to ask.
PS
I have been advised to modify my earlier comments as follows by our Viewer Specailist;
All our SDK's except our Simple Viewer SDK are not fully thread safe when dealing with the same document, they are if dealing with different documents - there is a limitation that one document cannot be handled in several threads simulateously (however you may open a document say in thread 1, use it in thread 2, then in thread 3, but not at same time).
The Simple Viewer SDK is thread-safe (except when closing a document when another thread is using it).
HTH.
Firstly I must point out that none of our non viewer DLL's, ActiveX etc are capable of converting PDF pages to a thumbnail - for this task - you must use either the Simple DLL Viewer or ActiveX SDK's - and both of these products are indeed - threadsafe
Though note - they both have Royalty payments required once you reach and exceed your basic 2500 or 7500 CDLP's distribution limits provided as part of the PDF-Tools or PDF-XChange PRO SDK's - so you will need to consider this if you intend to distribute your application in excess of these numbers to end users desktops
If you need more info on CDLP's and licensing - please do not hesitate to ask.
PS
I have been advised to modify my earlier comments as follows by our Viewer Specailist;
All our SDK's except our Simple Viewer SDK are not fully thread safe when dealing with the same document, they are if dealing with different documents - there is a limitation that one document cannot be handled in several threads simulateously (however you may open a document say in thread 1, use it in thread 2, then in thread 3, but not at same time).
The Simple Viewer SDK is thread-safe (except when closing a document when another thread is using it).
HTH.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.
Best regards
Tracker Support
http://www.tracker-software.com
Best regards
Tracker Support
http://www.tracker-software.com