0 Replies Latest reply: Feb 19, 2013 9:30 PM by muditqqq RSS

    Text is cutting in generated PDF by alivePDF

    muditqqq

      I am trying to create PDF by alive pdf but fonts is not coming properly. It is cutting from bottom.

      Code is:-

        var howToResize:String = ResizeMode.FIT_TO_PAGE;

                var orientation:String = Orientation.PORTRAIT;

                var displayMode:String = Display.FULL_PAGE;

                var printPDF:PDF = new PDF(orientation, Unit.POINT,Size.A4);

                printPDF.setDisplayMode(displayMode, Layout.SINGLE_PAGE);

                printPDF.setFont(FontFamily.ARIAL , Style.BOLD, 8);

                printPDF.addPage();

                var arrDimention:Array = Size.A4.dimensions;

                printPDF.addImage(previewBox,0,0,arrDimention[0],arrDimention[1]);

                return printPDF.save(Method.LOCAL);

      2000.png