Presentation is loading. Please wait.

Presentation is loading. Please wait.

24.04.20081 Open Source Tools and Ingres Steffen Weigert International Telecommunication Union "Ingres Benutzerkonferenz.

Similar presentations


Presentation on theme: "24.04.20081 Open Source Tools and Ingres Steffen Weigert International Telecommunication Union "Ingres Benutzerkonferenz."— Presentation transcript:

1 24.04.20081 Open Source Tools and Ingres Steffen Weigert International Telecommunication Union www.itu.int Steffen.weigert@itu.int "Ingres Benutzerkonferenz in der OpenSource-World 2008" am 23. und 24. April in Kassel

2 24.04.20082Agenda HTMLDOC – creation of PDF files HTMLDOC – creation of PDF files Lout – creation of PDF files Lout – creation of PDF files csv2xls – creation of Excel files csv2xls – creation of Excel files Metasend – email incl. HTML, PDF, … Metasend – email incl. HTML, PDF, …

3 24.04.20083HTMLDOC What is HTMLDOC ? What is HTMLDOC ? How does it work ? How does it work ? HTMLDOC help HTMLDOC help HTMLDOC supports special HTML comments HTMLDOC supports special HTML comments HTMLDOC download HTMLDOC download

4 24.04.20084 What is HTMLDOC ? HTMLDOC converts Hyper-Text Markup Language ("HTML") input files into indexed HTML, Adobe ® PostScript ®, or Adobe Portable Document Format ("PDF") files. HTMLDOC converts Hyper-Text Markup Language ("HTML") input files into indexed HTML, Adobe ® PostScript ®, or Adobe Portable Document Format ("PDF") files. HTMLDOC supports most HTML 3.2 elements, some HTML 4.0 elements, and can generate title and table of contents pages. It does not currently support stylesheets. HTMLDOC supports most HTML 3.2 elements, some HTML 4.0 elements, and can generate title and table of contents pages. It does not currently support stylesheets. HTMLDOC can be used as a standalone application, in a batch document processing environment, or as a web-based report generation application. HTMLDOC can be used as a standalone application, in a batch document processing environment, or as a web-based report generation application. HTMLDOC is available both as open source software under the terms of the GNU General Public License and as commercial software under the terms of a traditional commercial End-User License Agreement. HTMLDOC is available both as open source software under the terms of the GNU General Public License and as commercial software under the terms of a traditional commercial End-User License Agreement.

5 24.04.20085 How does it work ? Server Unix script (shell commands, sqlexp, awk) PDF file htmldoc --webpage -t pdf14 in.html > out.pdf HTML file Client Web browser HTML PDF

6 24.04.20086 HTMLDOC help htmldoc –help htmldoc –help --batch filename.book --batch filename.book --bodycolor color --bodycolor color --bodyfont {courier,times,helvetica} --bodyfont {courier,times,helvetica} --bodyimage filename.{gif,jpg,png} --bodyimage filename.{gif,jpg,png} --book --book --bottom margin{in,cm,mm} --bottom margin{in,cm,mm} --browserwidth pixels --browserwidth pixels -- charset {cp-874...1258,iso-8859-1...8859-15,koi8-r} -- charset {cp-874...1258,iso-8859-1...8859-15,koi8-r} --color --color …

7 24.04.20087 HTMLDOC special HTML comments HTMLDOC supports many special HTML comments to initiate page breaks, set the header and footer text, and control the current media options: HTMLDOC supports many special HTML comments to initiate page breaks, set the header and footer text, and control the current media options: Sets the left footer text; the test is applied to the current page if empty, or the next page otherwise. Sets the left footer text; the test is applied to the current page if empty, or the next page otherwise. Sets the center footer text; the test is applied to the current page if empty, or the next page otherwise. Sets the center footer text; the test is applied to the current page if empty, or the next page otherwise. Sets the left header text; the test is applied to the current page if empty, or the next page otherwise. Sets the left header text; the test is applied to the current page if empty, or the next page otherwise. Break to the next page Break to the next page ….. …..

8 24.04.20088 HTMLDOC download http://www.htmldoc.org/software.php http://www.htmldoc.org/software.php http://www.htmldoc.org/software.php Source code Source code http://www.easysw.com/htmldoc/software.php http://www.easysw.com/htmldoc/software.php http://www.easysw.com/htmldoc/software.php Binaries (commercial product) Binaries (commercial product)

9 24.04.20089

10 10

11 24.04.200811Lout What is Lout ? What is Lout ? How does it work ? How does it work ? Lout code Lout code Lout download Lout download

12 24.04.200812 What is Lout ? Lout is a high-level language for document formatting. It includes facilities for typesetting complex documents containing floating figures, tables, diagrams, rotated and scaled text or graphics, footnotes, running headers, footers, an index, table of contents and bibliography, cross-references, mathematical equations and statistical graphs. Lout's capabilities can be extended with definitions which are easier to write than similar markup languages. Lout is a high-level language for document formatting. It includes facilities for typesetting complex documents containing floating figures, tables, diagrams, rotated and scaled text or graphics, footnotes, running headers, footers, an index, table of contents and bibliography, cross-references, mathematical equations and statistical graphs. Lout's capabilities can be extended with definitions which are easier to write than similar markup languages. Lout is multilingual, supporting (with hyphenation) Czech, Danish, Dutch, English, Finnish, French, German, Norwegian, Russia, Slovenian, Spanish and Swedish. Some of these languages are available as separate packages because they need more than the 13 standard Adobe fonts. Further languages can be added easily Lout is multilingual, supporting (with hyphenation) Czech, Danish, Dutch, English, Finnish, French, German, Norwegian, Russia, Slovenian, Spanish and Swedish. Some of these languages are available as separate packages because they need more than the 13 standard Adobe fonts. Further languages can be added easily Lout is free software, distributed under the terms of the GNU General Public License, Version 2. Documents generated by Lout is not subject to GNU GPL. However, if you were to use install and use additional fonts in your documents, please check and comply with their licensing terms. Lout is free software, distributed under the terms of the GNU General Public License, Version 2. Documents generated by Lout is not subject to GNU GPL. However, if you were to use install and use additional fonts in your documents, please check and comply with their licensing terms.

13 24.04.200813 How does it work ? Server Unix script (shell commands, sqlexp, awk, lout code) PDF file GhostScript interpreter to convert PostScript to PDF: gs -q -sDEVICE=pdfwrite - sOutputFile=- - > out.pdf Client Web browser PDF PostScript

14 24.04.200814 Lout code @LLP {BarCode Base +2p} @Font { *$_addressid* } @LLP {*$_addressid* } @LLP @LLP @CurveBox { $_addr1 @LLP $_addr2 @LLP $_addr3 } @PP @LP {Helvetica Bold +1p} @Font { "IMPORTANT:" } @IndentedDisplay { @Lozenge No refund or cancellation possible. @LP @Lozenge Please present this receipt at any visitor registration desk on-site to be issued with an entry pass. Holders of a weekly pass who registered on-line before $ers_reg_beforedate will receive their entry pass by mail. }

15 24.04.200815 Lout download Primary site Primary site ftp://ftp.cs.usyd.edu.au/jeff/lout/ ftp://ftp.cs.usyd.edu.au/jeff/lout/ ftp://ftp.cs.usyd.edu.au/jeff/lout/ Secondary site (mirror + archives) Secondary site (mirror + archives) ftp://ftp.ptc.spbu.ru/pub/textproc/lout/ ftp://ftp.ptc.spbu.ru/pub/textproc/lout/ ftp://ftp.ptc.spbu.ru/pub/textproc/lout/

16 24.04.200816

17 24.04.200817csv2xls What is csv2xls ? What is csv2xls ? How does it work ? How does it work ? code code csv2xls download csv2xls download

18 24.04.200818 What is csv2xls ? Converts text file in delimiter-separated format to Excel binary format Converts text file in delimiter-separated format to Excel binary format csv2xls is written in perl csv2xls is written in perl csv2xls This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself. csv2xls This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.

19 24.04.200819 How does it work ? Server Unix script (shell commands, sqlexp) Excel file csv2xls fi.csv fi.xls Client Web browser Excel file csv file

20 24.04.200820 Code # select data and write csv file # select data and write csv file sqlexp $DATABASE $workdir/addr.csv # convert to Excel # convert to Excel csv2xls $workdir/exh.csv $workdir/addr.xls # file export.sql # file export.sql Select '@~@name@~@','@~@stadt@~@‘; Select '@~@’+name+’@~@',‘@~@’+city+’@~@‘ FROM addr; # file addr.csv # file addr.csv“name”,”stadt”“Meier”,”Kassel” # convert to Excel # convert to Excel csv2xls addr.csv addr.xls

21 24.04.200821 csv2xls download http://www.ensoft.de/xlsgen/xlsgen.htm http://www.ensoft.de/xlsgen/xlsgen.htm http://search.cpan.org/src/JMCNAMARA/ Spreadsheet-WriteExcel- 2.11/lib/Spreadsheet/WriteExcel.pm http://search.cpan.org/src/JMCNAMARA/ Spreadsheet-WriteExcel- 2.11/lib/Spreadsheet/WriteExcel.pm http://search.cpan.org/src/JMCNAMARA/ Spreadsheet-WriteExcel- 2.11/lib/Spreadsheet/WriteExcel.pm http://search.cpan.org/src/JMCNAMARA/ Spreadsheet-WriteExcel- 2.11/lib/Spreadsheet/WriteExcel.pm

22 24.04.200822

23 24.04.200823metasend What is metasend ? What is metasend ? How does it work ? How does it work ? code code metasend download metasend download

24 24.04.200824 What is metasend ? Scripts to send mail with file attachments of different mime-types Scripts to send mail with file attachments of different mime-types From, To, CC can be set From, To, CC can be set

25 24.04.200825 How does it work ? Server Unix script (shell commands, sqlexp) Mail with attachments metasend -b -f txt, pdf, html, jpg -m Client Mail client Mail Files: txt, pdf, html, jpg, …

26 24.04.200826 Code for HTML, PDF attachment metasend -b metasend -b -e quoted-printable -e quoted-printable -f pdf/$taskno.html -f pdf/$taskno.html -m 'text/html; charset="iso-8859-1"' -m 'text/html; charset="iso-8859-1"' -n -e base64 -n -e base64 -f pdf/$taskno.pdf -f pdf/$taskno.pdf -S '5242880' -S '5242880' -m 'application/pdf; name="'"$taskno.pdf"'"' -m 'application/pdf; name="'"$taskno.pdf"'"' -F ' ' -F ' ' -t ' ' -t ' ' -c ' ' -c ' ' -s "metasend: HTML, PDF; Data Format: $format" -s "metasend: HTML, PDF; Data Format: $format"

27 24.04.200827 Code for Text, PDF attachment metasend -b metasend -b -e quoted-printable -e quoted-printable -f $taskno.txt -f $taskno.txt -m 'text/plain; charset="iso-8859-1"' -m 'text/plain; charset="iso-8859-1"' -n -e base64 -n -e base64 -f pdf/$taskno.pdf -f pdf/$taskno.pdf -S '5242880' -S '5242880' -m 'application/pdf; name="'"$taskno.pdf"'"' -m 'application/pdf; name="'"$taskno.pdf"'"' -F ' ' -F ' ' -t ' ' -t ' ' -c ' ' -c ' ' - s "metasend: HTML, PDF; Data Format: $format" - s "metasend: HTML, PDF; Data Format: $format"

28 24.04.200828 metasend download http://www.shelldorado.com/articles/mailattac hments.html http://www.shelldorado.com/articles/mailattac hments.html

29 24.04.200829

30 24.04.200830

31 24.04.200831 Questions & Answers HTMLDOC HTMLDOC Lout Lout csv2xls csv2xls metasend metasend


Download ppt "24.04.20081 Open Source Tools and Ingres Steffen Weigert International Telecommunication Union "Ingres Benutzerkonferenz."

Similar presentations


Ads by Google