Sponsored Content
Top Forums Shell Programming and Scripting Perl - Convert html to pdf - PDF::FromHTML Post 302315441 by DILEEP410 on Tuesday 12th of May 2009 10:19:06 AM
Old 05-12-2009
Java Perl - Convert html to pdf - PDF::FromHTML

Hi,
I am trying to convert html to pdf using perl module PDF::FromHTML, am getting the error as given below.

Code:
not well-formed (invalid token) at line 2, column 17, byte 56 at C:/Perl/lib/XML/Parser.pm line 187 at C:/Perl/site/lib/PDF/FromHTML.pm line 140

The perl code is as given below:
Code:
my $pdf = PDF::FromHTML->new( encoding => 'utf-8' );
$pdf->load_file($filename);       
$pdf->convert();        
$pdf->write_file('output.pdf');

Can anyone please advise whats going on? Ypur help is very much appreciated!


Regards
Dileep

Last edited by Yogesh Sawant; 05-13-2009 at 01:54 AM..
 

9 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

convert pdf's to word

Does anyone know any good tools to convert a pdf to word, I can usually cut & paste without a hitch but I have a pdf that doesn't like that and surrounds text with lines as though a table or prints tables in miniscule text. It's only one pdf file so I'm reluctant to buy a product. (3 Replies)
Discussion started by: gefa
3 Replies

2. Shell Programming and Scripting

Converting html to pdf perl

Hi All, I have a requirement of converting an html form into pdf using perl. The html form contains images, tables and css implementation. I tried using various perl modules but failed to achive the target. I succeeded in generating a pdf from the html file using... (2 Replies)
Discussion started by: DILEEP410
2 Replies

3. Shell Programming and Scripting

Perl program to convert PDF to text/CSV

Please suggest ways to easily convert pdf to text in perl only on windows (no other tools can be downloaded) Here is what I have been doing : using a module CAM::PDF to extract data. But it shows everything in messy format :wall: But this module is the only one working with the pdf... (0 Replies)
Discussion started by: chakrapani
0 Replies

4. Ubuntu

Fetch html page convert to pdf automatically via cmd or other means, shortcut

Hi, Im used to compiling when i stumble upon some interesting topics in the net and convert it into pdf files unto my HD for future reference's. I using the chrome print to pdf procedure since firefox html to pdf don't work correctly. I just wonder in someone do same thing and did it in a easy... (3 Replies)
Discussion started by: jao_madn
3 Replies

5. UNIX for Advanced & Expert Users

Mutt for html body and multiple html & pdf attachments

Hi all: Been racking my brain on this for the last couple of days and what has been most frustrating is that this is the last piece I need to complete a project. There are numerous posts discussing mutt in this forum and others but I have been unable to find similar issues. Running with... (1 Reply)
Discussion started by: raggmopp
1 Replies

6. Shell Programming and Scripting

Using CSH and need to convert html to PDF

Hi, I am currently using the below code and it throws an error saying badly placed ()'s. I am not sure if this right way to convert html to PDF, please help..I am using C-shell script system ("../html2doc pdf 1000 portrait html$prnfile.html $prnfile.pdf ") print "Content-type:application/pdf... (7 Replies)
Discussion started by: lakers646
7 Replies

7. UNIX for Dummies Questions & Answers

HTML to PDF...

Hello, I am new to UNIX system. I want to convert HTML file to some non-editable format as we ship this doc to our customer. I am looking for following scripts/utilities: 1. Script/Utility to convert HTML file in PDF format. 2. Script/Utility to convert HTML file in Postscript format. 3.... (4 Replies)
Discussion started by: Abhishek Swami
4 Replies

8. Shell Programming and Scripting

PDF Script to extract PDF Links MOD in Need

In here we have a script to extract all pdf links from a single page.. any idea's in how make this read instead of a page a list of pages.. and extract all pdf links ? #!/bin/bash # NAME: pdflinkextractor # AUTHOR: Glutanimate (http://askubuntu.com/users/81372/), 2013 #... (1 Reply)
Discussion started by: danielldf
1 Replies

9. Shell Programming and Scripting

Converting secured pdf files to pdf using acroread

Does anybody have idea of Converting secured pdf files to pdf using acroread ? ---------- Post updated at 04:49 PM ---------- Previous update was at 04:44 PM ---------- This file is not password protected. (4 Replies)
Discussion started by: Soham
4 Replies
Image::ExifTool::PDF(3pm)				User Contributed Perl Documentation				 Image::ExifTool::PDF(3pm)

NAME
Image::ExifTool::PDF - Read PDF meta information SYNOPSIS
This module is loaded automatically by Image::ExifTool when required. DESCRIPTION
This code reads meta information from PDF (Adobe Portable Document Format) files. It supports object streams introduced in PDF-1.5 but only with a limited set of Filter and Predictor algorithms, however all standard encryption methods through PDF-1.7 extension level 3 are supported, including AESV2 (AES-128) and AESV3 (AES-256). AUTHOR
Copyright 2003-2011, Phil Harvey (phil at owl.phy.queensu.ca) This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. REFERENCES
<http://partners.adobe.com/public/developer/pdf/index_reference.html> Crypt::RC4 <http://www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf> <http://www.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/adobe_supplement_iso32000.pdf> <http://tools.ietf.org/search/rfc3454> <http://www.armware.dk/RFC/rfc/rfc4013.html> SEE ALSO
"PDF Tags" in Image::ExifTool::TagNames, Image::ExifTool(3pm) perl v5.12.4 2011-03-10 Image::ExifTool::PDF(3pm)
All times are GMT -4. The time now is 01:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy