Questions tagged [convertapi]

ConvertAPI is a high-performance 200+ file format conversion and manipulation REST API service. It can be integrated into any application or platform using either our SDK libraries or plain HTTP requests. Use this tag for questions related to the ConvertAPI service. Please include all relevant tags on your question, e.g., programming language, file formats, etc.

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 views

ConvertAPI giving 4000 Parameter validation error - file must be greater than 0, but I'm sending a large file

I'm trying to post to ConvertAPI's pdf/to/jpg endpoint, and am getting the following error: {"Code":4000,"Message":"Parameter validation error.","InvalidParameters&...
hgolov's user avatar
  • 672
0 votes
0 answers
15 views

Convert API: What is the maximum file size we can upload through HTTP Request

I am trying to split PDF into pages if it exceeds the file size of 20mb, Need to know what is the maximum file size that we can upload through Convert API HTTP Request Tried up to 60mb of files after ...
Eulin Bennet's user avatar
0 votes
0 answers
77 views

What is the PPI (Pixels Per Inch) used when converting Web to PDF?

We are using convertAPI to convert webpages to PDF. One of our requierements is that the webpage content fits onto exactly one PDF page. We know the height of the page in pixels and are trying to ...
Zach Hislop's user avatar
0 votes
0 answers
36 views

convertapi gives issue while converting docx to pdf in IOS device

I am trying to convert docx file to pdf using convertapi. The language i am using is Python and also i am doing some jinja2 templating in docx file. Everything works well with Android and web app. But ...
Pooja Kumari's user avatar
0 votes
0 answers
99 views

The CSS property 'position' doesn't work on ConvertAPI

I use the html to PDF conversion via PHP integration with ConvertAPI. Since 2022/12/07 i'm having troubles with 'position' CSS property. All of my templates that are converted are fully based on '...
Gabriel Machado's user avatar
2 votes
1 answer
92 views

`Bad Value` when connecting to an external API in google app script

Trying to fetch data from the ConvertAPI's web to jpg but the program throws an error for a Bad Value. Here's my code : const url = 'https://v2.convertapi.com/convert/web/to/png?Secret=...' const ...
Vayun's user avatar
  • 95
0 votes
1 answer
89 views

ConvertAPI Response Object formatting

I am currently using Power Automate in order to transform DOCX documents into HTML documents. The integration with the convertAPI came as easy as possible, but I wonder if there is a way to receive ...
jimas13's user avatar
  • 599
0 votes
1 answer
92 views

_path2.default.basename is not a function using convertapi in angular

I am trying to integrate the convertapi in my Angular 11 application using the following documentation https://www.npmjs.com/package/convertapi I need to convert the pdf's into images, When I try to ...
Adnan Sheikh's user avatar
2 votes
1 answer
578 views

Merge PDF in ConvertAPI using Google Apps Script

I'm attempting to merge two PDF files from Google Drive via ConvertAPI with the following code. Both pdf1 and pdf2 are file objects. function mergePDFs(pdf1,pdf2){ const formData = "" ...
Jacob Bauer's user avatar
-1 votes
1 answer
144 views

Converapi - Pdf Limitation and Load

We are thinking to use ConverAPI component to handle the pdf conversion in our application. But we are still unclear about the Limitation of Pdf generation and the Load handling. How much Load will ...
Prasanna Venkatesh's user avatar
0 votes
2 answers
182 views

ConvertApi: corrupted file from the API response

I have a local file default.xlsx. I send it to https://v2.convertapi.com. I take the content from the response and I try to save it in a default.pdf. I have no error message. When I try to open the ...
Utopion's user avatar
  • 958
0 votes
1 answer
66 views

Convertapi in AWS lambda?

I need to deploy convertapi on an AWS Lambda. If I try import convertapi with python, it doesn't work because I need to import it. In AWS, we use local folder or ARN to deploy libraries. Is there an ...
Utopion's user avatar
  • 958
0 votes
1 answer
464 views

ConvertAPI: Convert HTML to DOCX doesn't work with grid css

I want to convert HTML to DOCX have a text with 2 columns inside by using https://www.convertapi.com/ But when I use "display: grid" in HTML file, it doesn't work in DOCX file. I tried with &...
Toàn Lê's user avatar
0 votes
1 answer
383 views

ConvertAPI : Upload doc as stream to convert to PDF returns garbled data

I have a code which gets byte array from my database and sends it to convertAPI to convert it as PDF. When I download the doc as is it works fine (so no issue with the byte[] or document), but when I ...
Karthik Ganesan's user avatar
1 vote
0 answers
121 views

Error in index.js, where converApi.auth is not defined.?

While running the below code let convertApi = ConvertApi.auth({secret: '<YOUR_SECRET>'}) let elResult = document.getElementById('result') let elResultLink = document.getElementById('resultLink') ...
Aravinda KS's user avatar
1 vote
0 answers
498 views

What's the best way to convert a .doc or .docx document to .odt using Python?

I've tried the following. It involves the use of the convertapi library. import convertapi import ...
Victor Simon's user avatar
1 vote
3 answers
168 views

Read JSON from JavasScript - Cannot read property '0' of undefined

I have a JSON response similar to this from ConvertAPI : { "ConversionCost":10, "Files":[ { "FileName":"somefile_XXX.pdf", "...
Stig Kølbæk's user avatar
0 votes
1 answer
482 views

Cant Merge Pdf's with ConvertApi Rest api Flutter

I made the same requests for converting DOCX, excel.ppt to PDF they worked. But Merge PDF does not work. I select PDF's with file picker than I send request to convertApi . But ConvertApi returns my ...
Ahmet Yusuf 's user avatar
0 votes
0 answers
90 views

convertApi.ConvertAsync is not returning converted image

I am trying to convert vsd/vsdx to png file, it was working fine until today. here is my code. please help. code stuck on convertApi.ConvertAsync line, it doesn't throw any error. but it just doesn't ...
Anuj Rawat's user avatar
0 votes
2 answers
68 views

Function call inside loop gets called after the loop ends

So I use this API that helps me turn a .docx file into a .pdf. I placed the code that converts the file into a function. : function conv(){ convertapi.convert('pdf', { File: final_path }) .then(...
Alec's user avatar
  • 73
0 votes
2 answers
118 views

How I can process files in a directory all at one time?

I have a directory with 100 of xlxs files. Now what I want to do is to convert all these files into PDF all at one time or some at one time. The conversion process is working fine at the moment with ...
Amit Sharma's user avatar
  • 1,785
0 votes
1 answer
2k views

Background image not appearing in converted html to pdf

I am having issues getting a background image to work using your conversion api. Eg of the template file styling: <meta charset="utf-8" /> <link href="https://use.typekit.net/...
Benzine's user avatar
  • 474
1 vote
3 answers
229 views

Json not being parsed ConvertAPI

I'm using classic asp & JSON to convert html to pdf. I send the request using the following: ''Convert output to pdf varURL = "https://" & varServerLive & "/...
Benzine's user avatar
  • 474
0 votes
0 answers
249 views

ConvertAPI Conversion Failed with "Maximum Execution time ... exceeded"

I am using convert API to convert DOCX to PDF with Laravel (PHP) but I get error like this. What should I do? I try to searching about this error but I can't find anything. for($i=0, $i<size; $i++)...
Muhammad Zainul Mutaqin's user avatar
1 vote
0 answers
656 views

Django fetching file from an URL and save it to a model FileField with S3

I need to fetch a file from an API and then save it in an Survey object. It seems to be working fine, i.e. I can fetch the file and save it where I need to, but a ConnectionAbortedError is raised and ...
Benjamin Hennequart's user avatar
0 votes
1 answer
57 views

Convertapi module launch multiple tkinter instances when called

I'm using the module convertapi to merge files in a tkinter application in Python3.8. When I have some tkinter window in my code, if convertapi.convert('merge', {'Files': input_files}) is called, ...
Benjamin Hennequart's user avatar
1 vote
1 answer
521 views

Merging PDFs in python using convertapi

I'm trying to use the module convertapi to merge PDFs in Python3.8. I've tried multiple ways but I'm unable to figure out the origin of the returned error. Here is my function: def merger(output_path,...
Benjamin Hennequart's user avatar
0 votes
0 answers
202 views

ConvertApi and Google Script:I sometime get an "error 500 while mergin' pdf " but not always

Ciao, I am using convertapi to merge pdfs in a Google App Script ( pdfs are created from email attachment received from customers of ours ). The code is BLA BLA BLA BLA while (files.hasNext()) { ...
Cagliano Lc's user avatar
1 vote
1 answer
74 views

Response 5002: PDF damaged

When I try to use ConvertAPIs PDF to txt with Node.js i get the Response 5002: PDF Damaged. Here is my code: let convertapi = require('convertapi')('secret'); return convertapi.convert('txt', { ...
jkronlachner's user avatar
1 vote
0 answers
1k views

Cannot read pdf file from convertApi response

I was trying to use convertApi (https://www.convertapi.com/pdf-to-compress) in Flutter to compress a pdf. I managed to send a request, get a 200 response code, and extract the 'FileData' from the Json ...
istarii's user avatar
  • 11
0 votes
1 answer
5k views

In my python code, how to catch an HTTP 500 exception 'raise'd by the imported requests module?

In short, I am using the paid convertapi.com service to convert PDF files to text for examination. If convertapi returns an HTTP 500 response to the conversion request (and I know that it does thanks ...
Chip's user avatar
  • 21
1 vote
1 answer
351 views

Conversion fails when running jobs (API Convertapi : docx to pdf)

I have been running into the following problem when trying to convert a docx file into a pdf : the conversion works when I convert one file but fails when I want to convert them using Laravel jobs.. ...
Louis Charles's user avatar
2 votes
1 answer
163 views

How to detect/trap error codes from convertapi so that my python app doesn't fail?

First, my apologies as a Python newbie that I'm asking this question. It probably has nothing at all to do with convertapi and more to do with my basic lack of understanding as to how to interact with ...
Chip's user avatar
  • 21
0 votes
0 answers
61 views

Accents issue doc to txt

First I want to convert pdf file to html, but the api can't do that. So I tried to convert pdf to txt. I have a lot of problems with multiple space or line... So I tried (again) to convert pdf to ...
Thomas Durand's user avatar
1 vote
0 answers
2k views

How to fix 'Status=Internal Server Error, StatusCode=500' error in convertapi for pdf merge in apex?

I want to merge PDFs that I have in my Salesforce org using "convertapi". I follow this link: https://www.convertapi.com/pdf-to-merge and apply using reference code using JSON and the apex. code is ...
RU_23's user avatar
  • 89
3 votes
1 answer
1k views

Compress PDF file in Google Script

How to compress a pdf file in a Google Script ? I already use convertapi to merge pdf files, successfuly. But I try, unsuccessfuly, to compress the final pdf file Code OK for MERGE var file = ...
Guénaël GAC's user avatar
1 vote
0 answers
165 views

ConvertAPI DOCX to PDF, want MS Word style comments in margins

I want to convert DOCX files to PDF using ConvertAPI. When a .DOCX is saved as a .PDF in Word O365, the comments are output in the right margin. I am aware that the comments can be converted to PDF ...
Kyle's user avatar
  • 321
1 vote
1 answer
136 views

ConvertApi NuGet Package Error: Could not install package 'ConvertApi 2.7.0'

I am Adding ConvertApi nuget package to Convert PDF to Doc file, But getting below Error Could not install package 'ConvertApi 2.7.0'. You are trying to install this package into a project that ...
shamshad khan's user avatar
1 vote
0 answers
192 views

convertapi pdf to image: specify page range

I need a png thumbnail of various document types, just the first page, in order to have a quick preview. For a docx document, it is possible to specify page range. But for a pdf file, there is no ...
patb's user avatar
  • 1,738
0 votes
1 answer
358 views

Convert files and merge using ConvertAPI

I am trying to convert my doc and png files to PDF and merge them using ConvertAPI, Whenever I try to run the code snippet provided on their site it just doesn't return any file result. The online ...
Karthik Ganesan's user avatar
1 vote
1 answer
178 views

ConvertAPI array of Results instead of ResultFiles

I am trying to split a PDF into separate pages, then use a user provided organizational pattern (like how you print various pages in Word), and then merge the separate pages into separate documents ...
Bemuzzled's user avatar
4 votes
2 answers
4k views

Convert a gdoc into image

is there a way to create an image (e.g. a png) from a google document? I really mean an image, not just a pdf. GetAS only creates pdf, but returns an error if contentType is set to image/png or other ...
fulvio's user avatar
  • 43
0 votes
1 answer
2k views

Multi line header using phpspreadsheet

I insert multi line header using phpspreadsheet. Then, I save as xlsx file. I use convertapi to convert the xlsx file to pdf. In pdf, only header line one only aligned to center. $spreadsheet->...
Premlatha's user avatar
  • 1,768
0 votes
2 answers
86 views

How to select range before convert xlsx to pdf using convertapi

Using convertapi, I would like to set range and convert only selected area to pdf. Is this possible? <?php require_once('vendor/autoload.php'); require_once 'vendor/convertapi/convertapi- php/lib/...
Premlatha's user avatar
  • 1,768
1 vote
1 answer
266 views

Is there way to convert docx to image-only pdf with convertapi?

I'm trying to find a way to convert docx to image-only pdf, so I could put a watermark on the pdf document right after conversion. I've looked through convertapi documentation and I can't find any ...
rreckonerr's user avatar
0 votes
3 answers
390 views

ConvertAPI: PDF to JPEG in Python 2.7.10 - how to get the conversion result URL?

I'm pretty much a noob with Python (and coding in general), so please excuse me if I'm being stupid. I'm writing a short script for a custom Zapier step, which is supposed to iterate through a list ...
Manuel Imboden's user avatar
0 votes
1 answer
100 views

ConvertApi doesn't follow HTTP 302 Redirect

I'm trying to convert a file which is located on a remote server. I use ConvertApi for .NET. My code: string url = "http://test.com/myfile"; var convertApi = new ConvertApi("secret"); var response = ...
Vladimir Panchenko's user avatar
0 votes
0 answers
82 views

Why does ConvertAPI gives me error in drupal7

I m using ConvertAPI for convert doc to jpg . It works correct in PHP. But When I put same code In drupal 7 it Gives me error below ConvertApi\Error\Api: File link is set incorrectly. URL or File Id ...
Patel Nitesh's user avatar
0 votes
1 answer
1k views

How to convert HTML String to PDF using ConvertAPI (without a physical file)

Previously I was using http://do.convertapi.com/Web2Pdf to convert HTML String to PDF using a simple GET request (not POST) using Java. The entire content was passed using curl parameter. However, ...
DFB's user avatar
  • 861
0 votes
0 answers
261 views

convertApi not including fonts in html jpg conversion

I am using convertapi in order to generate an image from a html page (web 2 jpg) and it is not including the fonts that i am loading from a css file. Have unsuccessfully tried to include this fonts ...
Tyra Pululi's user avatar