PDF-Make
view release on metacpan or search on metacpan
include/pdfmake_linear.h view on Meta::CPAN
/* Cached data */
uint8_t *header_data;
size_t header_len;
/* Parsed document (incrementally built) */
pdfmake_doc_t *doc;
} pdfmake_stream_reader_t;
/*
* Create streaming reader with fetch callback.
*/
pdfmake_stream_reader_t *pdfmake_stream_reader_new(
pdfmake_fetch_fn fetch,
void *ctx
);
/*
* Free streaming reader.
*/
void pdfmake_stream_reader_free(pdfmake_stream_reader_t *reader);
/*
* Read and parse header/linearization dictionary.
* This is the first fetch operation.
*/
pdfmake_err_t pdfmake_stream_reader_read_header(pdfmake_stream_reader_t *reader);
/*
lib/PDF/Make/Linearization.pm view on Meta::CPAN
=head2 new
my $reader = PDF::Make::StreamReader->new(
fetch => sub {
my ($offset, $length) = @_;
# Return $length bytes starting at $offset
return $data;
}
);
Creates a new streaming reader with the given fetch callback.
=head2 read_header
$reader->read_header;
Reads and parses the PDF header and linearization dictionary.
This is the first operation to perform.
=head2 is_linearized
( run in 2.075 seconds using v1.01-cache-2.11-cpan-995e09ba956 )