Content-type: text/html
Manpage of pandascript
pandascript
Section: Misc. Reference Manual Pages (1)
Index
Return to Main Contents
NAME
pandascript --- a scriptable front end to the Panda PDF generation API
SYNOPSIS
pandascript
DESCRIPTION
pandascript is an optional scriptable front end to the Panda PDF generation API.
COMMANDS
pandascript recognizes these commands when they appear on standard input:
- output
-
Defines the name of the PDF document that you would like to create as the output of pandascript. There is currently no way of specifying standard output as the output location.
-
- filename
-
Quoted string. The name of the PDF file to be created.
- close
-
Close the document named in the output command. This includes writing out all of the PDF information that has been created during the session.
- newpage
-
Create a newpage in the PDF document. Only on page may be editted at a time, and there is no way to go backwards in the pages of the PDF, so be sure that you have finished creating the current page before issuing this command.
- imagebox
-
The equivalent of the imagebox(3) function call from the Panda API. The following arguements are required:
-
- top
-
Integer. The location of the top of the image.
- left
-
Integer. The location of the left hand side of the image.
- bottom
-
Integer. The location of the bottom of the image.
- right
-
Integer. The location of the right hand side of the image.
- filename
-
Quoted string. The name of the image file that is being inserted into the PDF file.
- type
-
The type of the image that is being inserted. One of: TIFFIMG or JPEGIMG.
- imageboxrot
-
The equivalent of the imageboxrot(3) function call from the Panda API. This is very similar to the imagebox command above, but allows for the image to be rotated on the page. The following arguements are required:
-
- top
-
Integer. The location of the top of the image.
- left
-
Integer. The location of the left hand side of the image.
- bottom
-
Integer. The location of the bottom of the image.
- right
-
Integer. The location of the right hand side of the image.
- angle
-
Floating point. The angle the image should be rotated at.
- filename
-
Quoted string. The name of the image file that is being inserted into the PDF file.
- type
-
The type of the image that is being inserted. One of: TIFFIMG or JPEGIMG.
- textbox
-
The equivalent of the textbox(3) function call from the Panda API. This inserts a text string onto the current page in the PDF document. The following arguements are required:
-
- top
-
Integer. The location of the top of the textbox.
- left
-
Integer. The location of the left hand side of the textbox.
- bottom
-
Integer. The location of the bottom of the textbox.
- right
-
Integer. The location of the right hand side of the textbox.
- text
-
Quoted string. The text to insert.
-
- setfontmode
-
Integer.
- setcharspacing
-
Float.
- setwordspacing
-
Float.
- sethorizscaling
-
Float.
- setleading
-
Float.
- setfont
-
Quoted string.
DATA TYPES
The following data types are defined for pandascript:
- Quoted string
-
This is any text, wrapped in quote characters. For example "frog" "the quick brown duck" and "wasabe is yummy".
- Integer
-
A number without a decimal point. For example 1, 42, or -461.
- Float
-
A number with a decimal point. Examples include: 1.4; 46.56; or -978.6.
EXAMPLE
There is sample code generated by demo.sh as part of the pandascript distribution.
AUTHOR
Panda and pandascript are under development by Michael Still (mikal@stillhq.com). All code is Copyright Michael Still 2000, and is released under the GPL. Code submissions are welcomed. Contact Michael at the address above if you have something you would like to contribute.
BUGS
There are no known bugs in Panda or pandascript. If you find one, please contact mikal@stillhq.com and let me know.
VERSION
This information was last updated for version 0.3 of pandascript.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- COMMANDS
-
- DATA TYPES
-
- EXAMPLE
-
- AUTHOR
-
- BUGS
-
- VERSION
-
This document was created by
man2html,
using the manual pages.
Time: 09:23:38 GMT, December 26, 2000