Class PDFDocGenerator
A collection of static methods to create blank documents
Inheritance
Inherited Members
Namespace: pdftron.PDF
Assembly: PDFNetiOS.dll
Syntax
public static class PDFDocGenerator
Methods
GenerateBlankPaperDoc(Double, Double, Double, Double, Double)
Create a new document with one page of blank paper.
Declaration
public static PDFDoc GenerateBlankPaperDoc(double width, double height, double background_red, double background_green, double background_blue)
Parameters
Type | Name | Description |
---|---|---|
System.Double | width | The page width in inches |
System.Double | height | The page height in inches |
System.Double | background_red | The red component of the background color |
System.Double | background_green | The green component of the background color |
System.Double | background_blue | The blue component of the background color |
Returns
Type | Description |
---|---|
PDFDoc |
GenerateGraphPaperDoc(Double, Double, Double, Double, Double, Int32, Double, Double, Double, Double, Double, Double)
Create a new document with one page of graph paper.
Declaration
public static PDFDoc GenerateGraphPaperDoc(double width, double height, double grid_spacing, double line_thickness, double weighted_line_thickness, int weighted_line_freq, double red, double green, double blue, double background_red, double background_green, double background_blue)
Parameters
Type | Name | Description |
---|---|---|
System.Double | width | The page width in inches |
System.Double | height | The page height in inches |
System.Double | grid_spacing | The grid spacing in inches |
System.Double | line_thickness | The line thickness in points |
System.Double | weighted_line_thickness | The weighted line thickness in points |
System.Int32 | weighted_line_freq | Ratio of weighted lines to normal lines |
System.Double | red | The red component of the line color |
System.Double | green | The green component of the line color |
System.Double | blue | The blue component of the line color |
System.Double | background_red | The red component of the background color |
System.Double | background_green | The green component of the background color |
System.Double | background_blue | The blue component of the background color |
Returns
Type | Description |
---|---|
PDFDoc |
GenerateGridPaperDoc(Double, Double, Double, Double, Double, Double, Double, Double, Double, Double)
Create a new document with one page of grid paper.
Declaration
public static PDFDoc GenerateGridPaperDoc(double width, double height, double grid_spacing, double line_thickness, double red, double green, double blue, double background_red, double background_green, double background_blue)
Parameters
Type | Name | Description |
---|---|---|
System.Double | width | The page width in inches |
System.Double | height | The page height in inches |
System.Double | grid_spacing | The grid spacing in inches |
System.Double | line_thickness | The line thickness in points |
System.Double | red | The red component of the line color |
System.Double | green | The green component of the line color |
System.Double | blue | The blue component of the line color |
System.Double | background_red | The red component of the background color |
System.Double | background_green | The green component of the background color |
System.Double | background_blue | The blue component of the background color |
Returns
Type | Description |
---|---|
PDFDoc |
GenerateLinedPaperDoc(Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double)
Create a new document with one page of lined paper.
Declaration
public static PDFDoc GenerateLinedPaperDoc(double width, double height, double line_spacing, double line_thickness, double red, double green, double blue, double left_margin_distance, double left_margin_red, double left_margin_green, double left_margin_blue, double right_margin_red, double right_margin_green, double right_margin_blue, double background_red, double background_green, double background_blue, double top_margin_distance, double bottom_margin_distance)
Parameters
Type | Name | Description |
---|---|---|
System.Double | width | The page width in inches |
System.Double | height | The page height in inches |
System.Double | line_spacing | The line spacing in inches |
System.Double | line_thickness | The line thickness in points |
System.Double | red | The red component of the line color |
System.Double | green | The green component of the line color |
System.Double | blue | The blue component of the line color |
System.Double | left_margin_distance | Distance of the margin from the left side of the page |
System.Double | left_margin_red | The red component of the left margin color |
System.Double | left_margin_green | The green component of the left margin color |
System.Double | left_margin_blue | The blue component of the left margin color |
System.Double | right_margin_red | The red component of the right margin color |
System.Double | right_margin_green | The green component of the right margin color |
System.Double | right_margin_blue | The blue component of the right margin color |
System.Double | background_red | The red component of the background color |
System.Double | background_green | The green component of the background color |
System.Double | background_blue | The blue component of the background color |
System.Double | top_margin_distance | Distance of the margin from the top of the page |
System.Double | bottom_margin_distance | Distance of the margin from the bottom of the page |
Returns
Type | Description |
---|---|
PDFDoc |
GenerateMusicPaperDoc(Double, Double, Double, Int32, Double, Double, Double, Double, Double, Double, Double, Double)
Create a new document with one page of music paper.
Declaration
public static PDFDoc GenerateMusicPaperDoc(double width, double height, double margin, int staves, double linespace_size_pts, double line_thickness, double red, double green, double blue, double background_red, double background_green, double background_blue)
Parameters
Type | Name | Description |
---|---|---|
System.Double | width | The page width in inches |
System.Double | height | The page height in inches |
System.Double | margin | The page margin in inches |
System.Int32 | staves | Amount of staves on the page. |
System.Double | linespace_size_pts | The space between lines in points |
System.Double | line_thickness | The line thickness in points |
System.Double | red | The red component of the line color |
System.Double | green | The green component of the line color |
System.Double | blue | The blue component of the line color |
System.Double | background_red | The red component of the background color |
System.Double | background_green | The green component of the background color |
System.Double | background_blue | The blue component of the background color |
Returns
Type | Description |
---|---|
PDFDoc |