RE: Adding Verdana font in Linux and registering it with FOP 0.94

2008-09-28 Thread John Brown

Nancy Brandt wrote:
 
 Hi guys,
 
 I am working in Debian Linux.
 
 I would like to change the default body font to Verdana. As Bob Stayton
 writes in his book about Docbook XML, I should run the following command
 after locating the needed font:
 
 # java -cp /home/nancy/fop-0.94/build/fop.jar;
 /usr/share/java/avalon-framework.jar; /usr/share/java/commons-logging.jar;
 /usr/share/java/commons-io.jar org.apache.fop.fonts.apps.TTFReader
 /usr/share/fonts/truetype/verdana.ttf verdana_metric.xml
 
 But the following error occurs:
 Usage: gij [OPTION] ... CLASS [ARGS] ...
   to invoke CLASS.main, or
gij -jar [OPTION] ... JARFILE [ARGS] ...
   to execute a jar file
 Try `gij --help' for more information.
 bash: /usr/share/java/avalon-framework.jar: Permission denied
 bash: /usr/share/java/commons-logging.jar: Permission denied
 bash: /usr/share/java/commons-io.jar: Permission denied
 
 What do I do wrong? :-(
 
 Thanks in advance!
 Nancy
 

These are basic questions, but:

1) Do you keep the FOP jar filesin /usr/share/java? They are
normally found in fop\build or fop\lib.
2) Are these the actual names of the files? My FOP jar files
   usually have a version number suffix: 
   avalon-framework-4.2.0.jar, commons-io-1.3.1.jar, ...

_
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Adding Verdana font in Linux and registering it with FOP 0.94

2008-09-28 Thread nancy_b

Hi dear John,

You always try to help me :-)

Well, when I run '$ locate  fop.jar' for example, I get the following
results:

/home/nancy/fop-0.94/build/fop.jar
/usr/bin/build/fop.jar
/usr/share/java/fop.jar

I've tried to use the files located in the 'lib' directory (those with
version number), but it did not change anything.
My best wishes,
Nancy


Alias John Brown wrote:
 
 
 Nancy Brandt wrote:
 
 Hi guys,
 
 I am working in Debian Linux.
 
 I would like to change the default body font to Verdana. As Bob Stayton
 writes in his book about Docbook XML, I should run the following command
 after locating the needed font:
 
 # java -cp /home/nancy/fop-0.94/build/fop.jar;
 /usr/share/java/avalon-framework.jar;
 /usr/share/java/commons-logging.jar;
 /usr/share/java/commons-io.jar org.apache.fop.fonts.apps.TTFReader
 /usr/share/fonts/truetype/verdana.ttf verdana_metric.xml
 
 But the following error occurs:
 Usage: gij [OPTION] ... CLASS [ARGS] ...
   to invoke CLASS.main, or
gij -jar [OPTION] ... JARFILE [ARGS] ...
   to execute a jar file
 Try `gij --help' for more information.
 bash: /usr/share/java/avalon-framework.jar: Permission denied
 bash: /usr/share/java/commons-logging.jar: Permission denied
 bash: /usr/share/java/commons-io.jar: Permission denied
 
 What do I do wrong? :-(
 
 Thanks in advance!
 Nancy
 
 
 These are basic questions, but:
 
 1) Do you keep the FOP jar filesin /usr/share/java? They are
 normally found in fop\build or fop\lib.
 2) Are these the actual names of the files? My FOP jar files
usually have a version number suffix: 
avalon-framework-4.2.0.jar, commons-io-1.3.1.jar, ...
 
 _
 Stay up to date on your PC, the Web, and your mobile phone with Windows
 Live.
 http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Adding-Verdana-font-in-Linux-and-registering-it-with-FOP-0.94-tp19711056p19711330.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to add watermark

2008-09-28 Thread Jeremias Maerki
There's nothing in XSL-FO to do that. I don't even know if that is
possible in PDF at all.

On 24.09.2008 10:42:48 sushilmuppidi wrote:
 
 I have added water mark as image in pdf. but when i click on the watermark
 image in pdf file, the image being selected and providing the copy option. I
 want to disable copy option of the water mark image.
 Code snippet:  
  fo:simple-page-master master-name=default page-height=29.7cm
 page-width=23cm
   margin-top=11mm margin-bottom=5mm margin-left=23mm
 margin-right=3cm
 fo:region-body 
 background-image=E:\pdfimages\watermark.jpg
 background-repeat=no-repeat
 /fo:region-body 
 fo:region-before region-name=header extent=8in/
   fo:region-after region-name=footer extent=0.5in/
 /fo:simple-page-master
 -- 
 View this message in context: 
 http://www.nabble.com/How-to-add-watermark-tp19644473p19644473.html
 Sent from the FOP - Users mailing list archive at Nabble.com.
 


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validate the integrity of the PDF

2008-09-28 Thread Jeremias Maerki
If there's an exception the FOP command-line interface deletes a PDF
that has not been fully written. The application also sets an error code
in that case that can be inspected by a shell script.

Am I reading you correctly that you have your own application and you're
not using the command-line interface? In that case, using a tool to
validate the PDF is IMO the wrong approach. Better get your exception
handling right and catch the problem earlier rather than spend a lot of
CPU cycles to do forensics on the PDF.

On 23.09.2008 18:46:37 Steffanina, Jeff wrote:
 
 FOP-0.95
 Redhat Linux
 All output looks great.
 
 Situation:
 IF the XML file contains a bug, a PDF is still created.  Therefore, I
 end up with a badly formed PDF on the disk.  I then pass this bad file
 to the spooler and the PDF file hangs the spooler.   Due to the multiple
 levels of system calls I am making in the application, I am unable to
 trap the error (in this case, an fop ValidationException error).
 
 Question:
 When woking in the Korn shell, is there a simple way to test/determine
 that the PDF file generated is properly formed and functional?
 
 
 
 Thanks.
 
 
 Jeff 




Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Adding Verdana font in Linux and registering it with FOP 0.94

2008-09-28 Thread nancy_b



nancy_b wrote:
 
 Hi guys,
 
 I am working in Debian Linux.
 
 I would like to change the default body font to Verdana. As Bob Stayton
 writes in his book about Docbook XML, I should run the following command
 after locating the needed font:
 
 # java -cp /home/nancy/fop-0.94/build/fop.jar;
 /usr/share/java/avalon-framework.jar; /usr/share/java/commons-logging.jar;
 /usr/share/java/commons-io.jar org.apache.fop.fonts.apps.TTFReader
 /usr/share/fonts/truetype/verdana.ttf verdana_metric.xml
 
 But the following error occurs:
 Usage: gij [OPTION] ... CLASS [ARGS] ...
   to invoke CLASS.main, or
gij -jar [OPTION] ... JARFILE [ARGS] ...
   to execute a jar file
 Try `gij --help' for more information.
 bash: /usr/share/java/avalon-framework.jar: Permission denied
 bash: /usr/share/java/commons-logging.jar: Permission denied
 bash: /usr/share/java/commons-io.jar: Permission denied
 
 What do I do wrong? :-(
 
 Thanks in advance!
 Nancy
 
 

Hi guys,
 I have finally managed to create the metric files. Then I went to the
fop.xconf file located in /home/nancy/fop-0.94/ and added the following:


  font-triplet name=verdana style=normal weight=normal/


  font-triplet name=verdanab style=normal weight=bold/


  font-triplet name=verdanai style=italic weight=normal/


  font-triplet name=verdanaz style=italic weight=bold/


But when I compile, the following warnings appear, and the PDF shows ###
signs instead of words:

WARNING: Font 'ZapfDingbats,italic,400' not found. Substituting with
'ZapfDingbats,normal,400'.
Sep 28, 2008 4:36:24 PM
org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorithm
updateData2
WARNING: Line 1 of a paragraph overflows the available area. (fo:block,
location: 64/262)
Sep 28, 2008 4:36:24 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'Symbol,normal,700' not found. Substituting with
'Symbol,normal,400'.
Sep 28, 2008 4:36:34 PM org.apache.fop.fo.flow.TableColumn bind

Please, help!

-- 
View this message in context: 
http://www.nabble.com/Adding-Verdana-font-in-Linux-and-registering-it-with-FOP-0.94-tp19711056p19711685.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Font Issue (Helvetica)

2008-09-28 Thread Jeremias Maerki
Try setting font-family=Helvetica on the fo:root. Maybe there's still
some text that is using the default font which may not be properly
mapped to the embedded Helvetica but to the implicit Base 14 Helvetica 
(and Acrobat is not showing that correctly in the font dialog).

On 26.09.2008 16:58:33 Maximilian Gaerber wrote:
 Hi,
 
 I am trying to produce a pre-press ready PDF document (with embedded 
 fonts). But for some reason Helvetica will not be embedded correctly.
 The configuration is correct (see below), the document properties of 
 Acrobat Professional 8 (see attached images) show that Helvetica is an 
 embedded font but when I run the preflight, all my text occurrences are 
 marked as not embedded.
 
 In the FO I am referencing the font this way:  fo:table 
 table-layout=fixed width=180mm font-family=Helvetica 
 font-weight=normal font-style=normal
 
 Putting or leaving the metrics-url attribute in the config doesn't make 
 a difference.
 
 FOP: Ver. 0.95
 OS: Windows Vista Business
 
 Config snip:
 --
  renderers
 renderer mime=application/pdf
   filterList
 !-- provides compression using zlib flate (default is on) --
valueflate/value
   /filterList
 
   fonts
 !-- register a particular font --
 
 font embed-url=arial.ttf metrics-url=arial.xml 
 kerning=yes
 font-triplet name=Arial style=normal weight=normal/
  font-triplet name=ArialMT style=normal weight=normal/
   /font
  
   !-- metrics-url=hv__.xml --
font embed-url=hv__.PFB kerning=yes
 font-triplet name=Helvetica style=normal weight=normal/
   /font
  
   !-- metrics-url=hvb_.xml  --
font embed-url=hvb_.PFB kerning=yes
 font-triplet name=Helvetica style=normal weight=bold/
   /font
  
 
 
 
 News des Monats: www.thermopal.de - E-Business Lösung mit System für 
 Thermopal, eine Tochter der Pfleiderer AG: Neugestaltung, wegweisende 
 Produktsuche und moderne Nutzerführung!
 
 -- 
 infolox GmbH
 Maximilian Gärber
 Bregenzer Straße 101
 D-88131 Lindau
 
 fon +49 8382 / 275 894-70
 fax +49 8382 / 275 894-9
 mob +49 176 / 20 10 33 24
 
 mail [EMAIL PROTECTED]
 www.infolox.de
 www.selektofix.de
 www.katalogfabrik.de
 www.typo3-services.com
 
 
 Rechtsform: Gesellschaft mit beschränkter Haftung
 Sitz der Gesellschaft: Lindau a. B.
 Registergericht: Amtsgericht Kempten
 Registernummer: HRB 8161
 Geschäftsführer: Stefan Bauhuis, Alexander Pircher, Richard Schmid
 




Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Adding Verdana font in Linux and registering it with FOP 0.94

2008-09-28 Thread nancy_b



nancy_b wrote:
 
 
 
 nancy_b wrote:
 
 Hi guys,
 
 I am working in Debian Linux.
 
 I would like to change the default body font to Verdana. As Bob Stayton
 writes in his book about Docbook XML, I should run the following command
 after locating the needed font:
 
 # java -cp /home/nancy/fop-0.94/build/fop.jar;
 /usr/share/java/avalon-framework.jar;
 /usr/share/java/commons-logging.jar; /usr/share/java/commons-io.jar
 org.apache.fop.fonts.apps.TTFReader /usr/share/fonts/truetype/verdana.ttf
 verdana_metric.xml
 
 But the following error occurs:
 Usage: gij [OPTION] ... CLASS [ARGS] ...
   to invoke CLASS.main, or
gij -jar [OPTION] ... JARFILE [ARGS] ...
   to execute a jar file
 Try `gij --help' for more information.
 bash: /usr/share/java/avalon-framework.jar: Permission denied
 bash: /usr/share/java/commons-logging.jar: Permission denied
 bash: /usr/share/java/commons-io.jar: Permission denied
 
 What do I do wrong? :-(
 
 Thanks in advance!
 Nancy
 
 
 
 Hi guys,
  I have finally managed to create the metric files. Then I went to the
 fop.xconf file located in /home/nancy/fop-0.94/ and added the following:
 
 
   font-triplet name=verdana style=normal weight=normal/
 
   
   font-triplet name=verdanab style=normal weight=bold/
 
 
   font-triplet name=verdanai style=italic weight=normal/
 
 
   font-triplet name=verdanaz style=italic weight=bold/
 
 
 But when I compile, the following warnings appear, and the PDF shows ###
 signs instead of words:
 
 WARNING: Font 'ZapfDingbats,italic,400' not found. Substituting with
 'ZapfDingbats,normal,400'.
 Sep 28, 2008 4:36:24 PM
 org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorithm
 updateData2
 WARNING: Line 1 of a paragraph overflows the available area. (fo:block,
 location: 64/262)
 Sep 28, 2008 4:36:24 PM org.apache.fop.fonts.FontInfo
 notifyFontReplacement
 WARNING: Font 'Symbol,normal,700' not found. Substituting with
 'Symbol,normal,400'.
 Sep 28, 2008 4:36:34 PM org.apache.fop.fo.flow.TableColumn bind
 
 Please, help!
 
 

When I look at the FO file, I discover the following:
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
font-family=Verdana,Symbol,ZapfDingbats...

-- 
View this message in context: 
http://www.nabble.com/Adding-Verdana-font-in-Linux-and-registering-it-with-FOP-0.94-tp19711056p19711798.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Adding Verdana font in Linux and registering it with FOP 0.94

2008-09-28 Thread John Brown

Nancy Brandt wrote:


 Hi dear John,

 You always try to help me :-)

 Well, when I run '$ locate  fop.jar' for example, I get the following
 results:

 /home/nancy/fop-0.94/build/fop.jar
 /usr/bin/build/fop.jar
 /usr/share/java/fop.jar

 I've tried to use the files located in the 'lib' directory (those with
 version number), but it did not change anything.
 My best wishes,
 Nancy


FOP can automatically detect fonts now. Try using auto-detect
instead of the font metrics file. See
http://xmlgraphics.apache.org/fop/0.94/fonts.html#register
for details.

The relevant parts of my fop configuration file look like this:



...
  

   
...

  

...


...
  


Nancy Brandt wrote:


 Hi dear John,

 You always try to help me :-)

 Well, when I run '$ locate  fop.jar' for example, I get the following
 results:

 /home/nancy/fop-0.94/build/fop.jar
 /usr/bin/build/fop.jar
 /usr/share/java/fop.jar

 I've tried to use the files located in the 'lib' directory (those with
 version number), but it did not change anything.
 My best wishes,
 Nancy


FOP can automatically detect fonts now. Try using auto-detect
*instead of* the font metrics file.  If your fonts are not in the
standard locations, you can use the  tag. See
http://xmlgraphics.apache.org/fop/0.94/fonts.html#register
for details.

The relevant parts of my fop configuration file look like this:



...
  

   
...

  

...


...
  

_
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Adding Verdana font in Linux and registering it with FOP 0.94

2008-09-28 Thread John Brown
Nancy Brandt wrote:


 Hi dear John,

 You always try to help me :-)

 Well, when I run '$ locate  fop.jar' for example, I get the following
 results:

 /home/nancy/fop-0.94/build/fop.jar
 /usr/bin/build/fop.jar
 /usr/share/java/fop.jar

 I've tried to use the files located in the 'lib' directory (those with
 version number), but it did not change anything.
 My best wishes,
 Nancy


I keep forgetting not to write XML in Hotmail.

FOP can automatically detect fonts now. Try using auto-detect
instead of the font metrics file. See
http://xmlgraphics.apache.org/fop/0.94/fonts.html#register
for details.

The relevant parts of my fop configuration file look like this:

renderers
renderer mime=application/pdf
...
  fonts
!-- embedded fonts --
   
...
auto-detect/
  /fonts

...
/renderer

...
  /renderers



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: table border irregularity

2008-09-28 Thread dbtool

Hi,

I have the same problem.  http://www.nabble.com/file/p19715842/preview.pdf
preview.pdf  shows the mentioned behaviour and 
http://www.nabble.com/file/p19715842/preview_without_bgcolor.pdf
preview_without_bgcolor.pdf  shows the same output but without background
color for the table cell elements. It looks like the background is painted
over the borders.  http://www.nabble.com/file/p19715842/preview.fo
preview.fo  and 
http://www.nabble.com/file/p19715842/preview_without_bgcolor.fo
preview_without_bgcolor.fo  contain the XSL:FO code for the two PDF
documents. By pressing CTRL+5 (Adobe Reader 8) the irregularity is clearly
visible in preview.pdf. Without the background color the borders are painted
correctly, but there are still some gaps between rows.

There are many nested tables which are generated by a report generator which
gets the data from a database, so there is no easier way to generate the
desired output. I'm using the last trunk version of FOP (revision 681373). I
am thankful for any suggestions!
-- 
View this message in context: 
http://www.nabble.com/table-border-irregularity-tp4021288p19715842.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]