The spec for the PDF export dialog says "ExportFormFields" oor:type="xs:boolean" default:true Specifies whether form fields are exported as widgets or only their fixed print representation is exported.
http://specs.openoffice.org/appwide/pdf_export/PDFExportDialog.odt but it doesn't seem to actually work. I took the ooextract.py example http://udk.openoffice.org/python/samples/ooextract.py and tried to use ExportFormFields, without luck. I'm not the only one having this problem; in a Dec 2006 forum post, I see: So, has anyone been able to use OOo's writer_pdf_export filter and the "ExportFormFields" property with success? I have not had success with the following code: -- http://www.oooforum.org/forum/viewtopic.phtml?t=50504&highlight=flatten +pdf Then I found an Aug 2006 suggestion from Giuseppe Castagno http://www.mail-archive.com/[email protected]/msg03726.html Castagno's code shows a FilterData indirection, so my code now looks like: filterOptions = ( PropertyValue( "ExportFormFields", 0, False, 0), ) outProps = ( PropertyValue( "FilterName" , 0, filterName , 0 ), PropertyValue( "FilterData", 0, filterOptions, 0 ), PropertyValue( "Overwrite" , 0, True , 0 ), PropertyValue( "OutputStream", 0, OutputStream(), 0), ) but the resulting .pdf still has the form controls. It's distinctly different from what I get via the GUI, which has different shaped X's in the checkbox controls. Help? The forum post shows work-arounds involving post-processing the PDF with some iText Java library, but I'd really rather not go there. I think other people should be able to reproduce the bug with the details that I attached to an ubuntu bug report... https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/118789 -- Dan Connolly, W3C http://www.w3.org/People/Connolly/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
