We are facing the below error (sometimes) for iTextSharp PDF creation in Japanese language:
Exception: Font 'HeiseiKakuGo-W5' with 'UniJIS-UCS2-H' is not recognized.
we have already added reference for iTextAsian dll.
Let us know, if anybody have solution on this.
Related
I am Trying to make the game in Unity in Which I Have to Write the Name In Arabic.
I am Using the RTL pro Asset to write the Arabic In Input Field But the Issue is That When I try to Write the Character ي it Converts into the ى. The Dot Below the Character are Missing Is there anyone Who is Faced this issue Before or Guide me?
Help will be appreciated...
I am Expecting to Resolve It For the Build of My game.
I found out that I got an error if I try to open an existing 1.6 PDF with iText (version 5.1.1). If I transform this same PDF in a 1.5, I'm able to read it.
I tried to find out since which version of iText PDF 1.6 are handled but cannot find the information.
Any idea?
Thx!
Edit: here the stack :
Caused by: java.lang.NoClassDefFoundError: org/bouncycastle/asn1/ASN1OctetString
at com.itextpdf.text.pdf.PdfEncryption.<init>(PdfEncryption.java:147)
at com.itextpdf.text.pdf.PdfReader.readDecryptedDocObj(PdfReader.java:775)
at com.itextpdf.text.pdf.PdfReader.readDocObj(PdfReader.java:1152)
at com.itextpdf.text.pdf.PdfReader.readPdf(PdfReader.java:512)
at com.itextpdf.text.pdf.PdfReader.<init>(PdfReader.java:172)
Error is happening when executing line :
final PdfReader reader = new PdfReader(file.getAbsolutePath());
Your question is misleading because you make a false allegation. You claim that the version of iText that you are using doesn't support PDF 1.6.
However, the error message you added in the edited version of your question shows the real cause:
Caused by: java.lang.NoClassDefFoundError: org/bouncycastle/asn1/ASN1OctetString
I opened the PDF you shared in the comment in Acrobat Reader, and this is what I saw:
You can clearly read:
The document's Security Method restrict what can be done to the document. To remove security restrictions, set the Security Method to No Security.
That is exactly what you did when you converted the original PDF that was compliant with PDF 1.6 to a document that is compliant with PDF 1.5. If you had removed the security restrictions and kept the file as a PDF 1.6 document, the problem wouldn't have occurred.
This being said. You don't need to remove the security restrictions. You can solve the java.lang.NoClassDefFoundError by adding the correct version of the BouncyCastle library to your CLASSPATH. You may have to change the unethicalreading variable to true as explained here: How to read PDFs created with an unknown random owner password?
I received files from a client that use a mixture of English and an Arabic alphabet, but upon opening, symbols have replaced the Arabic letters.
I've tried using a couple different word processors, and I've found an answer from Microsoft help center that should solve my problem. http://office.microsoft.com/en-001/word-help/choose-text-encoding-when-you-open-and-save-files-HA010121249.aspx#BM2
However, I get stuck after #4. The instructions say that once you check off the option to "Confirm file format conversion on open", the Conversion dialogue will open automatically when you open a document ... but this is just not happening. I've tried restarting the program.
Does anyone know what is going on?
I am using TestNg 6.3 with eclipse sdk version 3.7.1
I am getting an error in xml file and the error is
org.xml.sax.SAXParseException: Content is not allowed in prolog.
can i know why this occurs and any modifications can u plz suggest
Seems like the XML is not well formed or there is something wrong with the encoding of the file. I remember I had this error a lot with XSLT when it was not in UTF-8. Encoding is found via selecting file, context menu, and the properties. If this does not help, please share part of your XML.
I am developing App in which PDF text searching & highlighting is needed. I found like its very difficult to highlight in PDF. So i thought to convert PDF to HTML then by using java-script, Search the string & Highlight it. Actually i got success in searching & highlighting on HTML text using java script.If any1 need source code send your email id.
But my obstacle is PDF to HTML conversion. I know it is very hard,bcoz PDF is enrich text & HTML doesn't support all the features. In between i got some source code in Python i.e. PDFMiner. With out jail breaking its hard to use Python in IOS. So i dropped this idea also.
Now i m looking on xPDF, its C++ based code to convert PDF to HTML. Did any1 got success over integrating xPDF into your IOS app. I want to know feasibility of this.
Thanks in advance for ur thoughtful reply,
Naveen Thunga.
Here you can find an example. Still has some problems, but is a good start:
https://github.com/KurtCode/PDFKitten