Skip navigation
muditqqq
Currently Being Moderated

Text is cutting in generated PDF by alivePDF

Feb 19, 2013 9:30 PM

Tags: #actionscript #flex4.5 #alivepdf

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

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points