The form has to be served using the LiveCycle Forms service. There is a renderFormGuide operation on that service that will take care of rendering an XDP template into a Form Guide.

Now when the Form Guide is rendered, it has a button so you can switch between the Guide and the PDF version. You'll have to use the digital signature on the PDF. Digital signatures won't work in the Guide.