AW: Regression tests was: Re: Output from NIST test suite

2003-12-26 Thread J.U. Anderegg
Peter Kullmann wrote: As an alternative approach for c) one could create tests along the following lines: Suppose you want to test left margin properties of a block. For this a simple fo file is rendered as a bitmap. The bitmap will not be compared to a reference bitmap but some elementary

AW: AW: What should I be doing ?

2003-12-20 Thread J.U. Anderegg
Christian Ziesemer wrote: Do you know other projects dealing with high quality typesetting with Java or if Java 1.5 will bring improvements? I'm thinking about writing my diploma thesis about how to extend the current/implement a typesetting API for Java. Batik extends text attributes with

AW: What should I be doing ?

2003-12-17 Thread J.U. Anderegg
It might be helpful to take the renderer programmer's view: - A meaningful renderer interface has to be specified now, i.e. the representation of pages either in memory or serialized. More supported XSL properties lead to bigger storage requirements. - Renderers take over pages consisting from

A Java2D Renderer/Viewer Prototype

2003-07-10 Thread J.U. Anderegg
Orientations, writing directions, bidi, Asian languages, precise coordinates, drawing priorities, page caching, paragraph formatting: this renderer/viewer handles it. With low memory usage. See: http://mypage.bluewin.ch/huanderegg Hansuli Anderegg

AW: Alternative API proposal (was: startup refactoring)

2003-06-26 Thread J.U. Anderegg
: JPS Renderer/Viewer FOP Renderer/Viewer based on Java Printing System, Graphics2D Project: JPS Renderer/Viewer Author: J.U. Anderegg E-Mail: [EMAIL PROTECTED] The Java Printing System enables applications to: Print Java 2D™ graphics, text and images. Control document-composition functions

AW: Structure renderers area trees (Re: startup refactoring)

2003-06-23 Thread J.U. Anderegg
Bertrand Delacretaz wrote The whole point of the StructureHandler interface is to be able to reuse FOP's frontend for structure-based renderers. The impact of StructureHandler on the standard FOP output formats (PDF mostly) is minor, but it allows the FOP pipeline to branch cleanly, after

AW: AW: Structure renderers area trees (Re: startup refactoring)

2003-06-23 Thread J.U. Anderegg
Bertrand Delacretaz wrote: ... How do you plan to handle RTF styles? In jfor we defined an extension to XSL-FO (the jfor-style attribute) to control RTF styles. I think some form of extension is needed as (AFAIK) the concept of styles does not exist in XSL-FO, as it is meant for printed

AW: startup refactoring

2003-06-21 Thread J.U. Anderegg
A FOP renderer cannot support fonts. Physical devices, output systems do this. But a FOP renderer may allow to map fonts and translate Unicode characters to bytes using codepages. The user has to take care that font metrics and it's character sets are accurate enough for all target devices and

AW: startup refactoring

2003-06-20 Thread J.U. Anderegg
The current FOP is not fit for i18n, directions, area orientations and does not even support a dotted line. Renderes too. Design correct data objects in the first place instead of fancy control mechanisms. - what do pipelines look like? - are there really pipelines or are partial document

AW: hack to avoid memory overflow with tables

2003-05-30 Thread J.U. Anderegg
Glen Mazza wrote: FOP's goals should be (1) to be compliant/accurate with the spec The Area Tree is an implementation specification: either the XSL editors remove it from the specs or they specify it precisely as a portable, device-independent print file format. I ran Chuck Paussa's FO schema

AW: AW: Thoughts on design - FO property expressions

2003-05-28 Thread J.U. Anderegg
Peter B. West wrote: You seem to be familiar with some of the swing.javax.text classes. Yes, as a user of these classes: no need to know internals. Can you sketch the approach out in a bit more detail? Have you looked at percentages? See a description javax.swing.text: Interface

A FOP Renderer based on Java Printing System and Grapics2D

2003-04-05 Thread J.U. Anderegg
The Java Printing System enables applications to: - Print Java 2D™ graphics, text and images. - Control document-composition functions such as soft collating, reverse order printing, and booklet printing. - Invoke printer-specific functions such as duplex (two-sided) printing and stapling. -

AW: PDF transforms (was: Re: File prefix again)

2002-12-23 Thread J.U. Anderegg
Hi Keiron, On Sun, 2002-12-22 at 02:18, Kevin O'Neill wrote: Is the paged XML a new or existing format? A new format for now at least. It is possible there will be a w3c defined format. Please give some pointer to w3c activities in this area. What is this thing exactly supposed to do?

AW: Sun XSL Formatter

2002-12-18 Thread J.U. Anderegg
Whatever the motivation of Sun was, FOP has to be postitioned in the IT world. What runs in which environment? Which output types are supported? - Adobe announced PDF support (in a Windows environment?) - IBM announced AFP support in a Java environment - Sun's XSL:FO supports PDF (in a UNIX or

AW: Disable save button in acrobat reader

2002-12-12 Thread J.U. Anderegg
Gorka Echevarría wrote: Anybody knows how can I disable the save button on Acrobat Reader? Ask this question in a PDF forum! The next question will be: is FOP able to output PDF documents with the required properties? I guess AcroScripts will do the job. Hansuli Anderegg

New: AFP Renderer / Batch Assembler for FOP

2002-12-07 Thread J.U. Anderegg
For details see: see http://mypage.bluewin.ch/huanderegg Topics of general interest: - use of Jeremias Maerki's extension sample: for PDF bookmarks, JavaScripts, barcodes? - Java Image I/O - decoupling the renderer Hansuli Anderegg

AW: Form XObject (was: Re: Avalonization?)

2002-11-12 Thread J.U. Anderegg
On Tue, 2002-11-12 at 12:00, Kevin O'Neill wrote: I just added a Form XObject but it needs some work (eg. bounds). How do you intend to pass xobject hits from the fo processor. I had thought about a fop specific attribute that was a hint on block level objects. What does your xsl:fo

AW: [RT] Proprietary extension to fo:external-graphic

2002-11-08 Thread J.U. Anderegg
Considering PDF only, I see prefabricated image XObjects as a very powerful feature. Extracting image XObjects from PDF files and storing them for use by the renderer brings two advantages: a) saves CPU and memory at a maximum b) the user controls image representation/handling in PDFs. Writing

fo:external-graphic in PDF

2002-11-06 Thread J.U. Anderegg
This is how it used to work: o anywhere in FOP formatting - load image, if same URL was not loaded before and find out the space needed for the image. - keep list of processed files. o PDF Renderer: - generate XObject, if XObject of same URL was not generated before. Delete image buffer:

AW: storing metadata

2002-10-28 Thread J.U. Anderegg
Hi Paul, this is how Acrobat embeds files. Follow the indirect PDF object references: 5 0 obj /Pages 2 0 R /Type /Catalog /Metadata 19 0 R /Names 17 0 R --- add this entry endobj 17 0 obj --- add this object /EmbeddedFiles 18 0 R endobj 18 0 obj --- add this object /Names [ (?y M y D a t

AW: storing metadata

2002-10-24 Thread J.U. Anderegg
Hi Paul, Do you want to embed the XSL:FO input in the PDF document? If this is so: o embedding files in PDF is the thing to do, but quite a challenge to build into the PDF renderer. o out of pure curiosity: why? Hansuli Anderegg

AW: BARCODE

2002-10-09 Thread J.U. Anderegg
Why not a fast, flexible and reliable solution? 3 things are needed: o Java routines to calculate barcode rectangles and label areas depending from barcode type and its parameters. Possibly such routines are freely available. Otherwise: give me the specs, I will write the code (the nowadays

AW: Adding Arial font support

2002-08-01 Thread J.U. Anderegg
from PDF Reference p.319 Standard Type 1 Fonts The PostScript names of 14 Type 1 fonts, known as the standard fonts, are as follows: 1 HelveticaSans-Serif 2 Helvetica?Bold 3 Helvetica?Oblique 4 Helvetica?BoldOblique 5 Times?Roman Serif 6 Times?Bold 7 Times?Italic 8

AW: OutofMemoryException

2002-07-25 Thread J.U. Anderegg
To attack the problem: o split the job into 2 steps: - XSL transformation writes XSL:FO to a file - FOP formats the file o use another renderer: text e.g. o vary the input - reduce the volume: when does it blow up? - eliminate distinct elements You will pretty

AW: FO to RTF

2002-07-24 Thread J.U. Anderegg
Rendering RTF from the FOP area tree will produce a document edited without template (.dot). RTF is a revisable format - not a formatted document format. XSL:FO is an extensive formatting language without any kind document elements (like Adobe's e-Book), macros or stylesheets in the original

AW: PDF output driver

2002-07-24 Thread J.U. Anderegg
Let's talk component software (or blame monolithic MicrosSoft)! - Formatting has to be separated strictly from rendering o A clean and stable interface has to be defined (why not by data representations of powerful PDF?) o The renderer has to control the processing sequence. -

AW: AW: [REDESIGN] pdf changes

2002-07-03 Thread J.U. Anderegg
XREF PDF objects have to be written PHYSICALLY in ascending sequence of the PDF object ID's. This is a requirement of the present XREF handling. If tis condition is fulfilled and PDF syntax is correct, there is most likely a length in error. Page viewport in PDF is the /Cropbox Cropbox: x =

AW: [REDESIGN] pdf changes

2002-07-02 Thread J.U. Anderegg
Keiron wrote: - added transparency for shapes and alpha mask for images well, what has to be transparent? Background images or overlaying text? - 82 pages: Transparency in PDF, Technical Note #5407, Adobe Developer Technologies - Outputs pdf objects immediately Unortunately I have broken the

AW: image support (was: RE: Fop and JDK1.2 (using ant copy tasks toselect implementations))

2002-06-13 Thread J.U. Anderegg
The good library is here: Java Advanced Imaging. In a few days I will have a sample PDF renderer using it. o BMP, GIF, TIF, JPG, FPX, PNM and SVG are processed. o Immediate file operations: 1 image in memory at a time o caching, reuse by PDF features Hansuli Anderegg

AW: Antw: AW: printing the correct document

2002-06-10 Thread J.U. Anderegg
Copy from Adobe Knowledge Base: PDF File Prints Off-Center to HP 1120c, Epson Stylus 860, and Epson Stylus 656 Issue When you print a PDF file from an Adobe Acrobat 4.0 or later product (such as Acrobat or Acrobat Reader) to a Hewlett-Packard (HP) 1120c printer, an Epson Stylus 860 printer, or

Renderer Analysis

2002-06-08 Thread J.U. Anderegg
In order to learn the page geometry I built a trace into the PDFRenderer. Then I found that SVG can be written easily at the trace points. An analysis of the results follows. Coordinates (o) received by the

AW: printing the correct document

2002-06-08 Thread J.U. Anderegg
Guten Tag, schicken Sie mir die Input xsl:fo? Dann kann ich den Fall einmal anschauen. Mit freundlichen Gruessen Hansuli Anderegg Tel. 01-381-0207 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email:

PDF Tests

2002-06-05 Thread J.U. Anderegg
View the PDF document with a Browser, e.g Internet Explorer. Keep it open during your test session and reload the file when a new document version is written. There are no file locking/sharing problems, no need to change file names. I suppose print fidelity is kept. Hansuli Anderegg

AW: Running Prefligh PDF tools on PDF files produced by FOP

2002-05-28 Thread J.U. Anderegg
Matthew Brook O'Donnell schrieb: cause a 'fatal PDF error' in PitStop, even without the modification of (_data.size() + 1) to _data.size() in the PDFStream class that Hansuli proposed. However, I haven't been able to produce PDF that pass with 0.20.3 (even with the proposed patch). [..]

AW: PS Renderer patch

2002-05-27 Thread J.U. Anderegg
The coordinates x/y have to be defined: outer, inner, center of the border line? PDF renderer FOP-0.20.1 o draws a box with 4 filled rectangles - each border line is a filled rectangle. The SVG trace below demonstrates this. o 4 calls to method addFilledRect(int x, int y, int w, int h,

AW: diffs for on-the-fly image support

2002-05-21 Thread J.U. Anderegg
Inserting JPEG into a PDF file is a simple file copy - given the URI, bits/pixel and color model. The latter are coded within JPEG files. PDF stores the image once and allows multiple references to it. Is programmed caching superior to the caching of the file system? From PDF view, memory =

AW: direct rendering of images to pdf

2002-05-16 Thread J.U. Anderegg
These notes apply to fo:external-graphic under FOP 0.20.1: o FOP images are kept as XObjects until the end of job, because - the image is written to the output file - and the complete image object is added to the XObjects vector in order to build the ressource dictionary at the

AW: AW: Latest FOP schema

2002-05-13 Thread J.U. Anderegg
J. Pietschmann wrote: fo:block are Rectangular areas, perhaps indented and with border, padding and other individual traits, nested into a rectangular area. I understand setting traits, properties. How about page layout, setting inline and baseline postitions? Does it imply a unconditional

AW: Latest FOP schema

2002-05-11 Thread J.U. Anderegg
From the external view block means a rectangle containing formatted text, something like a paragraph. o What do fo:blocks as children of fo:blocks: mean for the end user? o What's teheffect of block's in combination with tag element TEXT like leader, marker, inline, wrapper, basic-link? o When

Tables: padding and borders

2002-05-07 Thread J.U. Anderegg
Tests with FOP 0.20.1 and PDF output: o Cells - Define a rectangle with geometric lines as sides: width = 0. - Padding on the cell element offsets text within the cell rectangle. - Border rectangles are centered over the sides of the cell rectangle. Adjacent cells put

AW: Is SVG a preferred way to draw form lines?

2002-05-06 Thread J.U. Anderegg
At least 2 aspects are to be considered: document design/generation and operation o SVG - document design: do you have a tool? - operation: uses Batik starts new processes and generates images o xsl:fo table with borders, backgrounds - document design: type xsl:fo on

AW: [REDESIGN] Line layout manager discussion

2002-05-06 Thread J.U. Anderegg
By writing renderer code with FOP 0.20.1 I observed : A basic link fo:basic-link internal-destination=dest0link wordst/fo:basic-link arrives 3 times in the PDFrenderer asynchronously, without any connection between each other. 1. as word link 2. as word words 3. as annotation rectangle This

AW: [REDESIGN] Line layout manager discussion

2002-05-01 Thread J.U. Anderegg
Questions: o A basic-link in PDF means an annotation - an annotation defines a rectangle. What's the effect, if the annotation text breaks to a new line? If the basic-link contains more blocks and children? o Middle Easterner write left-to-right, top-to-bottom. Far Easterners write from

FOP PDF extensions: multilevel outlines, form fields, Javascript

2002-04-25 Thread J.U. Anderegg
Specification Request I programmed multilevel outlines, form fields, Javascripts with the PDF classes of Fop-0.20.1. These experiments, attacking from the back end, lead to these conclusions: 1. PDF Extensions can be added to the PDF classes on a clean way. The trick is when/where to insert

External Links

2002-04-17 Thread J.U. Anderegg
By looking at PDF I think a link has to be coded like this (copy in the samples): fo:basic-link external-destination=destinationlink_rectangle/fo:basic-link o destination: an URI, where it makes a difference if there is an extension .pdf or not o link_rectangle: the rectangle on the page to

PDF JavaScript and Form Fields: FOP prototype version is available

2002-04-12 Thread J.U. Anderegg
Attached I send a small demo document generated by an adapted FOP system. If attachements do not work in the forum, send me a request by e-mail. If there is interest I will compile the inputs, some comments and a list of related documents. PDF JavaScript and Form Fields cover a broad range of

AW: Designing PDF extensions: form fields

2002-04-08 Thread J.U. Anderegg
Forms and JavaScript in PDF may be about as complex as xsl:fo. To get a feeling for the learning, design and development effort see: Acrobat JavaScript Object Specification, Version 5.0.5, Technical Note # 5186 Chapter Quick Reference Forms: 20 pages illustrated with Acrobat menues Keyword

AW: Designing PDF extensions: form fields

2002-04-04 Thread J.U. Anderegg
Hi Keiron, Let's fix a DESIGN GOAL. What can be realized in which time frame? I see 2 ways to go ahead: 1. Low level implementation using native PDF syntax: users have to learn PDF syntax and to some extent PDF file structure. They can try experimentally everything with the risk of invalid PDF

Designing PDF extensions: form fields

2002-04-01 Thread J.U. Anderegg
I programmed PDF form fields into Fop-0.20.1. PDF form fields have an annotation representation in PDF files with the subtype widget. So I patched the external-link within the renderer code to process form fields. Additionally a PDF fields object had to be added to the PDF stream and a reference