docverter

How to use Docverter in AngularJS/NodeJS to convert GENERATED html to pdf for downloading

自闭症网瘾萝莉.ら 提交于 2019-12-24 15:33:41
问题 API of docverter is mentioned in curl format as shown below curl \ http://c.docverter.com/convert \ -F from=html \ -F to=pdf \ -F input_files[]=@<(echo hello) API states that input_files[] value should be a multipart/form-data file upload but in my AngularJS application, I am dynamically generating a report (at a specific route) which means it is not an html file which can be uploaded using file upload control. My question may be bit vague because by looking at the docverter API, I am not

uploading text blob as file using $http or $resource with angular.js - mimicking curl style multipart/form upload

≡放荡痞女 提交于 2019-12-12 06:32:10
问题 So I need to: upload a text blob as a file using $http or $resource with angular.js - mimicking curl style multipart/form upload. There is a previous post on this problem i'm going to try to be more explicit about the issue with hopes that someone can identify where I may be going astray. Here is an example of the curl command that I know works with this service: curl \ http://c.docverter.com/convert \ -F from=markdown \ -F to=pdf \ -F input_files[]=@<(echo hello) #or @example.md for a file

Executing Curl with PHP

被刻印的时光 ゝ 提交于 2019-12-06 05:21:01
问题 I'm trying to use Docverter to convert LaTeX/markdown files to PDF but am having trouble using PHP to do CURL to access Docverter via their API. I'm know I'm not a total idiot b/c i can get this to work adapting the shell script in this Docverter example and running from command line (Mac OSX). Using PHP's exec() : $url=$_SERVER["DOCUMENT_ROOT"]; $file='/markdown.md'; $output= $url.'/markdown_to_pdf.pdf'; $command="curl --form from=markdown \ --form to=pdf \ --form input_files[]=@".$url.$file

Executing Curl with PHP

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 11:21:25
I'm trying to use Docverter to convert LaTeX/markdown files to PDF but am having trouble using PHP to do CURL to access Docverter via their API . I'm know I'm not a total idiot b/c i can get this to work adapting the shell script in this Docverter example and running from command line (Mac OSX). Using PHP's exec() : $url=$_SERVER["DOCUMENT_ROOT"]; $file='/markdown.md'; $output= $url.'/markdown_to_pdf.pdf'; $command="curl --form from=markdown \ --form to=pdf \ --form input_files[]=@".$url.$file." \ http://c.docverter.com/convert > ".$output; exec("$command"); This gives no error messages but