pdfrx_engine 0.1.3 copy "pdfrx_engine: ^0.1.3" to clipboard
pdfrx_engine: ^0.1.3 copied to clipboard

pdfrx_engine is a PDF rendering API built on top of PDFium, designed to be used with the pdfrx plugin.

example/README.md

pdfrx_engine Examples #

This directory contains examples demonstrating how to use pdfrx_engine.

pdf2image.dart #

Converts a PDF file to PNG images (one image per page).

Usage #

dart pub get
dart run pdf2image.dart <pdf_file> [output_dir]

Example #

dart run pdf2image.dart document.pdf ./output

This will:

  • Read document.pdf
  • Create PNG images for each page
  • Save them as page_1.png, page_2.png, etc. in the ./output directory

Features #

  • Renders pages at 2x scale for better quality
  • Uses white background for transparent areas
  • Creates output directory if it doesn't exist
  • Uses the createImageNF extension method for image conversion
7
likes
0
points
44.5k
downloads

Publisher

verified publisherespresso3389.jp

Weekly Downloads

pdfrx_engine is a PDF rendering API built on top of PDFium, designed to be used with the pdfrx plugin.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

archive, collection, crypto, ffi, http, image, path, rxdart, synchronized, vector_math

More

Packages that depend on pdfrx_engine