riadvice / AlivePDF

[Official AlivePDF] - AlivePDF is a client side AS3 PDF generation library for Adobe Flash, Flex and AIR
https://riadvice.github.io/AlivePDF/
32 stars 6 forks source link

Creating a PDF in Air with custom papersize doesn't work #208

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Creating a PDF in Adobe Air with custom papersize

var PDF = new alivePDF.PDF(alivePDF.Orientation.LANDSCAPE, alivePDF.Unit.MM, 
new alivePDF.Size([841.89, 1190.55],"custom",[11.7, 16.5],[297, 420]));

doesn't work.
When I open the PDF in Acrobat Reader I get error "14 Error while reading the 
document".

var PDF = new alivePDF.PDF(alivePDF.Orientation.LANDSCAPE, alivePDF.Unit.MM);

or

var PDF = new alivePDF.PDF(alivePDF.Orientation.LANDSCAPE, alivePDF.Unit.MM, 
alivePDF.Size.A3);

works without a problem.

What is the expected output? 
An PDF with the custom paperformat.

What do you see instead?
An empty PDF. Pageformat 0x0. 2.05. KB

What version of the product are you using? On what operating system?
Adobe Air 2 Beta 2, alivePDF 0.1.5 RC, OS X 10.6.2

Please provide any additional information below.

Original issue reported on code.google.com by markus.w...@googlemail.com on 11 Mar 2010 at 3:09