public final class pdflib extends java.lang.Object implements IpCOS
Constructor and Description |
---|
pdflib()
Create a new PDFlib object.
|
Modifier and Type | Method and Description |
---|---|
void |
activate_item(int id)
Activate a previously created structure element or other content item.
|
void |
add_nameddest(java.lang.String name,
java.lang.String optlist)
Create a named destination on a page in the document.
|
int |
add_path_point(int path,
double x,
double y,
java.lang.String type,
java.lang.String optlist)
Add a point to a new or existing path object.
|
int |
add_portfolio_file(int folder,
java.lang.String filename,
java.lang.String optlist)
Add a file to a portfolio folder or a package.
|
int |
add_portfolio_folder(int parent,
java.lang.String foldername,
java.lang.String optlist)
Add a folder to a new or existing portfolio.
|
int |
add_table_cell(int table,
int column,
int row,
java.lang.String text,
java.lang.String optlist)
Add a cell to a new or existing table.
|
int |
add_textflow(int textflow,
java.lang.String text,
java.lang.String optlist)
Create a Textflow object, or add text and explicit options to an existing Textflow.
|
void |
align(double dx,
double dy)
Align the coordinate system with a relative vector.
|
void |
arc(double x,
double y,
double r,
double alpha,
double beta)
Draw a counterclockwise circular arc segment.
|
void |
arcn(double x,
double y,
double r,
double alpha,
double beta)
Draw a clockwise circular arc segment.
|
int |
begin_document(java.lang.String filename,
java.lang.String optlist)
Create a new PDF file subject to various options.
|
void |
begin_dpart(java.lang.String optlist)
Create a new node in the document part hierarchy (requires PDF/VT or PDF 2.0).
|
void |
begin_font(java.lang.String fontname,
double a,
double b,
double c,
double d,
double e,
double f,
java.lang.String optlist)
Start a Type 3 font definition.
|
void |
begin_glyph_ext(int uv,
java.lang.String optlist)
Start a glyph definition for a Type 3 font.
|
int |
begin_item(java.lang.String tagname,
java.lang.String optlist)
Open a structure element or other content item with attributes supplied as options.
|
void |
begin_layer(int layer)
Start a layer for subsequent output on the page.
|
void |
begin_mc(java.lang.String tagname,
java.lang.String optlist)
Begin a marked content sequence with optional properties.
|
void |
begin_page_ext(double width,
double height,
java.lang.String optlist)
Add a new page to the document, and specify various options.
|
int |
begin_pattern_ext(double width,
double height,
java.lang.String optlist)
Start a pattern definition with options.
|
int |
begin_template_ext(double width,
double height,
java.lang.String optlist)
Start a template definition.
|
void |
circle(double x,
double y,
double r)
Draw a circle.
|
void |
circular_arc(double x1,
double y1,
double x2,
double y2)
Draw a circular arc segment defined by three points.
|
void |
clip()
Use the current path as clipping path, and terminate the path.
|
void |
close_font(int font)
Close an open font handle which has not yet been used in the document.
|
void |
close_graphics(int graphics)
Close vector graphics.
|
void |
close_image(int image)
Close an image or template.
|
void |
close_pdi_document(int doc)
Close all open PDI page handles, and close the input PDF document.
|
void |
close_pdi_page(int page)
Close the page handle and free all page-related resources.
|
void |
closepath_fill_stroke()
Close the path, fill, and stroke it.
|
void |
closepath_stroke()
Close the path, and stroke it.
|
void |
closepath()
Close the current path.
|
void |
concat(double a,
double b,
double c,
double d,
double e,
double f)
Apply a transformation matrix to the current coordinate system.
|
void |
continue_text(java.lang.String text)
Print text at the next line.
|
java.lang.String |
convert_to_unicode(java.lang.String inputformat,
byte[] inputstring,
java.lang.String optlist)
Convert a string in an arbitrary encoding to a Unicode string in various formats.
|
int |
create_3dview(java.lang.String username,
java.lang.String optlist)
Create a 3D view.
|
int |
create_action(java.lang.String type,
java.lang.String optlist)
Create an action which can be applied to various objects and events.
|
void |
create_annotation(double llx,
double lly,
double urx,
double ury,
java.lang.String type,
java.lang.String optlist)
Create an annotation on the current page.
|
int |
create_bookmark(java.lang.String text,
java.lang.String optlist)
Create a bookmark subject to various options.
|
int |
create_devicen(java.lang.String optlist)
Create a DeviceN colorspace with an arbitrary number of color components.
|
void |
create_field(double llx,
double lly,
double urx,
double ury,
java.lang.String name,
java.lang.String type,
java.lang.String optlist)
Create a new form field or fill an imported form field.
|
void |
create_fieldgroup(java.lang.String name,
java.lang.String optlist)
Create a form field group subject to various options.
|
int |
create_gstate(java.lang.String optlist)
Create a graphics state object subject to various options.
|
void |
create_pvf(java.lang.String filename,
byte[] data,
java.lang.String optlist)
Create a named virtual read-only file from data provided in memory.
|
int |
create_textflow(java.lang.String text,
java.lang.String optlist)
Create a Textflow object from text contents, inline options, and explicit options.
|
void |
curveto(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
Draw a Bezier curve from the current point, using 3 more control points.
|
int |
define_layer(java.lang.String name,
java.lang.String optlist)
Create a new layer definition.
|
void |
delete_path(int path)
Delete a path object.
|
int |
delete_pvf(java.lang.String filename)
Delete a named virtual file and free its data structures (but not the contents).
|
void |
delete_table(int table,
java.lang.String optlist)
Delete a table and all associated data structures.
|
void |
delete_textflow(int textflow)
Delete a textflow and all associated data structures.
|
void |
delete()
Delete a PDFlib object and free all internal resources.
|
int |
download(java.lang.String filename,
java.lang.String optlist)
Download data from a network resource and store it in a disk-based or virtual file.
|
void |
draw_path(int path,
double x,
double y,
java.lang.String optlist)
Draw a path object.
|
void |
ellipse(double x,
double y,
double rx,
double ry)
Draw an ellipse.
|
void |
elliptical_arc(double x,
double y,
double rx,
double ry,
java.lang.String optlist)
Draw an elliptical arc segment from the current point.
|
void |
encoding_set_char(java.lang.String encoding,
int slot,
java.lang.String glyphname,
int uv)
Add a glyph name and/or Unicode value to a custom 8-bit encoding.
|
void |
end_document(java.lang.String optlist)
Close the generated PDF document and apply various options.
|
void |
end_dpart(java.lang.String optlist)
Close a node in the document part hierarchy (requires PDF/VT or PDF 2.0).
|
void |
end_font()
Terminate a Type 3 font definition.
|
void |
end_glyph()
Terminate a glyph definition for a Type 3 font.
|
void |
end_item(int id)
Close a structure element or other content item.
|
void |
end_layer()
Deactivate all active layers.
|
void |
end_mc()
End the least recently opened marked content sequence.
|
void |
end_page_ext(java.lang.String optlist)
Finish a page, and apply various options.
|
void |
end_pattern()
Finish a pattern definition.
|
void |
end_template_ext(double width,
double height)
Finish a template definition.
|
void |
endpath()
End the current path without filling or stroking it.
|
int |
fill_graphicsblock(int page,
java.lang.String blockname,
int graphics,
java.lang.String optlist)
Fill a graphics block with variable data according to its properties.
|
int |
fill_imageblock(int page,
java.lang.String blockname,
int image,
java.lang.String optlist)
Fill an image block with variable data according to its properties.
|
int |
fill_pdfblock(int page,
java.lang.String blockname,
int contents,
java.lang.String optlist)
Fill a PDF block with variable data according to its properties.
|
void |
fill_stroke()
Fill a Textline or Textflow Block with variable data according to its properties.
|
int |
fill_textblock(int page,
java.lang.String blockname,
java.lang.String text,
java.lang.String optlist)
Fill a Textline or Textflow Block with variable data according to its properties.
|
void |
fill()
Fill the interior of the path with the current fill color.
|
void |
fit_graphics(int graphics,
double x,
double y,
java.lang.String optlist)
Place vector graphics on a content stream, subject to various options.
|
void |
fit_image(int image,
double x,
double y,
java.lang.String optlist)
Place an image or template on the page, subject to various options.
|
void |
fit_pdi_page(int page,
double x,
double y,
java.lang.String optlist)
Place an imported PDF page on the page subject to various options.
|
java.lang.String |
fit_table(int table,
double llx,
double lly,
double urx,
double ury,
java.lang.String optlist)
Fully or partially place a table on the page.
|
java.lang.String |
fit_textflow(int textflow,
double llx,
double lly,
double urx,
double ury,
java.lang.String optlist)
Format the next portion of a Textflow.
|
void |
fit_textline(java.lang.String text,
double x,
double y,
java.lang.String optlist)
Place a single line of text at position (x, y) subject to various options.
|
java.lang.String |
get_apiname()
Get the name of the API method which threw the last exception or failed.
|
byte[] |
get_buffer()
Get the contents of the PDF output buffer.
|
java.lang.String |
get_errmsg()
Get the text of the last thrown exception or the reason of a failed method call.
|
int |
get_errnum()
Get the number of the last thrown exception or the reason of a failed method call.
|
double |
get_option(java.lang.String keyword,
java.lang.String optlist)
Retrieve some option or other value.
|
java.lang.String |
get_string(int idx,
java.lang.String optlist)
Retrieve a string value.
|
double |
info_font(int font,
java.lang.String keyword,
java.lang.String optlist)
Query detailed information about a loaded font.
|
double |
info_graphics(int graphics,
java.lang.String keyword,
java.lang.String optlist)
Format vector graphics and query metrics and other properties.
|
double |
info_image(int image,
java.lang.String keyword,
java.lang.String optlist)
Format an image and query metrics and other image properties.
|
double |
info_matchbox(java.lang.String boxname,
int num,
java.lang.String keyword)
Query information about a matchbox on the current page.
|
double |
info_path(int path,
java.lang.String keyword,
java.lang.String optlist)
Query the results of drawing a path object without actually drawing it.
|
double |
info_pdi_page(int page,
java.lang.String keyword,
java.lang.String optlist)
Perform formatting calculations for a PDI page and query the resulting metrics.
|
double |
info_pvf(java.lang.String filename,
java.lang.String keyword)
Query properties of a virtual file or the PDFlib Virtual Filesystem (PVF).
|
double |
info_table(int table,
java.lang.String keyword)
Query table information related to the most recently placed table instance.
|
double |
info_textflow(int textflow,
java.lang.String keyword)
Query the current state of a Textflow.
|
double |
info_textline(java.lang.String text,
java.lang.String keyword,
java.lang.String optlist)
Perform textline formatting without creating output and query the resulting metrics.
|
void |
lineto(double x,
double y)
Draw a line from the current point to another point.
|
int |
load_3ddata(java.lang.String filename,
java.lang.String optlist)
Load a 3D model from a disk-based or virtual file.
|
int |
load_asset(java.lang.String type,
java.lang.String filename,
java.lang.String optlist)
Load a multimedia asset or file attachment from a file or URL.
|
int |
load_font(java.lang.String fontname,
java.lang.String encoding,
java.lang.String optlist)
Search for a font and prepare it for later use.
|
int |
load_graphics(java.lang.String type,
java.lang.String filename,
java.lang.String optlist)
Open a disk-based or virtual vector graphics file subject to various options.
|
int |
load_iccprofile(java.lang.String profilename,
java.lang.String optlist)
Search for an ICC profile, and prepare it for later use.
|
int |
load_image(java.lang.String imagetype,
java.lang.String filename,
java.lang.String optlist)
Open a disk-based or virtual image file subject to various options.
|
int |
makespotcolor(java.lang.String spotname)
Find a built-in spot color name, or make a named spot color from the current fill color.
|
void |
mc_point(java.lang.String tagname,
java.lang.String optlist)
Add a marked content point with optional properties.
|
void |
moveto(double x,
double y)
Set the current point for graphics output.
|
int |
open_pdi_document(java.lang.String filename,
java.lang.String optlist)
Open a disk-based or virtual PDF document and prepare it for later use.
|
int |
open_pdi_page(int doc,
int pagenumber,
java.lang.String optlist)
Prepare a page for later use with PDF_fit_pdi_page().
|
void |
pcos_close_document(int doc,
java.lang.String optlist)
Close PLOP input document via the IpCOS interface.
|
double |
pcos_get_number(int doc,
java.lang.String path)
Get the value of a pCOS path with type number or boolean.
|
byte[] |
pcos_get_stream(int doc,
java.lang.String optlist,
java.lang.String path)
Get the contents of a pCOS path with type stream, fstream, or string.
|
java.lang.String |
pcos_get_string(int doc,
java.lang.String path)
Get the value of a pCOS path with type name, number, string, or boolean.
|
int |
pcos_open_document(java.lang.String filename,
java.lang.String optlist)
Open a disk-based or virtual PDF document via the IpCOS interface.
|
void |
poca_delete(int container,
java.lang.String optlist)
Delete a PDF container object.
|
void |
poca_insert(int container,
java.lang.String optlist)
Insert a simple or container object in a PDF container object.
|
int |
poca_new(java.lang.String optlist)
Create a new PDF container object of type dictionary or array and insert objects.
|
void |
poca_remove(int container,
java.lang.String optlist)
Remove a simple or container object from a PDF container object.
|
int |
process_pdi(int doc,
int page,
java.lang.String optlist)
Process certain elements of an imported PDF document.
|
void |
rect(double x,
double y,
double width,
double height)
Draw a rectangle.
|
void |
restore()
Restore the most recently saved graphics state from the stack.
|
void |
resume_page(java.lang.String optlist)
Resume a page to add more content to it.
|
void |
rotate(double phi)
Rotate the coordinate system.
|
void |
save()
Save the current graphics state to a stack.
|
void |
scale(double sx,
double sy)
Scale the coordinate system.
|
void |
set_graphics_option(java.lang.String optlist)
Set one or more graphics appearance options.
|
void |
set_gstate(int gstate)
Activate a graphics state object.
|
void |
set_info(java.lang.String key,
java.lang.String value)
Fill document information field key with value.
|
void |
set_layer_dependency(java.lang.String type,
java.lang.String optlist)
Define layer relationships.
|
void |
set_option(java.lang.String optlist)
Set one or more global options.
|
void |
set_text_option(java.lang.String optlist)
Set one or more text filter or text appearance options for simple text output methods.
|
void |
set_text_pos(double x,
double y)
Set the position for simple text output on the page.
|
void |
setcolor(java.lang.String fstype,
java.lang.String colorspace,
double c1,
double c2,
double c3,
double c4)
Set the color space and color for the graphics and text state..
|
void |
setfont(int font,
double fontsize)
Set the current font in the specified size.
|
void |
setlinewidth(double width)
Set the current linewidth.
|
void |
setmatrix(double a,
double b,
double c,
double d,
double e,
double f)
Explicitly set the current transformation matrix.
|
int |
shading_pattern(int shading,
java.lang.String optlist)
Define a shading pattern using a shading object.
|
int |
shading(java.lang.String type,
double x0,
double y0,
double x1,
double y1,
double c1,
double c2,
double c3,
double c4,
java.lang.String optlist)
Define a shading (color gradient) between two or more colors.
|
void |
shfill(int shading)
Fill an area with a shading, based on a shading object.
|
void |
show_xy(java.lang.String text,
double x,
double y)
Print text in the current font at the specified position.
|
void |
show(java.lang.String text)
Print text in the current font and size at the current position.
|
void |
skew(double alpha,
double beta)
Skew the coordinate system.
|
double |
stringwidth(java.lang.String text,
int font,
double fontsize)
Calculate the width of text in an arbitrary font.
|
void |
stroke()
Stroke the path with the current color and line width, and clear it.
|
void |
suspend_page(java.lang.String optlist)
Suspend the current page so that it can later be resumed.
|
void |
translate(double tx,
double ty)
Translate the origin of the coordinate system.
|
public pdflib() throws PDFlibException
PDFlibException
- PDF output cannot be finished after an exception.public final void activate_item(int id) throws PDFlibException
id
- idPDFlibException
- PDF output cannot be finished after an exception.public final void add_nameddest(java.lang.String name, java.lang.String optlist) throws PDFlibException
name
- nameoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int add_path_point(int path, double x, double y, java.lang.String type, java.lang.String optlist) throws PDFlibException
path
- pathx
- xy
- ytype
- typeoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int add_portfolio_file(int folder, java.lang.String filename, java.lang.String optlist) throws PDFlibException
folder
- folderfilename
- filenameoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int add_portfolio_folder(int parent, java.lang.String foldername, java.lang.String optlist) throws PDFlibException
parent
- parentfoldername
- foldernameoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int add_table_cell(int table, int column, int row, java.lang.String text, java.lang.String optlist) throws PDFlibException
table
- tablecolumn
- columnrow
- rowtext
- textoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int add_textflow(int textflow, java.lang.String text, java.lang.String optlist) throws PDFlibException
textflow
- textflowtext
- textoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void align(double dx, double dy) throws PDFlibException
dx
- dxdy
- dyPDFlibException
- PDF output cannot be finished after an exception.public final void arc(double x, double y, double r, double alpha, double beta) throws PDFlibException
x
- xy
- yr
- ralpha
- alphabeta
- betaPDFlibException
- PDF output cannot be finished after an exception.public final void arcn(double x, double y, double r, double alpha, double beta) throws PDFlibException
x
- xy
- yr
- ralpha
- alphabeta
- betaPDFlibException
- PDF output cannot be finished after an exception.public final int begin_document(java.lang.String filename, java.lang.String optlist) throws PDFlibException
filename
- filenameoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void begin_dpart(java.lang.String optlist) throws PDFlibException
optlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void begin_font(java.lang.String fontname, double a, double b, double c, double d, double e, double f, java.lang.String optlist) throws PDFlibException
fontname
- fontnamea
- ab
- bc
- cd
- de
- ef
- foptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void begin_glyph_ext(int uv, java.lang.String optlist) throws PDFlibException
uv
- uvoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int begin_item(java.lang.String tagname, java.lang.String optlist) throws PDFlibException
tagname
- tagnameoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void begin_layer(int layer) throws PDFlibException
layer
- layerPDFlibException
- PDF output cannot be finished after an exception.public final void begin_mc(java.lang.String tagname, java.lang.String optlist) throws PDFlibException
tagname
- tagnameoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void begin_page_ext(double width, double height, java.lang.String optlist) throws PDFlibException
width
- widthheight
- heightoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int begin_pattern_ext(double width, double height, java.lang.String optlist) throws PDFlibException
width
- widthheight
- heightoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int begin_template_ext(double width, double height, java.lang.String optlist) throws PDFlibException
width
- widthheight
- heightoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void circle(double x, double y, double r) throws PDFlibException
x
- xy
- yr
- rPDFlibException
- PDF output cannot be finished after an exception.public final void circular_arc(double x1, double y1, double x2, double y2) throws PDFlibException
x1
- x1y1
- y1x2
- x2y2
- y2PDFlibException
- PDF output cannot be finished after an exception.public final void clip() throws PDFlibException
PDFlibException
- PDF output cannot be finished after an exception.public final void close_font(int font) throws PDFlibException
font
- fontPDFlibException
- PDF output cannot be finished after an exception.public final void close_graphics(int graphics) throws PDFlibException
graphics
- graphicsPDFlibException
- PDF output cannot be finished after an exception.public final void close_image(int image) throws PDFlibException
image
- imagePDFlibException
- PDF output cannot be finished after an exception.public final void close_pdi_document(int doc) throws PDFlibException
doc
- docPDFlibException
- PDF output cannot be finished after an exception.public final void close_pdi_page(int page) throws PDFlibException
page
- pagePDFlibException
- PDF output cannot be finished after an exception.public final void closepath() throws PDFlibException
PDFlibException
- PDF output cannot be finished after an exception.public final void closepath_fill_stroke() throws PDFlibException
PDFlibException
- PDF output cannot be finished after an exception.public final void closepath_stroke() throws PDFlibException
PDFlibException
- PDF output cannot be finished after an exception.public final void concat(double a, double b, double c, double d, double e, double f) throws PDFlibException
a
- ab
- bc
- cd
- de
- ef
- fPDFlibException
- PDF output cannot be finished after an exception.public final void continue_text(java.lang.String text) throws PDFlibException
text
- textPDFlibException
- PDF output cannot be finished after an exception.public final java.lang.String convert_to_unicode(java.lang.String inputformat, byte[] inputstring, java.lang.String optlist) throws PDFlibException
convert_to_unicode
in interface IpCOS
inputformat
- inputformatinputstring
- inputstringoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int create_3dview(java.lang.String username, java.lang.String optlist) throws PDFlibException
username
- usernameoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int create_action(java.lang.String type, java.lang.String optlist) throws PDFlibException
type
- typeoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void create_annotation(double llx, double lly, double urx, double ury, java.lang.String type, java.lang.String optlist) throws PDFlibException
llx
- llxlly
- llyurx
- urxury
- urytype
- typeoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int create_devicen(java.lang.String optlist) throws PDFlibException
optlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int create_bookmark(java.lang.String text, java.lang.String optlist) throws PDFlibException
text
- textoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void create_field(double llx, double lly, double urx, double ury, java.lang.String name, java.lang.String type, java.lang.String optlist) throws PDFlibException
llx
- llxlly
- llyurx
- urxury
- uryname
- nametype
- typeoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void create_fieldgroup(java.lang.String name, java.lang.String optlist) throws PDFlibException
name
- nameoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int create_gstate(java.lang.String optlist) throws PDFlibException
optlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void create_pvf(java.lang.String filename, byte[] data, java.lang.String optlist) throws PDFlibException
create_pvf
in interface IpCOS
filename
- filenamedata
- dataoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int create_textflow(java.lang.String text, java.lang.String optlist) throws PDFlibException
text
- textoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void curveto(double x1, double y1, double x2, double y2, double x3, double y3) throws PDFlibException
x1
- x1y1
- y1x2
- x2y2
- y2x3
- x3y3
- y3PDFlibException
- PDF output cannot be finished after an exception.public final int define_layer(java.lang.String name, java.lang.String optlist) throws PDFlibException
name
- nameoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void delete_path(int path) throws PDFlibException
path
- pathPDFlibException
- PDF output cannot be finished after an exception.public final int delete_pvf(java.lang.String filename) throws PDFlibException
delete_pvf
in interface IpCOS
filename
- filenamePDFlibException
- PDF output cannot be finished after an exception.public final void delete_table(int table, java.lang.String optlist) throws PDFlibException
table
- tableoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void delete_textflow(int textflow) throws PDFlibException
textflow
- textflowPDFlibException
- PDF output cannot be finished after an exception.public final int download(java.lang.String filename, java.lang.String optlist) throws PDFlibException
filename
- filenameoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void draw_path(int path, double x, double y, java.lang.String optlist) throws PDFlibException
path
- pathx
- xy
- yoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void ellipse(double x, double y, double rx, double ry) throws PDFlibException
x
- xy
- yrx
- rxry
- ryPDFlibException
- PDF output cannot be finished after an exception.public final void elliptical_arc(double x, double y, double rx, double ry, java.lang.String optlist) throws PDFlibException
x
- xy
- yrx
- rxry
- ryoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void encoding_set_char(java.lang.String encoding, int slot, java.lang.String glyphname, int uv) throws PDFlibException
encoding
- encodingslot
- slotglyphname
- glyphnameuv
- uvPDFlibException
- PDF output cannot be finished after an exception.public final void end_document(java.lang.String optlist) throws PDFlibException
optlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void end_dpart(java.lang.String optlist) throws PDFlibException
optlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void end_font() throws PDFlibException
PDFlibException
- PDF output cannot be finished after an exception.public final void end_glyph() throws PDFlibException
PDFlibException
- PDF output cannot be finished after an exception.public final void end_item(int id) throws PDFlibException
id
- idPDFlibException
- PDF output cannot be finished after an exception.public final void end_layer() throws PDFlibException
PDFlibException
- PDF output cannot be finished after an exception.public final void end_mc() throws PDFlibException
PDFlibException
- PDF output cannot be finished after an exception.public final void end_page_ext(java.lang.String optlist) throws PDFlibException
optlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void end_pattern() throws PDFlibException
PDFlibException
- PDF output cannot be finished after an exception.public final void end_template_ext(double width, double height) throws PDFlibException
width
- widthheight
- heightPDFlibException
- PDF output cannot be finished after an exception.public final void endpath() throws PDFlibException
PDFlibException
- PDF output cannot be finished after an exception.public final void fill() throws PDFlibException
PDFlibException
- PDF output cannot be finished after an exception.public final int fill_graphicsblock(int page, java.lang.String blockname, int graphics, java.lang.String optlist) throws PDFlibException
page
- pageblockname
- blocknamegraphics
- graphicsoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int fill_imageblock(int page, java.lang.String blockname, int image, java.lang.String optlist) throws PDFlibException
page
- pageblockname
- blocknameimage
- imageoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int fill_pdfblock(int page, java.lang.String blockname, int contents, java.lang.String optlist) throws PDFlibException
page
- pageblockname
- blocknamecontents
- contentsoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void fill_stroke() throws PDFlibException
PDFlibException
- PDF output cannot be finished after an exception.public final int fill_textblock(int page, java.lang.String blockname, java.lang.String text, java.lang.String optlist) throws PDFlibException
page
- pageblockname
- blocknametext
- textoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void fit_graphics(int graphics, double x, double y, java.lang.String optlist) throws PDFlibException
graphics
- graphicsx
- xy
- yoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void fit_image(int image, double x, double y, java.lang.String optlist) throws PDFlibException
image
- imagex
- xy
- yoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void fit_pdi_page(int page, double x, double y, java.lang.String optlist) throws PDFlibException
page
- pagex
- xy
- yoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final java.lang.String fit_table(int table, double llx, double lly, double urx, double ury, java.lang.String optlist) throws PDFlibException
table
- tablellx
- llxlly
- llyurx
- urxury
- uryoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final java.lang.String fit_textflow(int textflow, double llx, double lly, double urx, double ury, java.lang.String optlist) throws PDFlibException
textflow
- textflowllx
- llxlly
- llyurx
- urxury
- uryoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void fit_textline(java.lang.String text, double x, double y, java.lang.String optlist) throws PDFlibException
text
- textx
- xy
- yoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final java.lang.String get_apiname()
get_apiname
in interface IpCOS
public final byte[] get_buffer() throws PDFlibException
PDFlibException
- PDF output cannot be finished after an exception.public final java.lang.String get_errmsg()
get_errmsg
in interface IpCOS
public final int get_errnum()
get_errnum
in interface IpCOS
public final double get_option(java.lang.String keyword, java.lang.String optlist) throws PDFlibException
keyword
- keywordoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final java.lang.String get_string(int idx, java.lang.String optlist) throws PDFlibException
idx
- idxoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final double info_font(int font, java.lang.String keyword, java.lang.String optlist) throws PDFlibException
font
- fontkeyword
- keywordoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final double info_graphics(int graphics, java.lang.String keyword, java.lang.String optlist) throws PDFlibException
graphics
- graphicskeyword
- keywordoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final double info_image(int image, java.lang.String keyword, java.lang.String optlist) throws PDFlibException
image
- imagekeyword
- keywordoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final double info_matchbox(java.lang.String boxname, int num, java.lang.String keyword) throws PDFlibException
boxname
- boxnamenum
- numkeyword
- keywordPDFlibException
- PDF output cannot be finished after an exception.public final double info_path(int path, java.lang.String keyword, java.lang.String optlist) throws PDFlibException
path
- pathkeyword
- keywordoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final double info_pdi_page(int page, java.lang.String keyword, java.lang.String optlist) throws PDFlibException
page
- pagekeyword
- keywordoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final double info_pvf(java.lang.String filename, java.lang.String keyword) throws PDFlibException
info_pvf
in interface IpCOS
filename
- filenamekeyword
- keywordPDFlibException
- PDF output cannot be finished after an exception.public final double info_table(int table, java.lang.String keyword) throws PDFlibException
table
- tablekeyword
- keywordPDFlibException
- PDF output cannot be finished after an exception.public final double info_textflow(int textflow, java.lang.String keyword) throws PDFlibException
textflow
- textflowkeyword
- keywordPDFlibException
- PDF output cannot be finished after an exception.public final double info_textline(java.lang.String text, java.lang.String keyword, java.lang.String optlist) throws PDFlibException
text
- textkeyword
- keywordoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void lineto(double x, double y) throws PDFlibException
x
- xy
- yPDFlibException
- PDF output cannot be finished after an exception.public final int load_3ddata(java.lang.String filename, java.lang.String optlist) throws PDFlibException
filename
- filenameoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int load_asset(java.lang.String type, java.lang.String filename, java.lang.String optlist) throws PDFlibException
type
- typefilename
- filenameoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int load_font(java.lang.String fontname, java.lang.String encoding, java.lang.String optlist) throws PDFlibException
fontname
- fontnameencoding
- encodingoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int load_graphics(java.lang.String type, java.lang.String filename, java.lang.String optlist) throws PDFlibException
type
- typefilename
- filenameoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int load_iccprofile(java.lang.String profilename, java.lang.String optlist) throws PDFlibException
profilename
- profilenameoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int load_image(java.lang.String imagetype, java.lang.String filename, java.lang.String optlist) throws PDFlibException
imagetype
- imagetypefilename
- filenameoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int makespotcolor(java.lang.String spotname) throws PDFlibException
spotname
- spotnamePDFlibException
- PDF output cannot be finished after an exception.public final void mc_point(java.lang.String tagname, java.lang.String optlist) throws PDFlibException
tagname
- tagnameoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void moveto(double x, double y) throws PDFlibException
x
- xy
- yPDFlibException
- PDF output cannot be finished after an exception.public final int open_pdi_document(java.lang.String filename, java.lang.String optlist) throws PDFlibException
filename
- filenameoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int open_pdi_page(int doc, int pagenumber, java.lang.String optlist) throws PDFlibException
doc
- docpagenumber
- pagenumberoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final double pcos_get_number(int doc, java.lang.String path) throws PDFlibException
pcos_get_number
in interface IpCOS
doc
- docpath
- pathPDFlibException
- PDF output cannot be finished after an exception.public final java.lang.String pcos_get_string(int doc, java.lang.String path) throws PDFlibException
pcos_get_string
in interface IpCOS
doc
- docpath
- pathPDFlibException
- PDF output cannot be finished after an exception.public final byte[] pcos_get_stream(int doc, java.lang.String optlist, java.lang.String path) throws PDFlibException
pcos_get_stream
in interface IpCOS
doc
- docoptlist
- optlistpath
- pathPDFlibException
- PDF output cannot be finished after an exception.public final void poca_delete(int container, java.lang.String optlist) throws PDFlibException
container
- containeroptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void poca_insert(int container, java.lang.String optlist) throws PDFlibException
container
- containeroptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int poca_new(java.lang.String optlist) throws PDFlibException
optlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void poca_remove(int container, java.lang.String optlist) throws PDFlibException
container
- containeroptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int process_pdi(int doc, int page, java.lang.String optlist) throws PDFlibException
doc
- docpage
- pageoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void rect(double x, double y, double width, double height) throws PDFlibException
x
- xy
- ywidth
- widthheight
- heightPDFlibException
- PDF output cannot be finished after an exception.public final void restore() throws PDFlibException
PDFlibException
- PDF output cannot be finished after an exception.public final void resume_page(java.lang.String optlist) throws PDFlibException
optlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void rotate(double phi) throws PDFlibException
phi
- phiPDFlibException
- PDF output cannot be finished after an exception.public final void save() throws PDFlibException
PDFlibException
- PDF output cannot be finished after an exception.public final void scale(double sx, double sy) throws PDFlibException
sx
- sxsy
- syPDFlibException
- PDF output cannot be finished after an exception.public final void set_graphics_option(java.lang.String optlist) throws PDFlibException
optlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void set_gstate(int gstate) throws PDFlibException
gstate
- gstatePDFlibException
- PDF output cannot be finished after an exception.public final void set_info(java.lang.String key, java.lang.String value) throws PDFlibException
key
- keyvalue
- valuePDFlibException
- PDF output cannot be finished after an exception.public final void set_layer_dependency(java.lang.String type, java.lang.String optlist) throws PDFlibException
type
- typeoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void set_option(java.lang.String optlist) throws PDFlibException
set_option
in interface IpCOS
optlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void set_text_option(java.lang.String optlist) throws PDFlibException
optlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void set_text_pos(double x, double y) throws PDFlibException
x
- xy
- yPDFlibException
- PDF output cannot be finished after an exception.public final void setcolor(java.lang.String fstype, java.lang.String colorspace, double c1, double c2, double c3, double c4) throws PDFlibException
fstype
- fstypecolorspace
- colorspacec1
- c1c2
- c2c3
- c3c4
- c4PDFlibException
- PDF output cannot be finished after an exception.public final void setfont(int font, double fontsize) throws PDFlibException
font
- fontfontsize
- fontsizePDFlibException
- PDF output cannot be finished after an exception.public final void setlinewidth(double width) throws PDFlibException
width
- widthPDFlibException
- PDF output cannot be finished after an exception.public final void setmatrix(double a, double b, double c, double d, double e, double f) throws PDFlibException
a
- ab
- bc
- cd
- de
- ef
- fPDFlibException
- PDF output cannot be finished after an exception.public final int shading(java.lang.String type, double x0, double y0, double x1, double y1, double c1, double c2, double c3, double c4, java.lang.String optlist) throws PDFlibException
type
- typex0
- x0y0
- y0x1
- x1y1
- y1c1
- c1c2
- c2c3
- c3c4
- c4optlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final int shading_pattern(int shading, java.lang.String optlist) throws PDFlibException
shading
- shadingoptlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void shfill(int shading) throws PDFlibException
shading
- shadingPDFlibException
- PDF output cannot be finished after an exception.public final void show(java.lang.String text) throws PDFlibException
text
- textPDFlibException
- PDF output cannot be finished after an exception.public final void show_xy(java.lang.String text, double x, double y) throws PDFlibException
text
- textx
- xy
- yPDFlibException
- PDF output cannot be finished after an exception.public final void skew(double alpha, double beta) throws PDFlibException
alpha
- alphabeta
- betaPDFlibException
- PDF output cannot be finished after an exception.public final double stringwidth(java.lang.String text, int font, double fontsize) throws PDFlibException
text
- textfont
- fontfontsize
- fontsizePDFlibException
- PDF output cannot be finished after an exception.public final void stroke() throws PDFlibException
PDFlibException
- PDF output cannot be finished after an exception.public final void suspend_page(java.lang.String optlist) throws PDFlibException
optlist
- optlistPDFlibException
- PDF output cannot be finished after an exception.public final void translate(double tx, double ty) throws PDFlibException
tx
- txty
- tyPDFlibException
- PDF output cannot be finished after an exception.public final void delete()
public int pcos_open_document(java.lang.String filename, java.lang.String optlist) throws java.lang.Exception
pcos_open_document
in interface IpCOS
filename
- The full path name of the PDF file to be opened.
The file will be searched by means of the SearchPath resource.optlist
- An option list specifying document options.java.lang.Exception
- PDF output cannot be finished after an exception.public void pcos_close_document(int doc, java.lang.String optlist) throws java.lang.Exception
pcos_close_document
in interface IpCOS
doc
- A valid document handle obtained with open_document().optlist
- An option list specifying document options.java.lang.Exception
- PDF output cannot be finished after an exception.