summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2021-11-06 05:50:57 -0300
committerOlivier Hallot <olivier.hallot@libreoffice.org>2021-11-07 12:53:03 +0100
commit982f985d2a8e8f429d147eb158b89c73bd60f2ae (patch)
treeb88746ac5e80448c016778a0834b956ab09b75e9
parent5ee4d72936eff5346ed85ccb4958801a44f712f0 (diff)
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>
-rwxr-xr-xhelpers/convertfilters.py2
-rw-r--r--source/text/shared/guide/convertfilters.xhp248
2 files changed, 249 insertions, 1 deletions
diff --git a/helpers/convertfilters.py b/helpers/convertfilters.py
index 3dd5922602..8f4d4b5cc9 100755
--- a/helpers/convertfilters.py
+++ b/helpers/convertfilters.py
@@ -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
diff --git a/source/text/shared/guide/convertfilters.xhp b/source/text/shared/guide/convertfilters.xhp
index b46c90d3f6..8a6442dacb 100644
--- a/source/text/shared/guide/convertfilters.xhp
+++ b/source/text/shared/guide/convertfilters.xhp
@@ -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">&quot;draw_pdf_import&quot;</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">&quot;impress_pdf_import&quot;</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">&quot;writer_pdf_import&quot;</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">&quot;writer_pdf_addstream_import&quot;</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">&quot;impress_pdf_addstream_import&quot;</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">&quot;draw_pdf_addstream_import&quot;</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">&quot;calc_pdf_addstream_import&quot;</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">&quot;ADO Rowset XML&quot;</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">&quot;DocBook File&quot;</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">&quot;MS Excel 2003 XML&quot;</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">&quot;MS Word 2003 XML&quot;</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">&quot;XHTML Calc File&quot;</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">&quot;XHTML Draw File&quot;</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">&quot;XHTML Impress File&quot;</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">&quot;XHTML Writer File&quot;</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">&quot;UOF text&quot;</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">&quot;UOF spreadsheet&quot;</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">&quot;UOF presentation&quot;</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> \ No newline at end of file