# Scrollbar appearing while creating pdf using AlivePDF

**URL:** <https://forum.kirupa.com/t/scrollbar-appearing-while-creating-pdf-using-alivepdf/319349>\
**Category:** Uncategorized\
**Created:** [February 17, 2011, 4:08am UTC](https://forum.kirupa.com/t/scrollbar-appearing-while-creating-pdf-using-alivepdf/319349 "2011-02-17T04:08:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitinmukesh](https://avatars.discourse-cdn.com/v4/letter/n/7feea3/32.png) [@nitinmukesh](https://forum.kirupa.com/u/nitinmukesh)\
**Post date:** [February 17, 2011, 4:08am UTC](https://forum.kirupa.com/t/scrollbar-appearing-while-creating-pdf-using-alivepdf/319349/1 "2011-02-17T04:08:42Z")

</div>

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.

```php

<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

```php

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.
