Sign In  Sign Up Live-Chat

HTML to PDF Font format error

Last post 11-20-2007, 5:44 PM by Hans.firefox. 22 replies.
Page 1 of 2 (23 items)   1 2 Next >
Sort Posts: Previous Next
  •  08-30-2007, 9:43 AM 92920

    HTML to PDF Font format error

    Hi, I´m using Aspose.Pdf to generate pdf documents from HTML. I´m trying to transform a justified paragraph with font size 10 and some words in bold to pdf. The pdf is generated but it doesn´t take into account the justification and the words that are in bold have a different font size (12 I think is the default size). Below is the test code.

    Thanks,

    string st = @"<HTML><body bgcolor=""#FFFFFF"" text=""#000000""><p align= ""justify"" style=""margin-top: 3pt;margin-bottom: 7pt;""><span style=""font-family:'Arial';font-size:10pt;"">In the component arena our core focus has been on our powerful set of file management components. With our file management components developers can create applications, in .NET or Java, which can open, edit, create and save some of the most popular file formats in business including: <strong>Word Documents</strong> (DOC, RTF, WordprocessingML and HTML files), <strong>Excel Spreadsheets</strong> (XLS files), <strong>PowerPoint Presentations</strong>(PPT files), <strong>PDF Documents</strong> (PDF files), <strong>Flash Presentations</strong>(SWF files), <strong>Metafiles</strong> (EMF and WMF files), <strong>Project Files</strong>(MPX and MPD files) and <strong>InfoPath Forms</strong>.</span></p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</body></html>";

    Pdf pdfAux = new Pdf();
    StringReader lectorAuxiliar = new StringReader(st);
    pdfAux.BindHTML(lectorAuxiliar);
    pdfAux.Save(
    "c:/test.pdf");

     
  •  08-30-2007, 10:32 AM 92933 in reply to 92920

    Re: HTML to PDF Font format error

    Attachment: Present (inaccessible)

    Hi,

    Thank you for considering Aspose.

    I am unable to reproduce this error. The PDF is converted correctly. Attacthed is the PDF file which is created from your code.

    Which version of Aspose.pdf are you using?.

    Thanks.

     
  •  08-30-2007, 1:08 PM 92962 in reply to 92933

    Re: HTML to PDF Font format error

    Attachment: Present (inaccessible)

    Hi Adeel, I´m using the 3.5.8.0 version. I´ve opened the pdf you have attached and in my opinion there are clearly 2 font sizes. If you copy the text and paste it in a text processing program like Word, you will see that the font size of the bold text is 12. I´ve attached the printscreen of what I´m seeing.
    The other thing that is not working is the justification of the paragraph.

    Thanks,

     
  •  08-30-2007, 1:27 PM 92966 in reply to 92962

    Re: HTML to PDF Font format error

    Hi,

    I think you are right. I have logged this issue as PDFNET-3670. We will let you know as soon as the solution is found.

    I am sorry for inconvenience.

    Thanks.

     
  •  08-30-2007, 1:36 PM 92967 in reply to 92966

    Re: HTML to PDF Font format error

    Thank you very much Adeel, do you have any idea of when this will be solved? I ask because we are going live in a month.

    Thanks again.

     
  •  08-30-2007, 1:38 PM 92968 in reply to 92967

    Re: HTML to PDF Font format error

    Hi,

    Our developers will investigate this issue and will try to give you an ETA soon. We will try to fix it as soon as possible. We appreciate you patience.

    Thanks.

     

     
  •  08-31-2007, 4:46 AM 93051 in reply to 92967

    Re: HTML to PDF Font format error

    Hi,

        Thank you for considering Aspose.Pdf. We are trying to fix the bug  by Sept.5th.


    Cynthia Hu
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  08-31-2007, 2:34 PM 93139 in reply to 93051

    Re: HTML to PDF Font format error

    Excellent, thanks a lot.
     
  •  09-04-2007, 12:29 AM 93308 in reply to 93139

    Re: HTML to PDF Font format error

    Attachment: Present (inaccessible)
    Hi,

    The bug has been fixed. Please try the attachment before we publish new hotfix.

    Best regards.
    Hans

    Hans Zhang
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  09-04-2007, 1:20 PM 93449 in reply to 93308

    Re: HTML to PDF Font format error

    Attachment: Present (inaccessible)

    Excellent!!! the font problem was solved, even though, there is a little issue at the paragraph. If you see the attached image, the lines in it don't have the same width and because of that the justified paragraph doesn´t look good.

    Thanks,

     
  •  09-04-2007, 5:49 PM 93494 in reply to 93449

    Re: HTML to PDF Font format error

    Hi,

    I think there is some slight problem. I will ask the developer to check this issue.

    Thanks.

     
  •  09-12-2007, 7:37 AM 94595 in reply to 93494

    Re: HTML to PDF Font format error

    Hi Adeel, any news about this issue?

    Thanks,

     
  •  09-12-2007, 9:55 AM 94625 in reply to 94595

    Re: HTML to PDF Font format error

    Hi,

    I will check with the developers about this and let you know as soon as possible.

    Thanks.

     
  •  09-12-2007, 4:10 PM 94681 in reply to 93449

    Re: HTML to PDF Font format error

    Hi,

    It seems that the "Justify" alignment does not work well. We have logged it as PDFNET-3731.
    Our developer is working on this issue now and hope to fix it before next Monday. Sorry for the inconvenience.

    Best regards.

    Hans Zhang
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  09-19-2007, 12:43 AM 95378 in reply to 94595

    Re: HTML to PDF Font format error

    Attachment: Present (inaccessible)
    Hi,

    Sorry for the delay. The problem has been partly resolved. Please try the attachment. But the last three lines still don't have exactly the same width. I am afraid we need more time to resolve this completly. Thanks for your patience.

    Best regards.

    Hans Zhang
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
Page 1 of 2 (23 items)   1 2 Next >
View as RSS news feed in XML