In this section, we are going to perform the PDF to Text conversion using cURL commands. Image 1:- Preview of PDF to Text conversion in cloud storage PDF to TXT using cURL Commands # Finally, call the method convertDocument(…) to convert PDF to Text and save the output in Cloud storage.Thirdly, create an object of ConvertDocumentRequest(…) where we provide arguments of File object, TXT as resultant format and output path of resultant TXT file.After the conversion, the resultant file is saved in cloud storage. Please use the following code snippet to load PDF from local drive and save to TXT format. Finally, call the method getDocumentWithFormat(…) to convert PDF to Text and save the output in Cloud storage.Now, create an object of GetDocumentWithFormatRequest(…) where we specify the output format as TXT format.
0 Comments
Leave a Reply. |