I am trying to fill a pdf form and then print only the form fields. I've tried coming at this from a couple angles to try and find something that works, but I have been hitting dead ends. I don't have any problem with the filling and printing part, that works fine. I am having trouble with just printing the form fields. This is an automated process so really I just need a pdf that only has the form fields 'enabled' or 'visible'. No one is going to be using the resulting pdfs, so we can use just about any technique that will accomplish the goal.
What I thought would work is that the aspose.pdf.Pdf object has a DOM that looked like I could easily go loop through all the paragraphs in all the sections in it and set the IsEnabled property to false to all objects that are not form fields. This looked promising, but I can't figure out how to load my existing pdf file into the pdf object. It looked as though the only way to do this is with the BindXml. Is there another way to load a pdf into the pdf object or is there some other way to take a pdf file and convert it into the aspose xml format and then load it into the pdf object.
If you thing there is a better way to accomplish what I am trying to do, please let me know.