문제

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...

도움이 되었습니까?

해결책 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.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top