Sorry I'm a newbie at the LO API, but how would I specify this import filter? Does this XML content belong in the value of FilterData ? EG:
loadProps[0].Value = "<node oor:name= .... " ? Thanks, Ben On Friday, April 17, 2015 11:28:51 AM V Stuart Foote wrote: > The default PDF import filter opens PDF into Draw, but the filter can also > parse into Writer and is manipulated in GUI from the LibreOffice Open/Save > dialogs. > > YMMV to do your processing, but see if this gets you closer to configuration > needed to parse your PDF for changes. > > http://opengrok.libreoffice.org/xref/core/sdext/source/pdfimport/config/pdf_ > import_filter.xcu#79 > > 79 <node oor:name="writer_pdf_import" oor:type="xs:string" > oor:op="replace"> > 80 <prop oor:name="DocumentService"> > 81 <value>com.sun.star.text.TextDocument</value> > 82 </prop> > 83 <prop oor:name="FileFormatVersion" oor:type="xs:int"> > 84 <value>0</value> > 85 </prop> > 86 <prop oor:name="FilterService" oor:type="xs:string"> > 87 > 89 <value>com.sun.star.comp.Writer.XmlFilterAdaptor</value> > 90 </prop> > 91 <prop oor:name="Flags" oor:type="oor:string-list"> > 92 <value>3RDPARTYFILTER ALIEN IMPORT PREFERRED</value> > 93 </prop> > 94 <prop oor:name="Type" oor:type="xs:string"> > 95 <value>pdf_Portable_Document_Format</value> > 96 </prop> > 97 <prop oor:name="UIName"> > 98 <value xml:lang="x-default">PDF - Portable Document Format > (Writer)</value> > 99 </prop> > 100 <prop oor:name="TemplateName"/> > 101 <prop oor:name="UIComponent"/> > 102 <prop oor:name="UserData" oor:type="oor:string-list"> > 103 > 104 <value > oor:separator=",">org.libreoffice.comp.documents.WriterPDFImport,,com.sun.st > ar.comp.Writer.XMLOasisImporter,,,,true</value> 105 </prop> > 106 </node> > > > > > -- > View this message in context: > http://nabble.documentfoundation.org/Text-find-replace-in-PDFs-using-API-tp > 4146590p4146593.html Sent from the Users mailing list archive at Nabble.com. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted