Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 885541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:55:39+00:00 2026-05-15T12:55:39+00:00

I have a website which uses SVG for an interactive client side thingamabob. I

  • 0

I have a website which uses SVG for an interactive client side thingamabob. I would like to provide the option to download a PDF of the finished output. I can pass the final SVG output back to the server, where I want to convert to PDF, then return it to the client for download.

This would need to work on a headless shared linux server, where installation or compilation is either an enormous pain, or impossible. The website is PHP, so the ideal solution would be PHP, or use software that’s easily installed on a shared webserver. Python, perl and ruby are available, along with the usual things you might expect on a linux box. Solutions that involve cairo, scripting inkscape, or installation more complex than ‘FTP it up’ are probably out. Spending large amounts of money are also out, naturally. As this is a shared server, memory and/or CPU hungry solutions are also out, as they will tend to get killed; this more or less rules out Batik.

The nearest that I’ve got so far is this XSL transform which I can drive from PHP and then squirt the resulting postscript through ps2pdf (which is already installed). The only problem with this is that it doesn’t support SVG paths – if it did, it would be perfect.

There are a bunch or related questions on StackOverflow, all of which I’ve read through, but they all assume that you can either install stuff, spend money, or both.

Does anyone have an off-the-shelf solution to this, or should I just spend some downtime trying to add paths support to that XSL transform?

Thanks,
Dunc

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T12:55:40+00:00Added an answer on May 15, 2026 at 12:55 pm

    I stumbled across TCPDF today which would have been perfect for this, had I known about it at the time. It’s just a collection of pure PHP classes, no external dependencies for most things.

    It can build PDF’s from scratch and you can include pretty much anything you want in there, including SVG (amongst many, many other things), as shown in these examples:

    http://www.tcpdf.org/examples.php

    Main project page is here:

    http://www.tcpdf.org/

    Sourceforge page is here:

    http://sourceforge.net/projects/tcpdf/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website which uses a lot of constants, that are defined like
I have a website which extensively uses files which are static like Jquery library,
I have a website which uses Spring Security. I have realized that when I
I have a website which uses jQuery and lots of mouseover / mouseout effects.
So, let's start with situation. I have a website which uses Jquery 1.4.2 as
I have a website and a script with a for loop which uses the
I have a Silverlight web app which uses ASP.net Website administration tool for user
I have a website which uses CSS for all of its styling, and in
I have an ASP.Net 4.0 website which uses SQL Server CE and EF code-first
I am new to solr. I have developed a an website which uses solr

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.