Created
December 8, 2011 21:47
-
-
Save ccapndave/1448766 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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