Methods

[Top]  [Chapter]  [Previous]  [Next]

 

Closes the PDF engine. Dispose should be called!

 

     protected override void Dispose(bool disposing);

 

Open and close a new PDF file:

 

     public bool BeginDoc();

     public bool BeginDoc(Stream OutStream);

     public bool BeginDoc(string FileName);

     public bool BeginDocMem();

     public void EndDoc();

 

Create an outline item - you can mark a line in the text to be an outline.

 

     public void Outline(string Text);

     public void Outline(Rectangle Rect, string Text);

     public void Outline(string Text, string Bookmark);

     public void Outline(int x, int y, string Text);

     public void OutlineChild();

     public void OutlineParent();

     public void OutlineParent(int levels);

 

Create a bookmark - such an bookmark can be a jump destination for a hyperlink. Bookmarks in the text will be used, too.

 

     public void Bookmark(Rectangle Rect, string BookMark);

     public void Bookmark(int x, int y, string BookMark);

 

Export an image (any image in the text will be exported. See InputImage)

 

     public void DrawBitmapClone(int x, int y, int w, int h, int GraphicId);

     public int DrawImage(Image image);

     public int DrawImage(string FileName);

     public int DrawImage(Image image, int ZoomValue);

     public int DrawImage(string FileName, int ZoomValue);

     public int DrawImage(Image image, int x, int y, int w, int h);

     public int DrawImage(string FileName, int x, int y, int w, int h);

     public void DrawMetafile(Metafile metafile);

     public void DrawMetafile(Metafile metafile, int xres, int yres);

     public void DrawWatermark(string Name);

     public void DrawWatermark(string Name, int Rotation);

 

Embed data - better embed a data object in the text.

 

     public void EmbedData(Stream DataStream, int X, int Y, int W, int H, string Params, int Options);

     public void EmbedDataMem(IntPtr DataPtr, int DataLen, int X, int Y, int W, int H, string Params, int Options);

 

 

Create a hyperlink area - better mark the text directly.

 

     public void Hyperlink(Rectangle Rect, string BookMark);

     public void Hyperlink(int x, int y, int w, int h, string BookMark);

 

Start and end a page

 

     public bool StartPage();

     public bool StartPage(Image image, int ZoomValue);

     public bool StartPage(ePage format, bool landscape);

     public bool StartPage(int w, int h, bool landscape);

     public void EndPage();

 

Start and end a watermark

 

     public bool StartWatermark(string Name);

     public bool StartWatermark(string Name, ePage format);

     public bool StartWatermark(string Name, int w, int h);

     public void EndWatermark();

 

Write text and graphics

 

     public void TextOut(string Text);

     public void TextOut(string Text, int x, int y);

     public void TextOut(string Text, int x, int y, int w, int h);

 

Flush the Graphics buffer:

 

     public void CloseCanvas();

 

Send command id with parameters

 

     public int Command(int id);

     public int Command(int id, int Value);

     public int Command(int id, string Text);

     public int Command(int id, int Value, string Text);

     public int Command(int id, int Value, IntPtr Buffer, int BufferLen);

 

Change integer and string properties

 

     public void SetSProp(int Name, string Value);

     public void SetIProp(int Name, int Value);

 

 


[methods.htm]    Copyright © 2007 by WPCubed GmbH