AFP 101: Introduction to Architecture (2 of 8)

Transcription

AFP 101: Introduction to Architecture (2 of 8)
2010 Global Document Conference and Vendor Forum
Tampa Bay, Florida
AFP 101: Introduction to
Architecture (2 of 8)
Donald Scrima, Master-EDP
Principle
AFP Education & Consulting
[email protected]
Wednesday Mar 17, 2010
10:30 AM - 11:20 AM
Xplor® is celebrating our 30th year with the best value
and program in the electronic document industry!
1
Agenda
•
•
•
•
•
•
•
AFP Overview
Data Formats
Resources
Object Content Architecture
Print Driver
IPDS
Summary
XDU Tampa FL March 6,2009
2
1
2010 Global Document Conference and Vendor Forum
Tampa Bay, Florida
AFP Overview
Xplor® is celebrating our 30th year with the best value
and program in the electronic document industry!
3
What is AFP ?
• Advanced Function Presentation
– Sometimes referred to “Advanced Function Printing”
• More than a PDL
• Architectures for creating, formatting, printing,
viewing, archiving and retrieving data
• Open architecture: a family of software &
hardware products offered by many vendors
• AFP over 25 years old (mature) 1984-2010
XDU Tampa FL March 6,2009
4
2
AFP Architecture
AFP Advanced Function Presentation:
is (IBM) now AFP Consortium’s
architecture (open architecture), a family
of software and hardware products (now
offered by many vendors), that provide
document and information presentation
control, independent of specific
applications and devices.
XDU Tampa FL March 6,2009
5
AFP Architecture Components
• In the AFP architecture, the presentation
architecture components are divided into two
major categories: (MO:DCA reference Chap 1)
IBM definition
– data streams
– objects
• The presentation architecture components are
divided into these major areas:
– Data Streams
– Resources
– Objects
My subdivisions of
AFP--an easer to
understand set of
components
• Object Content Architecture
– Programs
– Devices
XDU Tampa FL March 6,2009
6
3
Programs & Products of AFP
AFP is a concept implemented through a variety
of products, applications and programs.
Programs
Data Streams
Resources
Applications
that produce
Mixed data
Applications
that produce
MO:DCA-P data
Utilities
that produce
Fonts
Applications
that produce
line data
Utilities
that produce
OVERLAYS
SPOOL
Viewer Driver
Utilities
that produce
CMR
Utilities
that produce
CMT
Utilities
that produce
Page Segments
Utilities
that produce
Form Definitions
Page Definitions
RESOURCES
PRINT DRIVER
Printed page
Devices
XDU Tampa FL March 6,2009
7
Presentation Spaces
Physical Page
Logical Page
Logical Page
Data Block
Data Block
Image Block
Container
CMT
Text Block
This is data to be printed
Print line
Print line
Text is rotated
This is data to be printed
Print line
Print line
Text Block
Text Block
XDU Tampa FL March 6,2009
Data Block
Container
EPS
8
4
AFP Page Anatomy
Example of an all-points-addressable page
Letterhead can be an overlay resource
containing text, image and graphics objects
Resources:
CMT
MO:DCA-P
Composed of multiple
presentation objects.
Mixed Format
MO:DCA-P with Line Data
Data line
Overlay
Page
Font
Objects:
Page Segment
OCA:
Presentation
Text Object (s)
PTOCA
Graphics Object
GOCA
[FOCA]
Page Definition
Position line data on
page
Conditional processing
Image Object
Form Definition
Physical medium –
sheet of paper or page
Bar Code
Object areas
Can overlap
XDU Tampa FL
IOCA
BCOCA
CMOCA
CMR6,2009
March
9
2010 Global Document Conference and Vendor Forum
Tampa Bay, Florida
Data Formats
Xplor® is celebrating our 30th year with the best value
and program in the electronic document industry!
10
5
AFP Data Types
AFPDS
Mixed
Line-Data
MO:DCA
Line-Data
MO:DCA
XDU Tampa FL March 6,2009
11
AFP Data Streams
• AFP Data Stream (AFPDS) – the “AFP Data
Stream” is a superset of the MO:DCA-P data stream
and supports these objects:
•
•
•
•
Graphics (GOCA)
Presentation text (PTOCA)
Image (IOCA)
Bar Code (BCOCA)
– Data formats supported in AFP
• Input
– Line Data
– MO:DCA
– Mixed Mode
• Output
– IPDS
XDU Tampa FL March 6,2009
12
6
Line Data
• Line Data – 1403 type print records fixed length, text
• Line data lines of text little or no structure
– carriage control and/or TRC
– usually though of as 1403 or 3211 data format
– 3800-1 line data (model 3 compatibility mode)
offered the additional TRC byte for change of fonts
1403
Line Data Record
3800
CC
Text
1403 impact
printers
CC TRC
Text
3800 laser printers
Used in line printing applications
1403 & 3211 type impact printers and similar plug compatible
Used laser line mode printers 3800 -1 & -3 (compatibility)
CC - Carriage Control controls line spacing
TRC - Table Reference Character controls font selection
XDU Tampa FL March 6,2009
13
MO:DCA
• MO:DCA (-P) Mixed Object Document Content
Architecture An architected, device-independent data
stream for interchanging documents.
– Contains structured fields / data
– This architecture deals with the overall structure of a
composite document, sometimes called a compound
document.
– MO:DCA defines the syntax and semantics of a document
data stream composed of multiple objects of different types
– MO – Mixed Object
– DCA – Document Content Architecture (from SAA)
Viewing
• A composite document is one that consists of a combination
of different data types, such as formatted text with embedded
images and graphics
– P Presentation or Print
XDU Tampa FL March 6,2009
Printed page
14
7
MO:DCA
• MO:DCA record; structured field
– Structured Field Introducer
•
•
•
•
•
Length (2 bytes)
Identifier (3 bytes) (Triplet)
Flags
Reserved
Extension
– Data
– Padding
NOTE:
x’5A carriage control
Not part of structured
field in AFP, it is part
of Operating System.
See note on slide for
Mixed Mode data
cc byte
5A
Structured Field Introducer
Length Identifier
Flags
Reserved
X00000
Extension
Data
Padding
Each component of a mixed object document is defined by a structured field
Structured fields are used to envelop the document components
and provide commands for processing the data
Identified by Structured Field Introducer composed of a length (2 bytes)
and an Identifier (3 bytes)
Created by an application
NOTE: 1st byte of record is carriage control (cc) and is a x’5A to identify the record as AFP
technically only for for S/390, z Series not used for AIX or PCs, but usually AFP records have x’5A
XDU Tampa FL March 6,2009
15
Mixed-Mode Data
• Mixed-Mode Data – is a mixture of line data
with the inclusion of some AFP structured
fields, composed-text pages, and resource
objects. And inter-mixed MO:DCA records.
– This permits the addition of objects to existing line
data output:
• images
• graphs
• barcodes
Begin
DocumenT
Invoke
Medium
Map
XDU Tampa FL March 6,2009
Invoke
Data
Map
MO:DCA
Data
Line
Data
End
DocumenT
16
8
2010 Global Document Conference and Vendor Forum
Tampa Bay, Florida
Resources
Xplor® is celebrating our 30th year with the best value
and program in the electronic document industry!
17
Resources in AFP
AFP Resource
• Printer Resources
–
–
–
–
–
–
Fonts
Overlays
Page Segments
Color Mapping Table
Color Mgt Resource
Containers (“OCA”)
• Font
–
–
–
–
X0xxxxxx Coded font
(X0xxxxxx)
T1xxxxxx Code page
(T1DBASE)
C0xxxxxx Raster Font character set (C0GT10)
CZxxxxxx Outline Font character set (CZNA20)
• O1 Overlay
• S1 Page segment
• Container
(O1INVOIC)
(S1LOGO)
– CMT [Color Mapping Tabl],
– CMR [Color Mgt Resource]
• Print Driver Resources • F1 Form definition (F100101)
– Form Def
– Page Def
• P1 Page definition (P1REPORT)
XDU Tampa FL March 6,2009
18
9
External Resources
• External Resources
– Resources are stored separate from data in libraries on the server
Containers
Form definitions
F1xxxxxx Form definition
(F100101)
Page definitions
P1xxxxxx Page definition
(P1REPORT)
CMT
Overlays
CMR
Page segments
EPS
Container
CMT [Color Mapping Table]
CMR [Color Mgt Resource]
EPS [Encapsulated
PostScript]
Fonts
O1xxxxxx Overlay
(O1INVOIC)
S1 Page segment
(S1LOGO)
X0xxxxxx Coded font
(X0NA20)
T1xxxxxx Code page
(T1DBASE)
C0xxxxxx Raster Font character set
(C0GT10)
CZxxxxxx Outline Font character set
(CZNA20)
XDU Tampa FL March 6,2009
19
Internal Resources
• Internal Resources –
‘Resources are inline with the data stream’
– no libraries needed
– resources are put at beginning of data
– ACIF utility is used to build a data stream with the resources, index
of the data, and data in to a self contained AFP data stream.
– Some AFP emitters (e.g., IBM Windows AFP drivers, PB-Doc1,
HP-Exstream Dialog, etc.) create output that includes an inline
resource group.
Resources
Variable Encoded Data
Resource
Data
Record
XDU Tampa FL March 6,2009
20
10
2010 Global Document Conference and Vendor Forum
Tampa Bay, Florida
Objects:
Object Content
Architecture
Xplor® is celebrating our 30th year with the best value
and program in the electronic document industry!
21
OCA Objects Anatomy
Image Object
IOCA
OCA:
Objects:
Presentation
Text Object (s)
Graphics Object
Image Object
Bar Code
PTOCA
[FOCA]
GOCA
IOCA
BCOCA
CMOCA
ACMA
CMR
XDU Tampa FL March 6,2009
22
11
2010 Global Document Conference and Vendor Forum
Tampa Bay, Florida
Programs:
Print Driver
Xplor® is celebrating our 30th year with the best value
and program in the electronic document industry!
23
Print Drivers
• Programs to process AFP data streams to
Print (IPDS) data streams
– Print Driver
•
•
•
•
•
•
IBM- PSF Infoprint Manager, PSF/400
Océ- SPS PRISMA
GNC- PrintNet
PrintSoft- PReS
PB Emtex – VIP
Compart – DocBridge Pilot
XDU Tampa FL March 6,2009
24
12
Print Driver work flow: PSF
Application Data
Line Data
CC / No CC
MO:DCA + Inline
Resources
Mixed Line Data
& MO:DCA
MO:DCA
Line Data
RESOURCES
MO:DCA
spool
formdefs
IPDS
Containers
CMT
pagedefs
overlays
fonts
P
S
F
psegs
IPDS
IPDS Printer
IPDS
XDU Tampa FL March 6,2009
25
2010 Global Document Conference and Vendor Forum
Tampa Bay, Florida
Programs:
Applications
Xplor® is celebrating our 30th year with the best value
and program in the electronic document industry!
26
13
Applications:
• Programs: create or generate AFP data
• Applications that provide data streams,
• IBM: DCF, AFP Print Drivers for Windows,
AFP Toolbox for z/OS, ACIF
• Others: GMC, PrintSoft, HP Exstream - Dialogue, Sefas,
Elixir – OPS, PB – Doc1, Océ – PRISMA-APA, POD/PDC,
others…..
Application Data
Line Data
CC / No CC
MO:DCA + Inline
Resources
Mixed Line Data
& MO:DCA
MO:DCA External
Resources
MO:DCA
Line Data
spool
XDU Tampa FL March 6,2009
27
Utilities:
• Programs: create or generate AFP resources
– IBM: PPFA, AFP Print Drivers for Windows,
OGL, ACIF, Reblock, Type Transformer
– Others: GNC, PrintSoft, Exstream - Dialogue, Elixir, Sefas,
Océ- PRISMA-Tools, others…..
Products
that produce
CRM
Products
that produce
OVERLAYS
Products
that produce
Page Segments
Products
that produce
Form Definitions
Page Definitions
Products
that produce
Fonts
Products
that produce
CMT
RESOURCES
overlays
CMR
psegs
formdefs
fonts
CMT
pagedefs
XDU Tampa FL March 6,2009
Container
28
14
2010 Global Document Conference and Vendor Forum
Tampa Bay, Florida
Devices: IPDS
Xplor® is celebrating our 30th year with the best value
and program in the electronic document industry!
29
What is IPDS?
• Intelligent Printer Data Stream
• Printer language
• Bi-directional communication between Print Driver
Software and Printer Hardware
– two way communication
• Print Driver produces IPDS
Print Driver
IPDS Printers
– data stream is specific to a printer type
– based on what the printer identifies
as its characteristics to the print driver
• Provides
P
S
F
– interactive exception handling
– positive control of error recovery
XDU Tampa FL March 6,2009
IPDS
IPDS
30
15
IPDS
• IPDS incorporates the following features:
•
Applications may create source data independently of one another
– Such as: graphics, image, bar code, & text
– IPDS makes it possible for the output of these independent applications to be merged
at print time resulting in an integrated mixed data page.
•
•
•
IPDS is independent of the carrying communications protocol.
IPDS transfers all data and commands through self-identifying structured
fields which describe the presentation of the page
IPDS provides an extensive acknowledgement protocol at the data
stream level.
– synchronize host and printer processes
– exchange query/reply information
– return detailed exception information (error handling)
XDU Tampa FL March 6,2009
31
IPDS Printers
• IBM
• Kodak Versamark
• Océ
• Xerox
XDU Tampa FL March 6,2009
32
16
IPDS Towers
AFP Data Towers
IO
Image
Text
function
PTOCA
PT3
Tower
PTOCA
PT2
PTOCA
PT1
Base
IM
Image
IMD 1
architecture
IOCA
FS45
IOCA IOCA
FS11 FS42
Graphics
GOCA
DR/2V0
IOCA IOCA
FS10 FS40
Bar
Code
BCOCA
BCD1
Color
Management
Resource
Container
EPS
CMOCA
CMT
OCA
CMR
Data Towers
TOWER Concept
•
base-and-towers concept: A conceptual illustration of an architecture
that shows the architecture as a base with optional towers.
–
The base and the towers represent different degrees of function achieved by the
architecture.
XDU Tampa FL March 6,2009
33
IPDS Data Towers
For an IPDS
command set
Example of
data tower map
to command set
A data tower
defines the
data carried
XDU Tampa FL March 6,2009
34
17
APF Summary
Spool
CMT
CRM
EPS
AFP data streams
Print Server
IPDS printers.
AFPDS
PSF
Infoprint 4100, 4000
line data
SPS
VIP
PrintNet
PReS
MO:DCA
Mixed-mode
XDU Tampa FL March 6,2009
35
AFP Education & Consulting
Donald Scrima,M- EDP
AFP Education & Consulting
495 Grange Hall Rd
Dayton, Ohio 45430
Phone: (561) 703-3058
e-mail: [email protected]
AFP Education and Training Courses at YOUR site
for the same cost to send one person to a vendor scheduled class.
Courses offered—
Introduction to AFP
AFP A functional Perspective (CEU Certification Continuing
Education Units)
IPDS
AFP Color for TransPromo Printing
About the instructor
Donald Scrima, M-EDP has some 30 years experience in the IT industry and Transaction Printing. He has been a System Programmer, Computer
Operations Manager, Computer Trainer and System Engineer during this time. Mr. Scrima has been involved with Advanced Function Printing
[Presentation] (AFP) since 1988, working with PSF, application and resource generation and IPDS hardware.
Mr. Scrima received his EDP certification in 1995 and since re-certified 2 times. Don in 2009 Certified as a Master–EDP (Expertise in Print Datastreams
specializing in AFP Architecture and Data Stream) newly offered by XPLOR, being one of the first to receive this EDP expert level. He has been a
speaker at Xplor Global Conferences each year since 1994, primarily speaking on AFP. Don has also, presented at numerous Xplor Chapter meetings,
SHARE Technical Conferences, and NaSPA, NaSTC conferences. He is currently President of the XPLOR Ohio Chapter, and has been Vise President.
He is also currently XOLPR Midwest Region is President. Previously Don has served as the Southern Region President and VP, and as XPLOR Citrus
Chapter President. A strong supporter of EDP certification he is currently Chair of the EDP commission and has served 2 terms on the commission.
Mr. Scrima is Principle at AFP Education & Consulting, A consulting firm providing AFP training, applications development and support. Previously,
he was a Sr. System Analyst Workflow Solutions III with Eastman Kodak Company, in the Inkjet Printing Solutions, Graphic Communications Group.
Providing AFP and multiple data stream support for the Versamark ink jet color systems.
In the past, Don was with Océ North America (Siemens Printing Systems) as a Sr. National System Engineer and Sr. Software Trainer. He has worked
at Computer Learning Center, Los Angeles teaching computer operations and programming.
Don began his AFP career with IBM's class on DOS/VSE PSF this to implement AFP printing in the Operations Classes he was teaching in 1988. Since
then he has developed applications for print, created resources, and provided system support for PSF on VSE, VM and MVS. He has been the
instructor for
XDU Tampa FL March 6,2009
36
18
THANK YOU!
For More Information
Donald Scrima, M-EDP
AFP Education & Consulting
[email protected]
XDU Tampa FL March 6,2009
37
19