Api2Pdf - PDF Generation, Powered by AWS Lambda
  1. Headless Chrome
Api2Pdf - PDF Generation, Powered by AWS Lambda
  • Headless Chrome
    • Convert raw HTML to PDF
      POST
    • Convert URL to PDF
      GET
    • Convert URL to PDF
      POST
  • LibreOffice
    • Convert office document or image to PDF
      POST
  • Merge
    • Combine Pdfs
      • Merge multiple PDFs together
  • wkhtmltopdf
    • Convert raw HTML to PDF
      POST
    • Convert URL to PDF
      GET
    • Convert URL to PDF
      POST
  • ZXING (Zebra Crossing) Bar Codes
    • Generate bar codes and QR codes with ZXING.
      GET
  • /2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy
    POST
  • /2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy
    GET
  • /2015-03-31/functions/{FunctionName}/policy
    POST
  • /2015-03-31/functions/{FunctionName}/policy
    GET
  • /2015-03-31/functions/{FunctionName}/aliases
    POST
  • /2015-03-31/functions/{FunctionName}/aliases
    GET
  • /2020-04-22/code-signing-configs/
    POST
  • /2020-04-22/code-signing-configs/
    GET
  • /2015-03-31/event-source-mappings/
    POST
  • /2015-03-31/event-source-mappings/
    GET
  • /2015-03-31/functions
    POST
  • /2015-03-31/functions/{FunctionName}/aliases/{Name}
    DELETE
  • /2015-03-31/functions/{FunctionName}/aliases/{Name}
    GET
  • /2015-03-31/functions/{FunctionName}/aliases/{Name}
    PUT
  • /2020-04-22/code-signing-configs/{CodeSigningConfigArn}
    DELETE
  • /2020-04-22/code-signing-configs/{CodeSigningConfigArn}
    GET
  • /2020-04-22/code-signing-configs/{CodeSigningConfigArn}
    PUT
  • /2015-03-31/event-source-mappings/{UUID}
    DELETE
  • /2015-03-31/event-source-mappings/{UUID}
    GET
  • /2015-03-31/event-source-mappings/{UUID}
    PUT
  • /2015-03-31/functions/{FunctionName}
    DELETE
  • /2015-03-31/functions/{FunctionName}
    GET
  • /2020-06-30/functions/{FunctionName}/code-signing-config
    DELETE
  • /2020-06-30/functions/{FunctionName}/code-signing-config
    GET
  • /2020-06-30/functions/{FunctionName}/code-signing-config
    PUT
  • /2017-10-31/functions/{FunctionName}/concurrency
    DELETE
  • /2017-10-31/functions/{FunctionName}/concurrency
    PUT
  • /2019-09-25/functions/{FunctionName}/event-invoke-config
    DELETE
  • /2019-09-25/functions/{FunctionName}/event-invoke-config
    GET
  • /2019-09-25/functions/{FunctionName}/event-invoke-config
    PUT
  • /2019-09-25/functions/{FunctionName}/event-invoke-config
    POST
  • /2018-10-31/layers/{LayerName}/versions/{VersionNumber}
    DELETE
  • /2018-10-31/layers/{LayerName}/versions/{VersionNumber}
    GET
  • /2019-09-30/functions/{FunctionName}/provisioned-concurrency
    DELETE
  • /2019-09-30/functions/{FunctionName}/provisioned-concurrency
    GET
  • /2019-09-30/functions/{FunctionName}/provisioned-concurrency
    PUT
  • /2016-08-19/account-settings/
    GET
  • /2019-09-30/functions/{FunctionName}/concurrency
    GET
  • /2015-03-31/functions/{FunctionName}/configuration
    GET
  • /2015-03-31/functions/{FunctionName}/configuration
    PUT
  • /2018-10-31/layers
    GET
  • /2015-03-31/functions/{FunctionName}/invocations
    POST
  • /2014-11-13/functions/{FunctionName}/invoke-async/
    POST
  • /2019-09-25/functions/{FunctionName}/event-invoke-config/list
    GET
  • /2015-03-31/functions/
    GET
  • /2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions
    GET
  • /2018-10-31/layers/{LayerName}/versions
    GET
  • /2018-10-31/layers/{LayerName}/versions
    POST
  • /2018-10-31/layers
    GET
  • /2019-09-30/functions/{FunctionName}/provisioned-concurrency
    GET
  • /2017-03-31/tags/{ARN}
    GET
  • /2017-03-31/tags/{ARN}
    POST
  • /2015-03-31/functions/{FunctionName}/versions
    GET
  • /2015-03-31/functions/{FunctionName}/versions
    POST
  • /2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}
    DELETE
  • /2015-03-31/functions/{FunctionName}/policy/{StatementId}
    DELETE
  • /2017-03-31/tags/{ARN}
    DELETE
  • /2015-03-31/functions/{FunctionName}/code
    PUT
  • Schemas
    • Schemas
      • AddLayerVersionPermissionResponse
      • ApiResponseFailure
      • ServiceException
      • ApiResponseSuccess
      • ResourceNotFoundException
      • ChromeAdvancedOptions
      • ResourceConflictException
      • ChromeHtmlToPdfRequest
      • TooManyRequestsException
      • ChromeUrlToPdfRequest
      • InvalidParameterValueException
      • LibreOfficeConvertRequest
      • PolicyLengthExceededException
      • MergeRequest
      • PreconditionFailedException
      • WkHtmlToPdfAdvancedOptions
      • AddPermissionResponse
      • WkHtmlToPdfHtmlToPdfRequest
      • AliasConfiguration
      • WkHtmlToPdfUrlToPdfRequest
      • AdditionalVersionWeights
      • CreateCodeSigningConfigResponse
      • SigningProfileVersionArns
      • CodeSigningPolicy
      • EventSourceMappingConfiguration
      • OnSuccess
      • OnFailure
      • Topic
      • Queue
      • SourceAccessConfiguration
      • Endpoints
      • FunctionResponseType
      • FunctionConfiguration
      • Blob
      • S3Bucket
      • S3Key
      • S3ObjectVersion
      • String
      • SubnetIds
      • SecurityGroupIds
      • ResourceArn
      • EnvironmentVariables
      • TracingMode
      • TagValue
      • LayerVersionArn
      • FileSystemConfig
      • StringList
      • WorkingDirectory
      • CodeStorageExceededException
      • CodeVerificationFailedException
      • InvalidCodeSignatureException
      • CodeSigningConfigNotFoundException
      • DeleteCodeSigningConfigResponse
      • ResourceInUseException
      • GetAccountSettingsResponse
      • GetCodeSigningConfigResponse
      • GetFunctionResponse
      • GetFunctionCodeSigningConfigResponse
      • GetFunctionConcurrencyResponse
      • FunctionEventInvokeConfig
      • GetLayerVersionResponse
      • GetLayerVersionPolicyResponse
      • GetPolicyResponse
      • GetProvisionedConcurrencyConfigResponse
      • ProvisionedConcurrencyConfigNotFoundException
      • InvocationResponse
      • InvalidRequestContentException
      • RequestTooLargeException
      • UnsupportedMediaTypeException
      • EC2UnexpectedException
      • SubnetIPAddressLimitReachedException
      • ENILimitReachedException
      • EFSMountConnectivityException
      • EFSMountFailureException
      • EFSMountTimeoutException
      • EFSIOException
      • EC2ThrottledException
      • EC2AccessDeniedException
      • InvalidSubnetIDException
      • InvalidSecurityGroupIDException
      • InvalidZipFileException
      • KMSDisabledException
      • KMSInvalidStateException
      • KMSAccessDeniedException
      • KMSNotFoundException
      • InvalidRuntimeException
      • ResourceNotReadyException
      • InvokeAsyncResponse
      • ListAliasesResponse
      • ListCodeSigningConfigsResponse
      • ListEventSourceMappingsResponse
      • ListFunctionEventInvokeConfigsResponse
      • ListFunctionsResponse
      • ListFunctionsByCodeSigningConfigResponse
      • ListLayerVersionsResponse
      • ListLayersResponse
      • ListProvisionedConcurrencyConfigsResponse
      • ListTagsResponse
      • ListVersionsByFunctionResponse
      • PublishLayerVersionResponse
      • Runtime
      • PutFunctionCodeSigningConfigResponse
      • Concurrency
      • PutProvisionedConcurrencyConfigResponse
      • TagKey
      • UpdateCodeSigningConfigResponse
      • Long
      • Integer
      • UnreservedConcurrentExecutions
      • AccountLimit
      • AccountUsage
      • Action
      • LayerName
      • LayerVersionNumber
      • StatementId
      • LayerPermissionAllowedAction
      • LayerPermissionAllowedPrincipal
      • OrganizationId
      • AddLayerVersionPermissionRequest
      • FunctionName
      • Principal
      • Arn
      • SourceOwner
      • EventSourceToken
      • Qualifier
      • AddPermissionRequest
      • AdditionalVersion
      • Weight
      • Alias
      • FunctionArn
      • Version
      • Description
      • AliasRoutingConfiguration
      • AliasList
      • AllowedPublishers
      • BatchSize
      • BisectBatchOnFunctionError
      • BlobStream
      • Boolean
      • CodeSigningConfigId
      • CodeSigningConfigArn
      • CodeSigningPolicies
      • Timestamp
      • CodeSigningConfig
      • CodeSigningConfigList
      • CompatibleRuntimes
      • ReservedConcurrentExecutions
      • CreateAliasRequest
      • CreateCodeSigningConfigRequest
      • Enabled
      • MaximumBatchingWindowInSeconds
      • ParallelizationFactor
      • EventSourcePosition
      • Date
      • DestinationConfig
      • MaximumRecordAgeInSeconds
      • MaximumRetryAttemptsEventSourceMapping
      • TumblingWindowInSeconds
      • Topics
      • Queues
      • SourceAccessConfigurations
      • SelfManagedEventSource
      • FunctionResponseTypeList
      • CreateEventSourceMappingRequest
      • RoleArn
      • Handler
      • FunctionCode
      • Timeout
      • MemorySize
      • VpcConfig
      • PackageType
      • DeadLetterConfig
      • Environment
      • KMSKeyArn
      • TracingConfig
      • Tags
      • LayerList
      • FileSystemConfigList
      • ImageConfig
      • CreateFunctionRequest
      • DeleteAliasRequest
      • DeleteCodeSigningConfigRequest
      • DeleteEventSourceMappingRequest
      • DeleteFunctionCodeSigningConfigRequest
      • DeleteFunctionConcurrencyRequest
      • DeleteFunctionEventInvokeConfigRequest
      • DeleteFunctionRequest
      • DeleteLayerVersionRequest
      • DeleteProvisionedConcurrencyConfigRequest
      • DestinationArn
      • EndPointType
      • Endpoint
      • EndpointLists
      • SensitiveString
      • EnvironmentError
      • EnvironmentResponse
      • EnvironmentVariableName
      • EnvironmentVariableValue
      • EventSourceMappingsList
      • FileSystemArn
      • LocalMountPath
      • FunctionArnList
      • FunctionCodeLocation
      • NamespacedFunctionName
      • NameSpacedFunctionArn
      • VpcConfigResponse
      • TracingConfigResponse
      • LayersReferenceList
      • State
      • StateReason
      • StateReasonCode
      • LastUpdateStatus
      • LastUpdateStatusReason
      • LastUpdateStatusReasonCode
      • ImageConfigResponse
      • MaximumRetryAttempts
      • MaximumEventAgeInSeconds
      • FunctionEventInvokeConfigList
      • FunctionList
      • FunctionVersion
      • GetAccountSettingsRequest
      • GetAliasRequest
      • GetCodeSigningConfigRequest
      • GetEventSourceMappingRequest
      • GetFunctionCodeSigningConfigRequest
      • GetFunctionConcurrencyRequest
      • GetFunctionConfigurationRequest
      • GetFunctionEventInvokeConfigRequest
      • GetFunctionRequest
      • GetLayerVersionByArnRequest
      • GetLayerVersionPolicyRequest
      • GetLayerVersionRequest
      • LayerVersionContentOutput
      • LayerArn
      • LicenseInfo
      • GetPolicyRequest
      • GetProvisionedConcurrencyConfigRequest
      • PositiveInteger
      • NonNegativeInteger
      • ProvisionedConcurrencyStatusEnum
      • HttpStatus
      • ImageConfigError
      • InvocationType
      • LogType
      • InvocationRequest
      • InvokeAsyncRequest
      • Layer
      • LayerVersionContentInput
      • LayerVersionsListItem
      • LayerVersionsList
      • LayersListItem
      • LayersList
      • MaxListItems
      • ListAliasesRequest
      • ListCodeSigningConfigsRequest
      • ListEventSourceMappingsRequest
      • MaxFunctionEventInvokeConfigListItems
      • ListFunctionEventInvokeConfigsRequest
      • ListFunctionsByCodeSigningConfigRequest
      • MasterRegion
      • ListFunctionsRequest
      • MaxLayerListItems
      • ListLayerVersionsRequest
      • ListLayersRequest
      • MaxProvisionedConcurrencyConfigListItems
      • ListProvisionedConcurrencyConfigsRequest
      • ProvisionedConcurrencyConfigList
      • ListTagsRequest
      • ListVersionsByFunctionRequest
      • NamespacedStatementId
      • ProvisionedConcurrencyConfigListItem
      • PublishLayerVersionRequest
      • PublishVersionRequest
      • PutFunctionCodeSigningConfigRequest
      • PutFunctionConcurrencyRequest
      • PutFunctionEventInvokeConfigRequest
      • PutProvisionedConcurrencyConfigRequest
      • RemoveLayerVersionPermissionRequest
      • RemovePermissionRequest
      • SecurityGroupId
      • SourceAccessType
      • URI
      • SubnetId
      • TagKeyList
      • TagResourceRequest
      • UntagResourceRequest
      • UpdateAliasRequest
      • UpdateCodeSigningConfigRequest
      • UpdateEventSourceMappingRequest
      • UpdateFunctionCodeRequest
      • UpdateFunctionConfigurationRequest
      • UpdateFunctionEventInvokeConfigRequest
      • VpcId
  1. Headless Chrome

Convert raw HTML to PDF

The AWS Lambda multi-region endpoint
http://lambda.{region}.amazonaws.com
The AWS Lambda multi-region endpoint
http://lambda.{region}.amazonaws.com
POST
/chrome/html
Convert HTML to a PDF using Headless Chrome on AWS Lambda.

Authorize via Header of Request#

Authorization: YOUR-API-KEY

Request

Body Params application/json

Examples

Responses

🟢200A JSON object containing the url to the PDF and other meta data
application/json
Body

🟠401Failed to generate PDF
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http://lambda.{region}.amazonaws.com/chrome/html' \
--header 'Content-Type: application/json' \
--data-raw '{
    "fileName": "test.pdf",
    "html": "<p>Hello World</p>",
    "inlinePdf": true,
    "options": {
        "landscape": "true",
        "printBackground": false
    }
}'
Response Response Example
200 - Example 1
{
    "cost": 0.0007979,
    "mbIn": 0.06463,
    "mbOut": 0.73327,
    "pdf": "https://link-to-your-pdf",
    "success": true
}
Modified at 2023-08-15 08:35:15
Next
Convert URL to PDF
Built with