|
Rank: Member Groups: Member
Joined: 10/6/2014 Posts: 21
|
Is it possible to avoid Adobe Reader asking for save after viewing a PDF that is converted from an HTML containing input fields?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
I am not sure if I understand your question correctly. The HTML to PDF converter does not generate input fields. So a PDF file directly converted from HTML will not have any input field.
Also what do you mean by Adobe Reader asking for save? Do you mean when the PDF file is viewed in a browser, then when you close the browser window you will get a message box asking whether you want to save your changes?
Thanks!
|
|
Rank: Member Groups: Member
Joined: 10/6/2014 Posts: 21
|
Yes. There has been no editing/changes, so why does it ask about saving? PDFs genereated by our previous converter product did not get this behaviour.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Can you send us a test file/project? Also please let us know how you created the input fields since the HTML to PDF converter does not create input fields.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 10/6/2014 Posts: 21
|
Hi. While trying to give you a simple demo I found the bug in our code. We did:
MemoryStream memoryStream = new MemoryStream(); pdfDoc.Save(memoryStream); return memoryStream.GetBuffer();
But we should have used ToArray() rather than GetBuffer(). Strange that it didn’t make Adobe Reader crash. Sorry about that.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
No problem. Glad that you found out the root of the problem. Please feel free to let us know if there is anything else.
|
|