Expand my Community achievements bar.

PDF Response Opening New Window

Avatar

Former Community Member

I have a customer that is doing a form submission from a PDF but the PDF response from the server is opening a new Reader Window instead of replacing the current PDF with the new response.  The submission is done in a form inside Reader, outside of the Browser.

This is the response they send back to Reader that causes another Reader instance.

Dim content As Byte() = IO.File.ReadAllBytes("POD.pdf")

Response.Buffer = True

Response.Clear()

Response.ContentType = "application/pdf"

Response.OutputStream.Write(content, 0, content.Length)

Response.End()

Form is attached.

With the exception of some of the known issues with Acrobat, any ideas what may be causing the opening of a new Reader instance?

2 Replies

Avatar

Employee

Reader always opens a new window.

Avatar

Level 2

If you respond with XFDF/FDF/XFA XML properly built, Reader should not open a new window. This is a workflow that worked for sure from mid-1999 to late 2006, I've been hearing of problems recently but I haven't had a chance to test it with Acrobat/Reader 9.

Anyway, responding with a PDF has never been a good practice, and that behaviour doesn't surprise me.