Sign In  Sign Up Live-Chat

How to display the title of pdf with chinese?

Last post 02-16-2006, 5:02 PM by ytzjy. 6 replies.
Sort Posts: Previous Next
  •  02-11-2006, 5:46 PM 41487

    How to display the title of pdf with chinese?

    I use pdf.kit to get the title of one pdf file,but can't recognize in chinese jsppage.please help me.A59.pdf is a chinese pdf file.

    pdfinfo.jsp:

    <%@ page contentType="text/html;charset=gb2312"%> 

      <%@ page import="java.sql.*"%>
     <%@ page import="java.lang.*"%>
     <%@ page import="com.aspose.pdf.kit.PdfFileInfo"%>
    <%
    String outFile1 = "http://localhost/"+"A59.pdf";
    out.print(outFile1+"<BR>");
    String title,create;
    PdfFileInfo fileInfo = new PdfFileInfo(outFile1);    
    title=fileInfo.getTitle();
    out.print("TITLE: "+title+"<br>");
    %>

     
  •  02-11-2006, 9:26 PM 41491 in reply to 41487

    Re: How to display the title of pdf with chinese?

    Dear ytzjy,

    Thank you for considering Aspose.

    Could you please attach your pdf file? We will test it and reply you soon.


    Georgie Yuan
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  02-12-2006, 7:15 AM 41494 in reply to 41491

    Re: How to display the title of pdf with chinese?

    I have test a pdf file which contains chinese characters and title, it can get title correctly.

    You can try to seperate your getting title code from your jsp file or  encapsulate your code in a function and it will help to find where the problem is.

    Best regards.


    Georgie Yuan
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  02-13-2006, 6:59 AM 41526 in reply to 41491

    Re: How to display the title of pdf with chinese?

    Attachment: Present (inaccessible)

    Thanks a lot.Please try this pdf file.

    If I need to install some font for pdf? If you success,please give me your jsp or function code,thanks.

     
  •  02-13-2006, 11:16 PM 41612 in reply to 41526

    Re: How to display the title of pdf with chinese?

    I will test the pdf file and reply you ASAP.
    Georgie Yuan
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  02-14-2006, 5:35 PM 41670 in reply to 41612

    Re: How to display the title of pdf with chinese?

    I have found where the problem is and solved it. It a convertion bug for getting chinese title. I will give you a hotfix soon.
    Georgie Yuan
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  02-16-2006, 5:02 PM 41895 in reply to 41670

    Re: How to display the title of pdf with chinese?

    Thank you very much.
     
View as RSS news feed in XML