Absolute positioning and images

2009-08-04 Thread Andrew Humphries (MEL)

Hi - 

Am investigating FOP as an alternative to our current PDF solution,
Itext.

I have done some research but cannot see from the FAQ etc and googling

Can I absolutely position (to pixel positions) text on a pdf with FOP?

I need to absolutely position text on the pdf ontop of a background
image with any library I can consider as a replacement for Itext.  I am
using the PDFContentByte in Itext to do this absolute positioning.

Thanks in advance

Andrew
 
 
 

This e-mail, and any attachment, is confidential. If you are not the intended 
recipient, please delete it from your system, do not use or disclose the 
information in any way, and notify the sender immediately.
Any views expressed in this message are those of the individual sender and may 
not be the views of FOXTEL, unless specifically stated. No warranty is made 
that the e-mail or attachment (s) are free from computer viruses or other 
defects.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



AW: Absolute positioning and images

2009-08-04 Thread Georg Datterl
Hi Andrew, 

Yes, you can. As long as you do not need to know the width or height of a 
published block, I haven't found anything iText can do and Fop can't. And I 
transfer a creation engine for 1.3K pages catalogues.

Mit freundlichen Grüßen
 
Georg Datterl
 
-- Kontakt --
 
Georg Datterl
 
Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg
 
HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert 

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20
 
www.geneon.de
 
Weitere Mitglieder der Willmy MediaGroup:
 
IRS Integrated Realization Services GmbH:www.irs-nbg.de 
Willmy PrintMedia GmbH:www.willmy.de
Willmy Consult  Content GmbH: www.willmycc.de 
-Ursprüngliche Nachricht-
Von: Andrew Humphries (MEL) [mailto:andrew.humphr...@foxtel.com.au] 
Gesendet: Dienstag, 4. August 2009 09:10
An: fop-users@xmlgraphics.apache.org
Cc: Amit Bhasin (MEL)
Betreff: Absolute positioning and images


Hi - 

Am investigating FOP as an alternative to our current PDF solution, Itext.

I have done some research but cannot see from the FAQ etc and googling

Can I absolutely position (to pixel positions) text on a pdf with FOP?

I need to absolutely position text on the pdf ontop of a background image with 
any library I can consider as a replacement for Itext.  I am using the 
PDFContentByte in Itext to do this absolute positioning.

Thanks in advance

Andrew
 
 
 

This e-mail, and any attachment, is confidential. If you are not the intended 
recipient, please delete it from your system, do not use or disclose the 
information in any way, and notify the sender immediately.
Any views expressed in this message are those of the individual sender and may 
not be the views of FOXTEL, unless specifically stated. No warranty is made 
that the e-mail or attachment (s) are free from computer viruses or other 
defects.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Absolute positioning and images

2009-08-04 Thread Vincent Hennebert
Hi Andrew,

Andrew Humphries (MEL) wrote:
 Hi - 
 
 Am investigating FOP as an alternative to our current PDF solution,
 Itext.
 
 I have done some research but cannot see from the FAQ etc and googling
 
 Can I absolutely position (to pixel positions) text on a pdf with FOP?
 
 I need to absolutely position text on the pdf ontop of a background
 image with any library I can consider as a replacement for Itext.  I am
 using the PDFContentByte in Itext to do this absolute positioning.

You want to use an absolutely-positioned block-container element:
fo:block-container absolute-position=absolute top=10pt
  left=10pt
  fo:blockText in an absolutely-positioned block-container.../fo:block
/fo:block-container

Note that positions in pixels don’t have much meaning in PDF. You
usually set the size of the document in cm, mm or pt, and position
objects in the PDF likewise.


HTH,
Vincent

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: Superscripts at beginning of line not working

2009-08-04 Thread Amick, Eric
I don't have 0.20.5, but have you tried putting a zero-width space
(#x200b;) in front of the inline? It can't make it any worse. 


Eric Amick
Legislative Computer Systems
Office of the Clerk

-Original Message-
From: adogg [mailto:andrew_stee...@hotmail.com] 
Sent: Monday, August 3, 2009 6:25
To: fop-users@xmlgraphics.apache.org
Subject: Superscripts at beginning of line not working


I'm using FOP 0.20.5 (it's not possible for me to upgrade) and I'm
having a problem with superscripting text when it falls at the beginning
of a line. 
I use fo:inline vertical-align=super to do the superscript, but when
the superscripted character is the first one in a line, the character is
not elevated above the others.  

It's pretty simple to recreate - here are the fo and pdf files:

http://cid-ecea845b36037b38.skydrive.live.com/self.aspx/.Public/fo-super
script-problem.xml
http://cid-ecea845b36037b38.skydrive.live.com/self.aspx/.Public/output.p
df

I can't believe that no one has come across this before, but I searched
Google and the mailing lists and haven't seen anything about it.

Has anyone seen it or done a workaround for it?  Maybe another way to do
superscripts?


--
View this message in context:
http://www.nabble.com/Superscripts-at-beginning-of-line-not-working-tp24
788408p24788408.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Supporting Pages of Different Widths – Testers W anted!

2009-08-04 Thread Vincent Hennebert
Dear FOP Community,

As some of you may know we are currently working towards fixing one of
FOP’s major remaining issues: its inability to handle sequences of pages
with different widths.

At the moment, the width of the first page of an fo:page-sequence is
used for the whole sequence, even if later pages have different widths
(for example, switching from portrait to landscape orientation). There
is ongoing work on the creation of a new layout engine that will be able
to overcome this limitation, but it will still take some time to finish
it, and meanwhile that feature lack is becoming more and more annoying.

So we decided to implement a cheap, limited fix that should make
a majority of users happy, while leaving us time to implement the new
approach.

The changes that have been made to the code are very hacky and we would
like to get some feedback on them before making an official release.
Therefore I would like to ask everyone on this list who is interested in
this new feature to download the binary and test it with their own
files. Please report any issue that you may find on this list, with
a sample FO file (please send the file directly to me if it’s big or
confidential).

I’ve set up a web page providing some explanation and links to the
binaries:
http://people.apache.org/~vhennebert/ChangingIPDHack/
PLEASE NOTE: the binaries are being made available through my personal
space at people.apache.org. They are not replicated over the Apache
mirrors like releases. Therefore, in order to save bandwidth please
download them only for the purpose of testing the new feature. For all
other cases please use the usual download links provided on FOP’s
website [1]. Thank you.

The page above also lists known limitations, that I’m reproducing here
for convenience:
- Tables and lists are not supported: they won’t be re-laid out
  according to the new width, but will simply be left as they are. This
  means that some content may be silently clipped when switching to
  a page with a narrower width (for example, from landscape to
  portrait). In the opposite situation (portrait to landscape), the
  table or list will not cover the whole width of the page.

  Layout will be re-launched at the first element that is not enclosed
  by a table or a list. All other FO elements implemented in FOP Trunk
  should support the width change.
- In addition to not being re-laid out, a table or list that is broken
  over two pages of different widths may have its border- and
  padding-before wrong. The .conditionality component will be
  interpreted as retain even when left to its default value of discard.
- Also, the space-before of the first element following the table or
  list will be discarded, as if the element were starting the page. The
  workaround is to set its space-before.conditionality component to
  retain.
- There is likely to be memory and performance issues, as every time
  a page with a different width is encountered, all the content that
  remains to be laid out will be thrown away until the end of the
  page-sequence, and re-generated according to the new width.


If no big issues have been found, the changes will be integrated into
the next release of FOP (which will hopefully happen soon...).

Thanks,
Vincent

[1] http://xmlgraphics.apache.org/fop/download.html

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Exception in thread main java.lang.NoClassDefFoundError: org/apache/fop/cli/Main

2009-08-04 Thread Tuan Quan
Hi all,
I'm using FOP 0.93.
Got the above message, when execute the following script.
Any help would be very appreciated.
I have checked the .jar and they all are there specified in class path.
thanks.
Tuan.
PS. The script is in /apps/Process. 
FOP 0.93 is in /apps/fop-0.93#!/bin/sh
DirCur=/apps/Process
cd /apps/fop-0.93
LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
LOGFILE1=-Dlog4j.configuration=file:conf/log4j.xsl.properties
LOGFILE2=-Dlog4j.configuration=file:conf/log4j.pdf.properties
FOP_HOME=/apps/fop-0.93
LIBDIR=$FOP_HOME/lib
LOCALCLASSPATH=$FOP_HOME/build/fop.jar
#LOCALCLASSPATH=$LOCALCLASSPATH;$FOP_HOME/build/fop-sandbox.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/xml-apis-1.3.02.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/xercesImpl-2.7.1.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/xalan-2.7.0.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/serializer-2.7.0.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/batik-all-1.6.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/xmlgraphics-commons-1.1.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/avalon-framework-4.2.0.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/commons-io-1.1.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/commons-logging-1.0.4.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/jimi-1.0.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/jai_core.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/jai_codec.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/fop-hyph.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/saxon8.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/log4j-1.2.14.jar

FOP_CMD_LINE_ARGS=-xml $DirCur/$Book.xml
FOP_CMD_LINE_ARGS=$FOP_CMD_LINE_ARGS -xsl $DirCur/my_assembly.xsl
FOP_CMD_LINE_ARGS=$FOP_CMD_LINE_ARGS -param g-book-path $DirCur/
FOP_CMD_LINE_ARGS=$FOP_CMD_LINE_ARGS -foout $DirCur/$Book.tmp
echo $FOP_CMD_LINE_ARGS
echo -
echo $LOCALCLASSPATH
java -Xms128M -Xmx512M -cp $LOCALCLASSPATH 
-Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl 
org.apache.fop.cli.Main FOP_CMD_LINE_ARGS
-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Re: Exception in thread main java.lang.NoClassDefFoundError: org/apache/fop/cli/Main

2009-08-04 Thread Sergiu Dumitriu

Tuan Quan wrote:

Hi all,
I'm using FOP 0.93.
Got the above message, when execute the following script.
Any help would be very appreciated.
I have checked the .jar and they all are there specified in class path.
thanks.


On Linux systems, classpath entries should be separated by a colon (:) 
instead of a semicolon (;)


LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/jimi-1.0.jar
becomes:
LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/jimi-1.0.jar

and so on.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org