File: zip-example2

package info (click to toggle)
ooolib-perl 0.1.9-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, lenny, squeeze, wheezy
  • size: 256 kB
  • ctags: 58
  • sloc: perl: 1,657; makefile: 89; sh: 78
file content (22 lines) | stat: -rwxr-xr-x 777 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/perl
# zip-example2 - This program creates a SXW Writer file using the zip command.

use ooolib;

# Set variables
$doc = new ooolib("sxw", "zip");
$doc->oooSet("builddir", ".");                   # Directory to create document in
$doc->oooSet("title", "Zip Command Writer");     # Title of document
$doc->oooSet("subject", "Zip Example");          # Subject of document
$doc->oooSet("author", "ooolib example");        # Set the author of the document

# User defined variables
$doc->oooSet("meta1-name", "Programmer");        # 1-4 user defined variables
$doc->oooSet("meta1-value", "Joseph Colton");    # 1-4 user defined variables

# Document
$doc->oooData("textbody", "Created using the zip command.");

$filename = $doc->oooGenerate("zip-example2.sxw");

exit;