Page 1 Advanced Integrated RPGIntegrating RPG with Java and Open Source
Session 2
Create PDFs from RPG using iText
Tom Snyder
Page 2 Electronic Documents
Portability of PDFs
Usability with Microsoft Excel Spreadsheets
Standardization
Distribution with Email
Page 3 Using Java with RPG
Accessing Java Objects from RPG
Working with the Java Virtual Machine
Java Native Interface
Page 4 iText Official Website
Page 5 SourceForge Download Files
Page 6 iText Jar FileIFS Location Options
Page 7 Setting the Class Path
Page 8 AIR File Naming ConventionsiText, Java, and Generic Functionality
SPAIRPDF contains iText Prototypes
SVAIRPDF is the iText Service Program
SPAIRJAVA contains generic Java Prototypes
SVAIRJAVA is the generic Java Service Program
SPAIRFUNC contains generic Prototypes
SVAIRFUNC is the generic Service Program
Page 9 iText Document Class
Page 10 Document ConstructorDefault Constructor and Rectangle
Page 11 iText RectangleUsing PageSize getRectangle Method
Page 12 PageSize getRectanglePredefined Rectangles Available
Page 13 iText ChunkReference Variable and Constructor
Page 14 iText PhraseReference Variable and Constructor
Page 15 iText ParagraphReference Variable and Constructors
Page 16 AirPdf_newParagraph ProcedureAutomatic String Conversion with Font Option
Page 17 Document add MethodiText Element Parameter
Page 18 iText Element InterfaceImplemented by Chunk, Phrase, and Paragraph
Page 19 PdfWriter ClassNo Constructor Method, use getInstance
Page 20 Java FileOutputStreamextends OutputStream
Page 21 AirPdf_setPdfWriterVariables, Initialization, EBCDIC to ASCII
Page 22 AirPdf_setPdfWriterUsing JNI to getInstance
Page 23 AirPdf_setPdfWriterCalling the Static getInstance Method
Page 24 iText Document OpenMethod and Prototype
Page 25 AirPdf_newDocumentOutputParameters
Page 26 AirPdf_newDocumentOutputOpen Document with Output Stream
Page 28 Hello World!RPG Code Used to Create PDF
Page 29 Static and Non StaticConceptual Example
Page 30 Static and Non StaticParameter Behavior
Page 31 Colors and FontsWorking with Colors and Fonts in iText
Page 32 Java Color ClassReference Variable and Constructor
Page 33 Hexadecimal Color CodesGraphical Tools and Constants
Page 34 HTML using Hexadecimal ColorsUsing the Same Codes as Java
Page 35 Integer parseInt MethodStatic Method with Radix
Page 36 Air_getColorFromHex ProcedureConverting Hexadecimal String to Integer
Page 37 iText FontReference Variable and Constructor
Page 38 Font ConstantsRPG Constants and JavaDoc
Page 39 iText Font setColor Method
Page 40 PDF Fonts and ColorsCreating the Fonts in RPG
Page 41 PDF Fonts and ColorsAssigning the Fonts to the Paragraphs
Page 42 iText TableCreating a PDF Table with RPG
Page 43 PdfPTable ClassReference Variable and Constructor
Page 44 PdfPCell setColspan MethodOne Cell Spanning Multiple Table Columns
Page 45 PdfPTable addCell MethodAdding Cells to a Table
Page 46 Creating a PDF TableVariables, Chunks and Text
Page 47 Creating a PDF TableCreate Table and Add Cells
Page 48 iText ImagesAdding Images to PDFs
Page 49 iText Image ClassReference Variable and Constructor
Page 50 AirPdf_getImage ProcedureString Conversion and getInstance
Page 51 iText Image setAlignment Method
Page 52 iText Image setBorder MethodsSet Border Color and Width
Page 53 Creating a PDF with an ImageVariables and Initialization
Page 54 Creating a PDF with an ImageSet Image Alignment and Border
Page 55 Wrapping Text Around an Image
Page 56 iText Image scalePercent MethodResizing the Image
Page 57 Wrapping Text Around an ImageVariables and Initialization
Page 58 Wrapping Text Around an ImageScale and Text Wrap
Page 59 iTextBarcodes, Lists, Hyperlinks and Metadata
Page 60 Advanced Integrated RPG10% Discount Code: OMNI2010
Valid Through November 9th
http://www.mc-store.com/