PxImageWriter Class

@interface PxImageWriter : NSObject

Writes one or more PxPictures to a file in a chosen image or PDF format, optionally with an embedded recognised-text layer.

Instance Properties

NameSummary
typeThe writer’s output format.

Instance Methods

NameSummary
closeCloses the output file.
computerPaperForImageSize:withUnits:Computes the PxPaper for an image of the given size (PDF writers only).
computerPaperForImageSize:withUnits:outCanvasPos:Computes the PxPaper for an image of the given size, also returning where the image sits on the page (PDF writers only).
configureFooter:withText:Configures a footer for multi-page documents (PDF writers only).
configureFooter:withText:andUrl:Configures a footer with a URL for multi-page documents (PDF writers only).
configurePaper:withOrientantion:Configures the page size for multi-page documents (PDF writers only).
configurePaperSize:withOrientantion:Configures a predefined page size for multi-page documents (PDF writers only).
open:Opens the writer for output.
setCompressionLevel:Sets the compression level: any value >= 1, or a predefined negative value.
setFonts:Sets the fonts to use when writing text layers (PDF writers only).
showHiddenText:Shows or hides the document’s hidden text layer (PDF writers only).
showHiddenText:withBounds:replaceSpaces:Shows or hides the document’s hidden text layer, with debugging options (PDF writers only).
write:Writes a picture to the current output sequence.
write:withTextResult:Writes a picture with an embedded hidden text layer to the current output sequence.
writeFile:withOrientation:Writes an existing image file into the output (PDF writers only).
writeFile:withOrientation:andTextResult:andTextOrientation:Writes an existing image file with a hidden text layer into the output (PDF writers only).

Type Methods

NameSummary
new:Creates an image writer of the given type.

Relationships

Inherits From

  • NSObject
Top