PDF to PNG Rasterizer - convert PDF documents to images

免费增值
通过 mazira | 已更新 24 दिन पहले | Data
Health Check

N/A

返回所有讨论

API Consume

Rapid account: Jonimane
jonimane
10 वर्ष पहले

I am trying to consume the API from MaShape ( https://www.mashape.com/mazira/PDF to PNG Rasterizer - convert PDF documents to images#!documentation ) and i am got:
“An error occurred while making the HTTP request org.apache.http.NoHttpResponseException: The target server failed to respond”

Params.
http://gyazo.com/84bcd5cab93ad2643ee329ad866b153b

Rapid account: Jonimane
jonimane Commented 10 वर्ष पहले

Hmm, i understand.

Yeah, the params are pretty high, but i need then.
Is there another way to send the response to an email? This is temporary, just to test the service.

Rapid account: Mazira
mazira Commented 10 वर्ष पहले

I will add that if Mashape is still timing out when processing the pages individually, there are a few things we can try. Your res and quality params are pretty high, and reducing them will speed up the processing. If this is not acceptable, we may have to implement a session endpoint, where you can fire off the conversion and then ping a new URL to detect when the processing is complete.

Rapid account: Mazira
mazira Commented 10 वर्ष पहले

This error occurs when the Mashape proxy times-out and assumes it is getting no response from the server. This can happen when processing multiple pages at high resolution. I believe that Mashape recently reduced its timeout, exacerbating the problem.

There is a way to process a PDF page-by-page, which should avoid the timeout issue. This is not yet documented in Mashape, but I will describe it below:

If the output parameter is not specified, it will assume that you are processing page-by-page, and will immediately return a JSON array of relative page URLs. You can then send individual GET requests to these URLs, along with the res, quality, and png8 parameters as query parameters. Note that in this mode, it is not necessary to send res, quality, or png8 along with the original POST request.

I will update the Mashape documentation to reflect this additional option.

Rapid account: Jonimane
jonimane Commented 10 वर्ष पहले

My files generaly have just one and no more than two pages.

Rapid account: Jonimane
jonimane Commented 10 वर्ष पहले

For now i prefer to send the file cause i am testing.
So, how can i send you the files?

Rapid account: Mazira
mazira Commented 10 वर्ष पहले

If you are willing to send me the file, I can send you a result that I pass through manually. Otherwise, we should have a task-oriented API, that won’t time out, by the end of the day.

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论