HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › Error: Can not open pdf files in adobe reader › Re: Re: Error: Can not open pdf files in adobe reader
June 14, 2016 at 13:23
#29880
I’ve got a temporary solution that when I’m rendering PDF file using pd4ml.render(),
the memory stream I’m using is defined under ‘using(){}’ keyword.
like following:
<br />
using(MemoryStream stream=new MemoryStream(path,FileMode.CreateNew))<br />
{<br />
pd4ml.Render(path,stream);<br />
}<br />