Bestseller

HTML to PDF

Supports converting web pages to PDF

Efficient PDF GenerationProvides Permanent Links
 Web Tools | File Processing | PDF

Data & API Features

  • Superior performance conversion efficiency;
  • Supports converting passed HTML to PDF, supports converting CSS format in HTML;
  • Supports passing website URL, directly converting page to corresponding PDF file;
  • The converted PDF provides a permanent storage file address;
  • Full interface supports HTTPS (TLS v1.0 / v1.1 / v1.2 / v1.3);
  • Fully compatible with Apple ATS;
  • National multi-node CDN deployment;
  • Interface response is extremely fast, and multiple servers build API interface load balancing.

API Document

HTTP Protocol:HTTPS

HTTP Method:POST

HTTP Endpoint:https://api.gugudata.io/v1/imagerecognition/html2pdf

Response Type:application/json; charset=utf-8

DEMO Endpoint:https://api.gugudata.io/v1/imagerecognition/html2pdf/demo

API Request Parameters

NameTypeIs RequiredDefault ValueRemark
appkeystringtrueYOUR_APPKEYAPPKEY obtained after payment
typestringtrueYOUR_VALUEOptional parameters are HTML or URL (Note: when the type is URL, ensure that the page can be requested normally. Our interface does not handle requests for encrypted pages, anti-crawling pages, etc., that cannot return HTML normally)
contentstringtrueYOUR_VALUEContent body. If type=HTML, pass HTML content; if type=URL, pass the URL of the site to be stored as a PDF
landscapeintfalse0Controls whether the generated PDF is in landscape page mode. Pass 1 to control landscape rendering mode, default is 0

API Response Parameters

NameTypeRemark
DataStatus.StatusCodeintInterface return status code
DataStatus.StatusDescriptionstringInterface return status description
DataStatus.ResponseDateTimestringInterface data return time
DataStatus.DataTotalCountintTotal data volume under this condition, generally used for pagination calculation
DatastringPermanent link to the converted PDF

API Response Status Codes

Status CodeExplanation of Status CodeRemarks
200API responding normally For business status codes, see below under API Custom Status Codes.
400Parameter error
402APPKEY error Please check if the APPKEY provided is the one obtained from the developer center.
403Account overdue Please pay attention to the E-mail reminders regarding order expiration.
429Request rate limited Requests cannot exceed 5 times per second. The CDN layer intelligently determines based on the frequency of IP requests. General high-frequency requests do not trigger this status code.
500API response error

Code Snippets Run In Postman

Others also bought

Data and API Description
Review ratingReview ratingReview ratingReview ratingReview rating
4.98
Website Tools
  • Intelligently extracts key elements of articles
Data and API Description
Review ratingReview ratingReview ratingReview ratingReview rating
4.97
Website Tools
  • Returns data for various record types
Data and API Description
Review ratingReview ratingReview ratingReview ratingReview rating
4.97
Website Tools
  • Provides domain SSL certificate information parsing