Skip to main content

Why does the exportPdf function fail while exportHTML works in Unlayer?

Khizar Tanveer avatar
Written by Khizar Tanveer
Updated over 4 months ago

Why does the exportPdf function fail while exportHTML works in Unlayer?

Overview of Export Capabilities in Unlayer

Unlayer offers various export functionalities, such as exporting HTML and PDFs. However, the availability of these features depends on the subscription plan being used. This article explains why the exportPdf function may fail and provides guidance on troubleshooting and upgrading your subscription for full access.

Explanation of Subscription Plan Tiers

Startup Plan (Legacy)

The Startup plan includes basic export methods, such as unlayer.exportHTML. However, it does not include advanced export capabilities, such as unlayer.exportPdf or other Cloud Export APIs for PDF and image exports. This limitation is a common cause of issues like null data.url values when attempting to use the exportPdf feature in this plan.

Launch Plan and Higher

To access features like unlayer.exportPdf, you need to subscribe to at least the Launch plan. The Launch plan includes more advanced functionalities such as Cloud Export APIs for PDFs and images. Upgrading to this plan ensures that advanced export options work without errors or restrictions. ,

Troubleshooting Export Errors Linked to Plans

exportPdf Not Working

If you encounter an issue where the unlayer.exportPdf function fails or returns a null data.url, it is likely because this functionality is restricted in your current plan. Verify which plan you are subscribed to and consider upgrading for full access to advanced capabilities.

Using exportHTML on the Startup Plan

For users on the Startup plan, the unlayer.exportHTML function works successfully, as it is included in the basic export methods available in this plan. This can be used as an alternative if PDF export is not critical to your workflow.

How to Check and Upgrade Your Plan

  1. Log in to your Unlayer account.

  2. Navigate to the subscription or billing settings to identify your current plan.

  3. Compare your plan's features with those of higher-tier plans (e.g., the Launch plan).

  4. If needed, upgrade your subscription to access the additional functionalities, such as exportPdf.

By following these steps, you can ensure that you have the necessary features activated for your use case.

Related Topics

  • Setting up API keys for Cloud Exports

  • Dealing with null values in export responses

  • Upgrading Unlayer subscription plans

Did this answer your question?