Hi Chris,

Did you compile fop yourself?  You will need a local checkout of the
code-base to address this issue:
 The AWTViewer instance creates a PreviewDialog instance (by calling the
factory method PreviewDialog.createPreviewDialog)  which is a JFrame
composed of the toolbar and the page preview.  The inclusion of the debug
and info buttons along with the frame size is declared in PreviewDialog's
constructor.
  You may want to create a more configurable PreviewDialog (subclassing
PreviewDialog and perhaps just overriding the constructor?) and then change
AWTViewer to use that instead.  Recompile and create your new fop.jar by
running ant  from the root of your local fop code-base.

I hope that helps you,

Peter



PreviewDialog, whilst the size of the
On Wed, Jan 6, 2010 at 11:34 AM, Chris Joelly <[email protected]>wrote:

> Hi all,
>
> i managed to use the AWTRenderer within my own Swing application and
> want to adapt the size of the AWT viewer window whithin the PDF preview
> image is displayed.
>
> Is it possible to set the window size and then adjust the image of the
> PDF to the window size?
>
> And is it possible to hide the debug and fop inf button which are
> displayed in the toolbar?
>
> Thanks,
>
> Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to