Scrollbar appearing while creating pdf using AlivePDF

Hi,

I am facing a problem while creating pdf using AlivePDF.

I have a VBox on which I am adding multiple pages. If the content overflows it shows scrollbar. All this is working fine.


<mx:VBox x="0" y="80" width="705" height="560" id="content"></mx:VBox>

When I create the pdf using the following code it shows scrollbar in generated pdf (attached screenshot) while I want all the content without scrollbar


var pg:DisplayObject;
pg = content.getChildAt(i);
var pdf:PDF;
pdf = new PDF (Orientation.PORTRAIT, Unit.POINT, Size.LETTER);
pdf.setDisplayMode(Display.FULL_WIDTH);
pdf.addPage();
pdf.addImage(pg, new Resize(Mode.FIT_TO_PAGE, Position.CENTERED ),0, 0, 0, 0, 0, 1,true,'PNG',100);

Please suggest what changes should I make to fix this.