Skills/Office to PDF/HTML or text to PDF

HTML or text to PDF

~1 credits / page (up to 10)

Renders a static HTML or plain-text file to PDF. Inline styles and self-contained HTML convert cleanly; pages that rely on JavaScript or external CSS and assets will render incomplete since no scripts are executed and no remote resources are fetched.

Use when

You have a static HTML or TXT file and want a basic PDF of it.

Not for

Web pages that run JavaScript or fetch external styles and assets, or screenshotting a site.

Cost

~1 credits / page (up to 10)

0.2 credits per output page. Simple text or markup is the usual case.

Estimated; the actual charge depends on your input and is shown in the response.

What it accepts

Set these inside the intent when you run it.

filerequired

URL of the static HTML or plain-text file to convert.

output_nameoptional

Name for the resulting PDF file.

What you get back

A download link to a .pdf file containing the rendered HTML or plain text.

Run it

Run this sub-skill directly: pin it with operation and pass its inputs in the intent. (Omit operation and the Office to PDF skill will route from your intent instead.)

curl -X POST "https://skill.askfaro.com/skills/office-to-pdf/run" \
  -H "Authorization: Bearer $FARO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"intent":{"operation":"markup","file":"https://example.com/page.html","output_name":"page.pdf"}}'

Example requests

  • Convert this HTML file to a PDF
  • Turn this plain-text document into a PDF
  • I have a self-contained HTML page and need a PDF of it