Skip Menu |

This queue is for tickets about the HTML-HTMLDoc CPAN distribution.

Report information
The Basics
Id: 84197
Status: new
Priority: 0/
Queue: HTML-HTMLDoc

People
Owner: Nobody in particular
Requestors: prasannakv.perl [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Hyphen is not displaying in PDF file after it is generated using HTML-HTMLDoc
Once PDF file is generated using HTML-HTMLDoc , Hyphen (-) is not displaying properly in PDF. Instead of getting ABC-1234 we are getting ABC−1234 There are differences between these two hyphens. please find the code and the output of the pdf file used. Kindly fix the issue so that you can help many people around the world who are using this module :) Test Scenarios Please copy the hyphen from pdf and paste it in Word document. Manually type the hyphen in the Word document . There are differences between both. perl version : 5.8 Module Version : 0.08 Operating system used : sunos 5.8 Code used #!/usr/bin/perl use HTML::HTMLDoc; my $hd = new HTML::HTMLDoc('mode'=>'file', 'tmpdir'=>'/tmp'); $hd->set_page_size('letter'); # set page size $hd->set_bodyfont('Times'); # set font $hd->set_left_margin(6, 'mm'); # set margin $hd->set_fontsize(20); $hd->set_permissions('no-modify'); $hd->set_charset('iso-8859-15'); $hd->title(); $hd->set_header('.', '.', 'l'); $hd->set_footer('.', '.', '/'); $hd->set_html_content(qq~<html><body><p> Hyphen not working fine in PDF ABC-1234 </p></body></html>~); # contents to convert my $pdf = $hd->generate_pdf(); $pdf->to_string(); $pdf->to_file('SampleDocu_8.pdf');
Subject: SampleDocu_8.pdf
Download SampleDocu_8.pdf
application/pdf 84k

Message body not shown because it is not plain text.