Skip to content

Opening pdf file #51

Open
Open
@web-apply

Description

@web-apply

Hello, I am new to php-vips add on.
This functions working good.
$x = vips_image_new_from_file($file)["out"]; (any files tpyes jpg, png, pdf)
vips_image_write_to_file($x, "temp/$filename-to.png",["Q"=>90);

But how can I custom read load $img=vips_pdfload() or $img=vips_pngload() with php plugin.

$img=vips_call("pdfload","file.pdf"); not working; How can i use spefic 300 operations on php ?

8.12.2 Active php ext functions;

  | (
  | [0] => vips_image_new_from_file
  | [1] => vips_image_new_from_buffer
  | [2] => vips_image_new_from_array
  | [3] => vips_image_write_to_file
  | [4] => vips_image_write_to_buffer
  | [5] => vips_image_copy_memory
  | [6] => vips_image_new_from_memory
  | [7] => vips_image_write_to_memory
  | [8] => vips_image_write_to_array
  | [9] => vips_foreign_find_load
  | [10] => vips_foreign_find_load_buffer
  | [11] => vips_interpolate_new
  | [12] => vips_call
  | [13] => vips_image_get
  | [14] => vips_image_get_typeof
  | [15] => vips_image_set
  | [16] => vips_type_from_name
  | [17] => vips_image_set_type
  | [18] => vips_image_remove
  | [19] => vips_error_buffer
  | [20] => vips_cache_set_max
  | [21] => vips_cache_set_max_mem
  | [22] => vips_cache_set_max_files
  | [23] => vips_concurrency_set
  | [24] => vips_cache_get_max
  | [25] => vips_cache_get_max_mem
  | [26] => vips_cache_get_max_files
  | [27] => vips_cache_get_size
  | [28] => vips_concurrency_get
  | [29] => vips_version
  | )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions