PDF-Haru

 view release on metacpan or  search on metacpan

Haru.xs  view on Meta::CPAN

	PDF::Haru pdf
	PDF::Haru::Outline parent
	const char *title
	PDF::Haru::Encoder encoder
	CODE:
	RETVAL = HPDF_CreateOutline   (pdf, parent, title, encoder);
	OUTPUT:
	RETVAL
	
PDF::Haru::Image
LoadPngImageFromFile (pdf, filename)
	PDF::Haru pdf
	const char *filename
	CODE:
	RETVAL = HPDF_LoadPngImageFromFile (pdf, filename);
	OUTPUT:
	RETVAL

PDF::Haru::Image
LoadPngImageFromFile2 (pdf, filename)
	PDF::Haru pdf
	const char *filename
	CODE:
	RETVAL = HPDF_LoadPngImageFromFile2 (pdf, filename);
	OUTPUT:
	RETVAL

PDF::Haru::Image
LoadJpegImageFromFile (pdf, filename)
	PDF::Haru pdf
	const char *filename
	CODE:
	RETVAL = HPDF_LoadJpegImageFromFile (pdf, filename);
	OUTPUT:

lib/PDF/Haru.pm  view on Meta::CPAN

=item $title

The caption of the outline object.

=item $encoder

The handle of an encoding object applied to the title. If undef, PDFDocEncoding is used. 

=back

=head2 B<my $image = $pdf-E<gt>LoadPngImageFromFile($filename)>

Loads an external png image file and returns image object.

=head2 B<my $image = $pdf-E<gt>LoadPngImageFromFile2($filename)>

Loads an external png image file and returns image object.
Unlike  LoadPngImageFromFile(),  LoadPngImageFromFile2() does not load whole data immediately. (only size and color properties is loaded).
The main data is loaded just before the image object is written to PDF, and the loaded data is deleted immediately. 

=head2 B<my $image = $pdf-E<gt>LoadJpegImageFromFile($filename)>

Loads an external Jpeg image file and returns image object.

=head2 B<$pdf-E<gt>SetInfoAttr (type, $value)>

SetInfoAttr() sets the text of the info dictionary. SetInfoAttr() uses the current encoding of the document.



( run in 0.333 second using v1.01-cache-2.11-cpan-0a6323c29d9 )