aspose-free-consulting / projects

The starting point for Aspose free consulting projects
5 stars 5 forks source link

Cloud API PDF to TXT (cURL) #391

Open nachoalas opened 2 months ago

nachoalas commented 2 months ago

I am trying to use cURL to convert PDF to txt. When I do it on the web (https://products.aspose.app/pdf/conversion) I get an optimal result of the document in txt. However, when I do it with cURL, I get different result.

cURL code "-X PUT -H \"Authorization: Bearer " & $tokens & " \" -H \"Content-Type: multipart/form-data\" -F " & Quote ( "Document=@$file;filename=" & GetContainerAttribute ( $file ; "filename" ) ) & " -D $header" https://api.aspose.cloud/v4.0/words/convert?inputType=pdf&outputType=TXT&xmlType=1&xmlTag=&fontSize=&isToSingle=false&separator=comma&format=txt

Conversion cURL THE_40_YEAR-OLD_V_cURL.txt

Conversion WEB THE_40_YEAR-OLD_V_Web.txt

PDF THE_40_YEAR-OLD_V.pdf

Thanks in advanced for your help.

tilalahmad commented 2 months ago

@nachoalas

Please note that the web app(https://products.aspose.app/pdf/conversion) is using Aspose.PDF on-premise API for PDF to Text conversion. It provides optimized output. However, our cloud API misses the feature. We have logged a ticket(PDFCLOUD-4133) to resolve the issue. We will notify you as soon as we fix it.

nachoalas commented 1 month ago

Hello, any news on this issue?

tilalahmad commented 1 month ago

@nachoalas

I am afraid the issue is still not resolved; it is pending for investigation in the queue. We will share an ETA/update with you as soon as we complete the investigation.