I m rendering PDFs using PD4ml from Memory stream.
After rendering PDF I’ve tried to open that file using File.Open() method.
But only once I’ve got an error like following :
“There was an error opening document. This file is damaged and could not be repaired.”
In my log an exception of “The type initializer for ‘org.zefer.html.doc.css.CssRuntime’ threw an exception” is stored. But I’m not sure that this is the reason I’m just assuming that this could be the reason.
But the problem is that this issue can’t be reproduced in my system. That’s why I can’t get the reason and a proper solution.
Yes the reason for CSS.runtime is got. There is a dll needed called CSSParser.dll that I’ve put.
But solution for error of opening PDF files is still cant be reached.
But my concerned person told me that there in an exe called w3wp for generating PDFs when multiple users tried to Generate PDFs at the same time this exe is conflicting and an error is thrown when opening PDFs.
So I want a solution so that I can avoid this conflict of exe when multiple users tried to generate PDFs at the same time.
So kindly let me know what should I do about that.
w3wp.exe does not belong to PD4ML – please contact its authors.
Please note – PD4ML is thread-safe but not re-enterrant. That means you cannot access the same PD4ML instance from multiple threads at the same time. Create an instance for each HTML->PDF conversion request.