Convert PDF files to HTML or SVG using PHP

BuildVu Converts PDF files to HTML5 or SVG

Convert PDF to HTML5 or SVG using PHP

What is BuildVu

BuildVu is a tool for developers looking to display documents inside their web or mobile based application or portal. By converting PDF documents to HTML or SVG, BuildVu provides a flexible solution which is simple and easy to integrate.

BuildVu also integrates with LibreOffice to provide a complete solution for converting PDF, Word, Powerpoint and Excel documents to HTML or SVG.

How does it work?

BuildVu is a Java application which runs directly from command line or can be deployed as a web-application via Docker or Java Application Server (such as Tomcat or Jetty). Deploying BuildVu as a web-application provides a REST API which allows you to convert documents from any language including PHP.

BuildVu is available to license to run on your own servers, or alternatively we offer a monthly subscription to access our cloud server.

How to trial BuildVu using PHP

Get started with the following steps:

  1. Sign up for the trial below to get your authentication token
  2. Ensure PHP 5.6 (or higher) and composer is installed
  3. Run the following command: composer require idrsolutions/idrsolutions-php-client
  4. Copy/Paste the code on the right

The trial runs on the IDRsolutions cloud server and allows up to 20 conversions. Your files will be stored on our server for up to 1 hour.

<?php
require_once __DIR__ . "/PATH/TO/vendor/autoload.php";

use IDRsolutions\IDRCloudClient;

$endpoint = "https://trial.idrsolutions.com/trial/" . IDRCloudClient::INPUT_BUILDVU;
$parameters = array(
    'token' => 'YOUR_TRIAL_TOKEN', // Token provided to you via e-mail
    'input' => IDRCloudClient::INPUT_UPLOAD,
    'file' => 'path/to/file.pdf'
);

$results = IDRCloudClient::convert(array(
    'endpoint' => $endpoint,
    'parameters' => $parameters
));

IDRCloudClient::downloadOutput($results, 'path/to/outputDir');

echo $results['downloadUrl'];

Why run BuildVu from PHP?

Simple

The REST API is easy to access from PHP using our open source PHP client and simple example code.

Flexible

Convert documents to static HTML5 or SVG which is easy to integrate into custom systems.

Easy

Subscribe to access our cloud server, or alternatively host your own server using our docker image.

Sign up for your free trial token

This is a 14-day free trial, no credit card required.

Did you know BuildVu also works with?

Click any of the icons to get started (this will redirect to relevant page)

Need another language/framework? Let us know!