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 Open Source Tools and Ingres Steffen Weigert International Telecommunication Union "Ingres Benutzerkonferenz in der OpenSource-World 2008" am 23. und 24. April in Kassel

2 Agenda 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 – incl. HTML, PDF, … Metasend – incl. HTML, PDF, …

3 HTMLDOC 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 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 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 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 ,iso ,koi8-r} -- charset {cp ,iso ,koi8-r} --color --color …

7 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 HTMLDOC download Source code Source code Binaries (commercial product) Binaries (commercial product)

9

10 10

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

12 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 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 Lout {BarCode Base { *$_addressid* @CurveBox { {Helvetica Bold { "IMPORTANT:" No refund or 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 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

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

18 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 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 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 Select FROM addr; # file addr.csv # file addr.csv“name”,”stadt”“Meier”,”Kassel” # convert to Excel # convert to Excel csv2xls addr.csv addr.xls

21 csv2xls download Spreadsheet-WriteExcel- 2.11/lib/Spreadsheet/WriteExcel.pm Spreadsheet-WriteExcel- 2.11/lib/Spreadsheet/WriteExcel.pm Spreadsheet-WriteExcel- 2.11/lib/Spreadsheet/WriteExcel.pm Spreadsheet-WriteExcel- 2.11/lib/Spreadsheet/WriteExcel.pm

22

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

24 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 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 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 "' -m 'text/html; charset="iso "' -n -e base64 -n -e base64 -f pdf/$taskno.pdf -f pdf/$taskno.pdf -S ' ' -S ' ' -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 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 "' -m 'text/plain; charset="iso "' -n -e base64 -n -e base64 -f pdf/$taskno.pdf -f pdf/$taskno.pdf -S ' ' -S ' ' -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 metasend download hments.html hments.html

29

30

31 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