Method: Vips::Image.pdfload
- Defined in:
- lib/vips/methods.rb
.pdfload(filename, **opts) ⇒ Vips::Image, Hash<Symbol => Object>
Load pdf from file (poppler).
Parameters:
-
filename
(String)
—
Filename to load from
-
opts
(Hash)
—
Set of options
Options Hash (**opts):
-
:page
(Integer)
—
First page to load
-
:n
(Integer)
—
Number of pages to load, -1 for all
-
:dpi
(Float)
—
DPI to render at
-
:scale
(Float)
—
Factor to scale by
-
:background
(Array<Double>)
—
Background colour
-
:password
(String)
—
Password to decrypt with
-
:page_box
(Vips::ForeignPdfPageBox)
—
The region of the page to render
-
:memory
(Boolean)
—
Force open via memory
-
:access
(Vips::Access)
—
Required access pattern for this file
-
:fail_on
(Vips::FailOn)
—
Error level to fail on
-
:revalidate
(Boolean)
—
Don't use a cached result for this operation
-
:flags
(Vips::ForeignFlags)
—
Output Flags for this file
Returns:
-
(Vips::Image, Hash<Symbol => Object>)
—
Output image, Hash of optional output items
|
|
# File 'lib/vips/methods.rb', line 1571
|