Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

solutions.elevation.camel:camel-openhtmltopdf

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solutions.elevation.camel:camel-openhtmltopdf

This component currently supports generating PDF files from HTML, CSS and images.

  • 1.0.2
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

camel-openhtmltopdf

A Camel component to generate nice looking PDF files from HTML, CSS, images, etc.

This project is a Component for the Apache Camel open-source integration framework. Its PDF generation capabilities are based on the openhtmltopdf project. Future enhancements may include image and SVG generation.

Usage

Maven users will need to add the following dependency to their pom.xml for this component.

<dependency>
    <groupId>solutions.elevation.camel</groupId>
    <artifactId>camel-openhtmltopdf</artifactId>
    <version>1.0.1</version>
</dependency>
                

The latest release uses camel-core version 3.11.0 as dependency.

URI format

openhtmltopdf:operation[?options]

Only Producer is suppored.

Options

OptionDescriptionDefault
defaultPageWidthDefault page width to use if not specified in CSS8.5
defaultPageHeightDefault page height to use if not specified in CSS11
pageSizeUnitsDefault page units to use if not specified in CSS. INCHES, MMINCHES
defaultTextDirectionDefault text direction to use if not specified in CSSLTR
testModeWhether to use test mode and output the PDF uncompressedfalse
lenientParsingUse leniant parsing for documents that don't comply with strict XHTML syntax.true

Operations

pdf

Generate a PDF file from HTML.

ParameterTypeDescription
BodyString, org.w3c.dom.DocumentIf a string, must be either a URI or (X)HTML content. For URIs, file, http and https are supported.
OpenHtmlToPdfBaseUriStringBase URI to use for resolving references (images, etc.). If not supplied and a URI was supplied in body, the component will attempt to determine the base URI.

FAQs

Package last updated on 29 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc