Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filelink convertFile with option docinfo not working #49

Open
aldoreyes opened this issue Oct 26, 2020 · 0 comments
Open

Filelink convertFile with option docinfo not working #49

aldoreyes opened this issue Oct 26, 2020 · 0 comments

Comments

@aldoreyes
Copy link

aldoreyes commented Oct 26, 2020

Trying to get the numpages of a pdf file by using the following is not working.

$filelink->convertFile('jpg', ['docinfo' => TRUE]);

The response from this call returns this:

array:2 [
  "dimensions" => array:2 [
    "height" => 792
    "width" => 612
  ]
  "numpages" => 2
]

Since the response to these transform calls is handled in CommonMixin::handleResponseCreateFilelink

It tries to run the code and fails on this line $url = $json_response['url']; Since the response doesn't have a url property.

It doesn't seem that there is any code handling this kind of requests even when in the docs it mentions this option docinfo is available through this convertFile function.

Expected Result: It should handle the response and expose the result either as a property in FileLink or in a new class.

Edit: typos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant