This sample demonstrates how to create a new PDF document populating it with various graphics elements. More...
Public Member Functions | |
| bool | IsQuit () |
| Gets whether the sample was exited before its completion. | |
| override void | Run () |
| Executes the sample. | |
Protected Member Functions | |
| string | GetIndentation (int level) |
| string | GetOutputPath (string fileName) |
| Gets the path used to serialize output files. | |
| string | GetResourcePath (string resourceName) |
| Gets the path to a sample resource. | |
| void | Prompt (string message) |
| Prompts a message to the user. | |
| string | PromptChoice (IDictionary< string, string > options) |
| Gets the user's choice from the given options. | |
| string | PromptChoice (string message) |
| Gets the user's choice from the given request. | |
| string | PromptFileChoice (string inputDescription) |
| bool | PromptNextPage (Page page, bool skip) |
| Prompts the user for advancing to the next page. | |
| int | PromptPageChoice (string inputDescription, int startIndex, int endIndex) |
| Prompts the user for a page index to select. | |
| int | PromptPageChoice (string inputDescription, int pageCount) |
| Prompts the user for a page index to select. | |
| void | Quit () |
| Indicates that the sample was exited before its completion. | |
| string | Serialize (files::File file, string fileName, files::SerializationModeEnum?serializationMode, string title, string subject, string keywords) |
| Serializes the given PDF Clown file object. | |
| string | Serialize (files::File file, files::SerializationModeEnum?serializationMode, string title, string subject, string keywords) |
| Serializes the given PDF Clown file object. | |
| string | Serialize (files::File file, string title, string subject, string keywords) |
| Serializes the given PDF Clown file object. | |
| string | Serialize (files::File file, string fileName, files::SerializationModeEnum?serializationMode) |
| Serializes the given PDF Clown file object. | |
| string | Serialize (files::File file, string fileName) |
| Serializes the given PDF Clown file object. | |
| string | Serialize (files::File file, files::SerializationModeEnum?serializationMode) |
| Serializes the given PDF Clown file object. | |
| string | Serialize (files::File file) |
| Serializes the given PDF Clown file object. | |
Properties | |
| string | OutputPath [get] |
| Gets the path used to serialize output files. | |
This sample demonstrates how to create a new PDF document populating it with various graphics elements.
This implementation features an enlightening example of an embryonic typesetter that exploits the new typographic primitives defined in PDF Clown (see BlockComposer class in use); this is just a humble experiment -- anybody could develop a typesetter sitting upon PDF Clown!
Anyway, PDF Clown currently lacks support for content flow composition (i.e. paragraphs spread across multiple pages): since 0.0.3 release offers a static-composition facility (BlockComposer class) that is meant to be the base for more advanced functionalities (such as the above-mentioned content flow composition), to be made available in the next releases.
| string org.pdfclown.samples.cli.Sample.GetIndentation | ( | int | level | ) | [protected, inherited] |
| string org.pdfclown.samples.cli.Sample.GetOutputPath | ( | string | fileName | ) | [protected, inherited] |
Gets the path used to serialize output files.
| fileName | Relative output file path. |
| string org.pdfclown.samples.cli.Sample.GetResourcePath | ( | string | resourceName | ) | [protected, inherited] |
Gets the path to a sample resource.
| resourceName | Relative resource path. |
| bool org.pdfclown.samples.cli.Sample.IsQuit | ( | ) | [inherited] |
Gets whether the sample was exited before its completion.
| void org.pdfclown.samples.cli.Sample.Prompt | ( | string | message | ) | [protected, inherited] |
Prompts a message to the user.
| message | Text to show. |
| string org.pdfclown.samples.cli.Sample.PromptChoice | ( | IDictionary< string, string > | options | ) | [protected, inherited] |
Gets the user's choice from the given options.
| options | Available options to show to the user. |
| string org.pdfclown.samples.cli.Sample.PromptChoice | ( | string | message | ) | [protected, inherited] |
Gets the user's choice from the given request.
| message | Description of the request to show to the user. |
| string org.pdfclown.samples.cli.Sample.PromptFileChoice | ( | string | inputDescription | ) | [protected, inherited] |
| bool org.pdfclown.samples.cli.Sample.PromptNextPage | ( | Page | page, | |
| bool | skip | |||
| ) | [protected, inherited] |
Prompts the user for advancing to the next page.
| page | Next page. | |
| skip | Whether the prompt has to be skipped. |
| int org.pdfclown.samples.cli.Sample.PromptPageChoice | ( | string | inputDescription, | |
| int | startIndex, | |||
| int | endIndex | |||
| ) | [protected, inherited] |
Prompts the user for a page index to select.
| inputDescription | Message prompted to the user. | |
| startIndex | First page index, inclusive. | |
| endIndex | Last page index, exclusive. |
| int org.pdfclown.samples.cli.Sample.PromptPageChoice | ( | string | inputDescription, | |
| int | pageCount | |||
| ) | [protected, inherited] |
Prompts the user for a page index to select.
| inputDescription | Message prompted to the user. | |
| pageCount | Page count. |
References org.pdfclown.samples.cli.Sample.PromptPageChoice().
Referenced by org.pdfclown.samples.cli.Sample.PromptPageChoice().
| void org.pdfclown.samples.cli.Sample.Quit | ( | ) | [protected, inherited] |
Indicates that the sample was exited before its completion.
| override void org.pdfclown.samples.cli.ComplexTypesettingSample.Run | ( | ) | [virtual] |
Executes the sample.
Implements org.pdfclown.samples.cli.Sample.
| string org.pdfclown.samples.cli.Sample.Serialize | ( | files::File | file, | |
| string | fileName, | |||
| files::SerializationModeEnum? | serializationMode, | |||
| string | title, | |||
| string | subject, | |||
| string | keywords | |||
| ) | [protected, inherited] |
Serializes the given PDF Clown file object.
| file | PDF file to serialize. | |
| fileName | Output file name. | |
| serializationMode | Serialization mode. | |
| title | Document title. | |
| subject | Document subject. | |
| keywords | Document keywords. |
| string org.pdfclown.samples.cli.Sample.Serialize | ( | files::File | file, | |
| files::SerializationModeEnum? | serializationMode, | |||
| string | title, | |||
| string | subject, | |||
| string | keywords | |||
| ) | [protected, inherited] |
Serializes the given PDF Clown file object.
| file | PDF file to serialize. | |
| serializationMode | Serialization mode. | |
| title | Document title. | |
| subject | Document subject. | |
| keywords | Document keywords. |
References org.pdfclown.samples.cli.Sample.Serialize().
Referenced by org.pdfclown.samples.cli.Sample.Serialize().
| string org.pdfclown.samples.cli.Sample.Serialize | ( | files::File | file, | |
| string | title, | |||
| string | subject, | |||
| string | keywords | |||
| ) | [protected, inherited] |
Serializes the given PDF Clown file object.
| file | PDF file to serialize. | |
| title | Document title. | |
| subject | Document subject. | |
| keywords | Document keywords. |
References org.pdfclown.samples.cli.Sample.Serialize().
Referenced by org.pdfclown.samples.cli.Sample.Serialize().
| string org.pdfclown.samples.cli.Sample.Serialize | ( | files::File | file, | |
| string | fileName, | |||
| files::SerializationModeEnum? | serializationMode | |||
| ) | [protected, inherited] |
Serializes the given PDF Clown file object.
| file | PDF file to serialize. | |
| fileName | Output file name. | |
| serializationMode | Serialization mode. |
References org.pdfclown.samples.cli.Sample.Serialize().
Referenced by org.pdfclown.samples.cli.Sample.Serialize().
| string org.pdfclown.samples.cli.Sample.Serialize | ( | files::File | file, | |
| string | fileName | |||
| ) | [protected, inherited] |
Serializes the given PDF Clown file object.
| file | PDF file to serialize. | |
| fileName | Output file name. |
References org.pdfclown.samples.cli.Sample.Serialize().
Referenced by org.pdfclown.samples.cli.Sample.Serialize().
| string org.pdfclown.samples.cli.Sample.Serialize | ( | files::File | file, | |
| files::SerializationModeEnum? | serializationMode | |||
| ) | [protected, inherited] |
Serializes the given PDF Clown file object.
| file | PDF file to serialize. | |
| serializationMode | Serialization mode. |
References org.pdfclown.samples.cli.Sample.Serialize().
Referenced by org.pdfclown.samples.cli.Sample.Serialize().
| string org.pdfclown.samples.cli.Sample.Serialize | ( | files::File | file | ) | [protected, inherited] |
Serializes the given PDF Clown file object.
| file | PDF file to serialize. |
References org.pdfclown.samples.cli.Sample.Serialize().
Referenced by org.pdfclown.samples.cli.Sample.Serialize().
string org.pdfclown.samples.cli.Sample.OutputPath [get, protected, inherited] |
Gets the path used to serialize output files.
Copyright 2006-2013 Stefano Chizzolini. For more information, please visit PDF Clown home page.
Generated on Sat Feb 9 21:28:28 2013 for PDF Clown Samples 0.1.2 by
1.6.3