forked from amazingfate/help
tdf#140781 Add PDF + XSLT import API names for CLI
* amended python script * regenerated convert Help page Change-Id: I4891491d87b4b21c2d103b9df2adb03a21aff790 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/124787 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
This commit is contained in:
@ -32,7 +32,7 @@ if not os.path.exists(registry_dir):
|
||||
print(f"{registry_dir} does not exist. Make sure you have built the core repo before running this script")
|
||||
sys.exit(1)
|
||||
|
||||
modules = ["writer.xcd","calc.xcd","impress.xcd","draw.xcd","math.xcd","base.xcd","graphicfilter.xcd"]
|
||||
modules = ["writer.xcd","calc.xcd","impress.xcd","draw.xcd","math.xcd","base.xcd","graphicfilter.xcd","pdfimport.xcd","xsltfilter.xcd"]
|
||||
|
||||
def gen_id(apiname):
|
||||
'''This function accepts module name and an API Name of the filter, and then generate
|
||||
|
||||
@ -1750,5 +1750,253 @@
|
||||
</tablerow>
|
||||
</table>
|
||||
</section>
|
||||
<section id="filterspdfimport">
|
||||
<bookmark xml-lang="en-US" branch="index" id="bm_000pdfimport">
|
||||
<bookmark_value>command line document conversion; filters for PDFIMPORT</bookmark_value>
|
||||
</bookmark>
|
||||
<h2 id="hd_000pdfimport">Filters for PDFIMPORT</h2>
|
||||
<table id="filternames_tbl_pdfimport">
|
||||
<tablerow>
|
||||
<tablecell>
|
||||
<paragraph role="tablehead" localize="false" id="hd_111pdfimport">
|
||||
<embedvar href="text/shared/guide/convertfilters.xhp#filtername" markup="ignore"/>
|
||||
</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="tablehead" localize="false" id="hd_apiname_pdfimport">
|
||||
<embedvar href="text/shared/guide/convertfilters.xhp#apiname" markup="ignore"/>
|
||||
</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="tablehead" localize="false" id="hd_222pdfimport">
|
||||
<embedvar href="text/shared/guide/convertfilters.xhp#mediatype" markup="ignore"/>
|
||||
</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
<tablerow>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="FilterName_draw_pdf_import">PDF - Portable Document Format (Draw)</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="APIName_draw_pdf_import" localize="false">"draw_pdf_import"</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="MediaType_draw_pdf_import" localize="false">application/pdf (pdf)</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
<tablerow>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="FilterName_impress_pdf_import">PDF - Portable Document Format (Impress)</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="APIName_impress_pdf_import" localize="false">"impress_pdf_import"</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="MediaType_impress_pdf_import" localize="false">application/pdf (pdf)</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
<tablerow>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="FilterName_writer_pdf_import">PDF - Portable Document Format (Writer)</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="APIName_writer_pdf_import" localize="false">"writer_pdf_import"</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="MediaType_writer_pdf_import" localize="false">application/pdf (pdf)</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
<tablerow>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="FilterName_writer_pdf_addstream_import">PDF - Portable Document Format</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="APIName_writer_pdf_addstream_import" localize="false">"writer_pdf_addstream_import"</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="MediaType_writer_pdf_addstream_import" localize="false">application/pdf (pdf)</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
<tablerow>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="FilterName_impress_pdf_addstream_import">PDF - Portable Document Format</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="APIName_impress_pdf_addstream_import" localize="false">"impress_pdf_addstream_import"</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="MediaType_impress_pdf_addstream_import" localize="false">application/pdf (pdf)</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
<tablerow>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="FilterName_draw_pdf_addstream_import">PDF - Portable Document Format</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="APIName_draw_pdf_addstream_import" localize="false">"draw_pdf_addstream_import"</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="MediaType_draw_pdf_addstream_import" localize="false">application/pdf (pdf)</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
<tablerow>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="FilterName_calc_pdf_addstream_import">PDF - Portable Document Format</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="APIName_calc_pdf_addstream_import" localize="false">"calc_pdf_addstream_import"</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="MediaType_calc_pdf_addstream_import" localize="false">application/pdf (pdf)</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
</table>
|
||||
</section>
|
||||
<section id="filtersxsltfilter">
|
||||
<bookmark xml-lang="en-US" branch="index" id="bm_000xsltfilter">
|
||||
<bookmark_value>command line document conversion; filters for XSLTFILTER</bookmark_value>
|
||||
</bookmark>
|
||||
<h2 id="hd_000xsltfilter">Filters for XSLTFILTER</h2>
|
||||
<table id="filternames_tbl_xsltfilter">
|
||||
<tablerow>
|
||||
<tablecell>
|
||||
<paragraph role="tablehead" localize="false" id="hd_111xsltfilter">
|
||||
<embedvar href="text/shared/guide/convertfilters.xhp#filtername" markup="ignore"/>
|
||||
</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="tablehead" localize="false" id="hd_apiname_xsltfilter">
|
||||
<embedvar href="text/shared/guide/convertfilters.xhp#apiname" markup="ignore"/>
|
||||
</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="tablehead" localize="false" id="hd_222xsltfilter">
|
||||
<embedvar href="text/shared/guide/convertfilters.xhp#mediatype" markup="ignore"/>
|
||||
</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
<tablerow>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="FilterName_ADO_Rowset_XML">ADO Rowset XML</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="APIName_ADO_Rowset_XML" localize="false">"ADO Rowset XML"</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="MediaType_ADO_Rowset_XML" localize="false">None (xml)</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
<tablerow>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="FilterName_DocBook_File">DocBook</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="APIName_DocBook_File" localize="false">"DocBook File"</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="MediaType_DocBook_File" localize="false">application/docbook+xml (xml)</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
<tablerow>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="FilterName_MS_Excel_2003_XML">Microsoft Excel 2003 XML</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="APIName_MS_Excel_2003_XML" localize="false">"MS Excel 2003 XML"</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="MediaType_MS_Excel_2003_XML" localize="false">None (xml xls)</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
<tablerow>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="FilterName_MS_Word_2003_XML">Word 2003 XML</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="APIName_MS_Word_2003_XML" localize="false">"MS Word 2003 XML"</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="MediaType_MS_Word_2003_XML" localize="false">None (xml doc)</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
<tablerow>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="FilterName_XHTML_Calc_File">XHTML</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="APIName_XHTML_Calc_File" localize="false">"XHTML Calc File"</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="MediaType_XHTML_Calc_File" localize="false">application/xhtml+xml (html xhtml)</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
<tablerow>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="FilterName_XHTML_Draw_File">XHTML</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="APIName_XHTML_Draw_File" localize="false">"XHTML Draw File"</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="MediaType_XHTML_Draw_File" localize="false">application/xhtml+xml (html xhtml)</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
<tablerow>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="FilterName_XHTML_Impress_File">XHTML</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="APIName_XHTML_Impress_File" localize="false">"XHTML Impress File"</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="MediaType_XHTML_Impress_File" localize="false">application/xhtml+xml (html xhtml)</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
<tablerow>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="FilterName_XHTML_Writer_File">XHTML</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="APIName_XHTML_Writer_File" localize="false">"XHTML Writer File"</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="MediaType_XHTML_Writer_File" localize="false">application/xhtml+xml (html xhtml)</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
<tablerow>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="FilterName_UOF_text">Unified Office Format text</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="APIName_UOF_text" localize="false">"UOF text"</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="MediaType_UOF_text" localize="false">None (uot;uof)</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
<tablerow>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="FilterName_UOF_spreadsheet">Unified Office Format spreadsheet</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="APIName_UOF_spreadsheet" localize="false">"UOF spreadsheet"</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="MediaType_UOF_spreadsheet" localize="false">None (uos;uof)</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
<tablerow>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="FilterName_UOF_presentation">Unified Office Format presentation</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="APIName_UOF_presentation" localize="false">"UOF presentation"</paragraph>
|
||||
</tablecell>
|
||||
<tablecell>
|
||||
<paragraph role="table_font_small paragraph" id="MediaType_UOF_presentation" localize="false">None (uop;uof)</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
</table>
|
||||
</section>
|
||||
</body>
|
||||
</helpdocument>
|
||||
Reference in New Issue
Block a user