Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this an active project? #384

Open
jgrasmeder opened this issue Nov 12, 2018 · 0 comments
Open

Is this an active project? #384

jgrasmeder opened this issue Nov 12, 2018 · 0 comments

Comments

@jgrasmeder
Copy link

I have been using Alive PDF 0.1.5 for many years now with great results. The reason for this inquiry is that I now have been given a new requirement to support localization. One of the first languages is Taiwanese Traditional Chinese. Currently, I am running into issues getting the class PDF() and or UnicodePDF() to work. I have downloaded the latest code base 0.1.7 RC but still no luck. I have not been able to locate any sample code that would help to get the method calls correct. I am using the following example with the output not looking good.

	public function Test()
	{
		try
		{
			pdf=new UnicodePDF();
			pdf.setDisplayMode(Display.FULL_PAGE, Layout.SINGLE_PAGE);
			pdf.addPage();
			pdf.setFont(new ArialUnicodeMS(CidInfo.CHINESE_TRADITIONAL),20);
			pdf.addText("Hello World!", 0, 10);
			pdf.addText("你好,世界", 0, 30);// zh_TW Taiwanese Traditional Chinese
		}
		catch (err:Error)
		{
			trace("Error found in PDF " + err.toString());
			//errorMsg = "Failed to create PDF file"; //todo get from resource
		}
	}

	public function save(method:String):ByteArray
	{
		var rtnValue:ByteArray=new ByteArray;
		rtnValue=pdf.save(method);
		return rtnValue;
	}

//////PDF output
//////
Hello World!
你好|
///////
/////// As you can see the Chinese pdf.addTest() call has been chopped
//////
Do you have a better example of working code? Is this still an active project? I am not seeing much activity and 15 or so issues dealing with language support sitting for multiple years in the queue of issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant