Question

It's possible using alivepdf to write a Unicode pdf?

I see a Unicode.as class, but when I try, the pdf created cannot be opened by adobe reader.

Could you please suggest me some code snippet to create a unicode string?

[EDIT]

I have made some investigations. I think the problem is on putcidfont0 method on UnicodePDF.as class.

The problem is that I think the font metrics are not parsed well and many characters are displayed with the default font width.

I cannot say how to fix this...

Was it helpful?

Solution 3

It seems that some characters, as greek accented, some polish and many other characters are not available trough cid fonts, so the only way is to embed font in pdf.

OTHER TIPS

Try delcaring a new UnicodePDF() or setting the isUnicode bit to true (see documentation)

I dealt with this a month or two ago. My issue was that certain characters I would pass to AlivePDF would result in a broken PDF.

In my case I still had issues and my research turned up no promising results, although someone else had a strikingly similar issue that may be worth reading in your case.

The AlivePDF library hasn't been updated in a few years, and with my experience it seems like it doesn't play entirely well with unicode / other languages, although I have used it for English content without issue.

Since my target was desktop Flash and I was generating the PDF content from an external XML file, I eventually just wrote a helper utility app using C# and PDFSharp, which may or may not be an option in your case.

There was a big discussion here

Also I noticed that online PDF to Doc converters read UnicodePDF() files well.

Hope it helps.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top