Advanced Integrated RPG Integrating RPG with Java and Open Source Session 2 Create PDFs from RPG using iText Tom Snyder
60
Embed
Create PDFs from RPG using iText - OMNI Useromniuser.org/downloads/TomSnyderRPGiTextPresentation.pdf · AIR File Naming Conventions iText, Java, and Generic Functionality SPAIRPDF
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Advanced Integrated RPGIntegrating RPG with Java and Open Source
Session 2
Create PDFs from RPG using iText
Tom Snyder
Electronic Documents
Portability of PDFs
Usability with Microsoft Excel Spreadsheets
Standardization
Distribution with Email
Using Java with RPG
Accessing Java Objects from RPG
Working with the Java Virtual Machine
Java Native Interface
iText Official Website
SourceForge Download Files
iText Jar FileIFS Location Options
Setting the Class Path
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
iText Document Class
Document ConstructorDefault Constructor and Rectangle
iText RectangleUsing PageSize getRectangle Method
PageSize getRectanglePredefined Rectangles Available
iText ChunkReference Variable and Constructor
iText PhraseReference Variable and Constructor
iText ParagraphReference Variable and Constructors
AirPdf_newParagraph ProcedureAutomatic String Conversion with Font Option
Document add MethodiText Element Parameter
iText Element InterfaceImplemented by Chunk, Phrase, and Paragraph
PdfWriter ClassNo Constructor Method, use getInstance
Java FileOutputStreamextends OutputStream
AirPdf_setPdfWriterVariables, Initialization, EBCDIC to ASCII
AirPdf_setPdfWriterUsing JNI to getInstance
AirPdf_setPdfWriterCalling the Static getInstance Method
iText Document OpenMethod and Prototype
AirPdf_newDocumentOutputParameters
AirPdf_newDocumentOutputOpen Document with Output Stream
Document close
Hello World!RPG Code Used to Create PDF
Static and Non StaticConceptual Example
Static and Non StaticParameter Behavior
Colors and FontsWorking with Colors and Fonts in iText
Java Color ClassReference Variable and Constructor
Hexadecimal Color CodesGraphical Tools and Constants
HTML using Hexadecimal ColorsUsing the Same Codes as Java
Integer parseInt MethodStatic Method with Radix
Air_getColorFromHex ProcedureConverting Hexadecimal String to Integer
iText FontReference Variable and Constructor
Font ConstantsRPG Constants and JavaDoc
iText Font setColor Method
PDF Fonts and ColorsCreating the Fonts in RPG
PDF Fonts and ColorsAssigning the Fonts to the Paragraphs