Skip to content

Instantly share code, notes, and snippets.

@ccapndave
Created December 8, 2011 21:47
Show Gist options
  • Select an option

  • Save ccapndave/1448766 to your computer and use it in GitHub Desktop.

Select an option

Save ccapndave/1448766 to your computer and use it in GitHub Desktop.
var pdf:PDF = new PDF(Orientation.PORTRAIT, Unit.MM, Size.A4);
pdf.setDisplayMode(Display.FULL_PAGE, Layout.SINGLE_PAGE);
var defaultFont:IFont = new CoreFont(FontFamily.HELVETICA);
pdf.setFont(defaultFont, 11);
var imageHeader:ByteArray = new imageHeaderStream() as ByteArray;
pdf.addImageStream(imageHeader, ColorSpace.DEVICE_RGB, new org.alivepdf.layout.Resize(Mode.NONE, Position.LEFT), -10, -10, 210);
pdf.addImage(dynamicView);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment