You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdfium
Hi community,
It is known that pdfium is not thread safe. But I'm wondering if the method FPDF_LoadCustomDocument is OK to be used in parallel processing scenarios? We want to check PDF file's validity in a service using this method. I did a simple test locally and examined the source code. The answer seems a yes to me but I'd still like to get a more solid confirmation. :) Or any other suggestion regading PDF validity check is welcomed.
Your help is very much appreciated!
Thanks,
Zifei
Lei Zhang
unread,
Jan 10, 2019, 7:54:34 PM1/10/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Zifei QIAN, pdfium
You shouldn't assume PDFium is thread-safe anywhere. Even if the
current implementation is to some degree, there is no guarantee that
won't change in the future. If you want to do parallel processing,
consider going multi-process instead of multi-thread.