Flex SDK
Flex SDK

Reputation: 1

Images in creating client side PDF with image using flex and AlivePDF

I am creating client side PDF with image using flex and AlivePDF for a web based application. Images have been generated on that pdf but it is creating problem for large size images as half of the image disappeared from that pdf.I am taking the image inside a canvas . How do i control my images so that they come fit on that pdf file for any image size that i take.

Upvotes: 0

Views: 639

Answers (1)

Claudio Sermenghi
Claudio Sermenghi

Reputation: 318

I think if you use the fit_to_page option should work.

printPDF.addImage(this , 0 , 0 , 0 , 0 , 'PNG' , 100 , 1 , ResizeMode.FIT_TO_PAGE);

Upvotes: 0

Related Questions