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.

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입