Re: Arial font not rendered correctly after update from v2.3 to v2.6

2021-11-08 Thread Chris Bowditch

Hi Denis,

Can you attach the fop.xconf file so we can see how you configured fonts

Thanks,

Chris

On 26/10/2021 09:48, Denis Maltzahn wrote:


Hi,

since we updated the FOP library from v2.3 to v2.6 the “Arial” font is 
not rendered correctly.


It looks like FOP does not know the os font directory. As fallback it 
uses “Times”.


We also updated Batik from v1.10 to v1.14. I’m not sure if this is a 
FOP or Batik problem but FOP also uses Batik so I think this is the 
right place to ask the question.


We have a SVG that we want to convert to a pdf.

I added our code and a little description as a PDF. I can’t write it 
directly into the E-mail because it will be getting filtered (Maybe 
because of the html tags)


If you have some questions, feel free to ask.

Can you help me with this problem?


Mit freundlichen Grüßen / Kind regards,

*Denis Maltzahn*
Software Engineer

*Beta Systems DCI Software AG
*
Development
Europastraße 3,  67433 Neustadt an der Weinstraße
Phone: +49 6321 49915 146_
Email: denis.maltz...@betasystems.com 
_

www.betasystems-dci.com 


Mandatory Information for business emails according to German trade 
laws / Pflichtangaben für geschäftliche E-mails gemäß 
Handelsgesetzbuch und Aktiengesetz:

Beta Systems DCI Software AG, Alt-Moabit 90d, 10559 Berlin, Germany
Phone: +49-(0)30-726 118-0, Fax: +49-(0)30-726 118-800, E-mail: 
info-...@betasystems.com 


Management board / Vorstand: Dr. Andreas Huth, Mirko Minnich, Gerald 
Schmedding   | Chairman of the supervisory board / Vorsitzender des 
Aufsichtsrats: Dr. Wolfgang Schlaak
Legal form / Rechtsform: Aktiengesellschaft  |  Registered office / 
Sitz: Berlin  |  Commercial register / Handelsregister: Amtsgericht 
Charlottenburg HRB 165021 B

VAT-ID / Ust-ID-Nr.:  DE300955711 |  Tax No. / St.-Nr.: 30/036/75458
Bank / Bankverbindung: Commerzbank AG, BIC: COBADEFF, IBAN: DE60 1004 
 0230 9375 00





-
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: Embed image from database, not from file

2021-03-26 Thread Chris Bowditch

Hi,

yes you can use data URI to avoid saving it to a file

Thanks,

Chris

On 26/03/2021 13:45, Markus Ruggiero wrote:

Folks,

I have image data stored in a database, not as a file. It is JPEG data in 
Base64 encoding. My understanding is that with fo.external-graphic I can only 
use a proper file url for the image reference - but there is no file in my 
case. Is there any other way to embed image data in the PDF output? Can I 
somehow put the image data into the input xml data file and pull it from there?

Thanks for any help
---markus---
-
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: TTF->AFP Font | Looking for IBM Type Transformer for Windows

2021-03-16 Thread Chris Bowditch

Hi,

This utility is provided when you buy an IBM AFP Printer. I have it but 
it would be a copy right infringement to share it


Also, you don't need to do this if the printer supports TTF Fonts as FOP 
supports TTF fonts in AFP


Thanks,

Chris

On 26/02/2021 13:04, Tino maier wrote:

Hi everyone,

I'm trying to create some afp raster fonts from true type fonts and I found the link to the 
"IBM Type Transformer for Windows  
" on the AFP-Resource 
Wiki-Page.
Unfortunately the link is broken and the software seems to be gone.

Does anyone have a copy of it and could send it to me? This would be great.
Best regards, Tino
- 
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: Using Various Fonts to Achieve Multiple Languages Sometimes Results in Errors

2021-03-16 Thread Chris Bowditch

Hi,

You shouldn't be seeing that error. If you can share the fonts you 
configured then please log a bug with XSL-FO attached with fonts and 
fop.xconf file


Thanks,

Chris

On 16/02/2021 15:43, Martin Furek wrote:

I think I didn't explain myself well. I need to support multiple
languages with mixed text (latin in Chinese and other way around). I
never know beforehand where the text is. This works with multiple
fonts, but sometimes throws an error as in the text that I already
mentioned.

-
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: Visual Debugging using borders or background colors

2021-01-11 Thread Chris Bowditch

Hi,

Background colours are a more effective way of identifying which part of 
a document comes from which Formatting object. As you already mentioned 
using border is less effective as it alters the layout of the objects as 
borders themselves require space in the document


Thanks,

Chris

On 02/01/2021 21:53, Kirkilis, John (Nokia - US/Austin) wrote:

Hello,

I made a feeble attempt to put borders on fo:blocks with different 
colors to help identify which blocks were contributing to adjacent 
vertical white space areas, but the border itself would take up 
vertical space and shift the content below it down. If several blocks 
had borders, then the cumulative displacement was pronounced.


Are there any border attribute settings that would mitigate this effect?

Are background colors a better way to go?

Ideally, it would be great of FOP had such an option to show various 
kinds of object boundaries without disturbing the placement of objects.


Best Regards,

John







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



Re: Does conditionality work for table cell borders?

2020-12-09 Thread Chris Bowditch

Hi Christian,

The borders are actually specified on the table cells, not the table 
itself. Therefore conditionality only comes into effect when a cell 
spans the page.


Thanks,

Chris

On 11/11/2020 11:33, Christian Schröder wrote:

Hi list,
When a table is continued across page breaks, I would expect the before-border of the 
table cells to be suppressed on all pages after the first (unless I explicitly set the 
conditionality to "retain"); however, in my example document, the borders are 
visible on the second page.
You can find my example FO document at 
https://www.dropbox.com/s/w679cjb9gampdq6/table-borders.fo?dl=0 and the result 
PDF document at https://www.dropbox.com/s/bpc5avwsrzb8k6j/table-borders.pdf?dl=0
I thought this might maybe only work for the table-row elements, so I tried it 
there, but the result is the same. Besides, as you can see in my example, I 
need the border for the *cells*, not the whole row (because I want a gap in the 
middle).
I use FOP 2.5.

What do I miss?

Thanks,
Christian

PS: I found 
http://apache-fop.1065347.n5.nabble.com/Omitting-Bottom-table-border-on-page-break-td37527.html,
 but this only points me at the conditionality, which should already implicitly be 
"discard" in my case.

-
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: FOP Retrieve-Marker

2020-12-09 Thread Chris Bowditch

Hi Jean-Pierre,

Your code snippet is XSLT not XSL-FO, and also incomplete so hard to say 
why its not working


Thanks,

Chris

On 07/11/2020 12:07, Jean-Pierre Lamon wrote:

Hi all,

fop-users@xmlgraphics.apache.org

I would like to display a chapter value on each page header (in one 
language on even, another on odd but that's not the problem).

I'm using  markers with retrieve-marker.

This works perfectly with FOP, but not with XML2PDF for example. Am I 
doing something wrong? Could someone be so kind to correct my code ;-)

I know retrive-marker must be just under a flow right?

                
                    table-omit-header-at-break="false">

                        
                        
                        
                        
                        
                            
                                
                                    
                                    
                                
                                
                                    font-size="9pt">
                                        text-align="center">

                                        
                                    
                                
                                
                                    font-size="9pt">
                                        text-align="center">

                                        
                                    
                                
                                
                                    
                                
                            
                            
                                
                                    
                                    
                                
                                
                                    font-style="italic" text-align="left" border-bottom="0.5pt solid black">


--->  -->


                                    
                                
                                
                                    text-align="right" border-bottom="0.5pt solid black">

                                        
                                            Bibliographie de 
l'histoire suisse
                                            test="collection/AdditionalTag/yearIssueNumber">
                                                select="concat(' ',collection/AdditionalTag/yearIssueNumber)"/>

                                            

                                        
                                    
                                
                                
                                    
                                
                            

                        
                    
                

Marker definition :

                                            marker-class-name="chapterF">
                                                select="@Value2"/>

                                            
Thx and regards


-
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: Repeating Table Captions Across Pages

2020-11-03 Thread Chris Bowditch
Sorry for slow reply, but yes table markers do work and no need for the 
workarounds you found; they have been superceded


The reason for a partial implementation status is that they can only 
handle a single line of text. Showing (continued) or sub totals will 
work perfectly. What you can't do with table markers is place an image, 
a sub table, or a paragraph of text in them


Thanks,

Chris

On 01/09/2020 23:44, Kirkilis, John (Nokia - US/Austin) wrote:


Greetings,

I’ve spent a couple hours in the mail archives trying to determine the 
current state of the implementation of retrieve-table-marker. The 
compliance table states that this is still just partially implemented, 
and I’d like to understand what works and does not work in FOP 2.5.


The archives yielded a couple work-arounds, one that uses regular 
markers and the other which uses table-markers, but these are at least 
8 years old and I can’t tell if they’ve been superceded.


  * 
https://www.mail-archive.com/fop-users@xmlgraphics.apache.org/msg18790/example-1.fo

  * https://www.mail-archive.com/fop-users@xmlgraphics.apache.org/msg18521.html


I need a solution that can generate repeating table titles with the 
string “(continued)” on the 2^nd and subsequent pages of a long table. 
These pages are generated dynamically using the DITA Open-Toolkit’s 
DITA to FO transform, which we’ve customized when needed.


Here’s what I’d like to understand:

  * What is the current state of the retrieve-table-marker compliance?
  * Is full compliance needed to support repeating table titles?
  * If so, how much effort would be required to address it?
  o by a regular FOP contributor
  o a Master’s student with Java background
  * If not, what’s the most up-to-date method to implement repeating
table titles using a work-around for FOP 2.5?

Thanks in advance for any feedback,

John




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



Re: TM text is replaced with superscript - trademark symbol

2020-04-21 Thread Chris Bowditch

Hi,

Seems like the result of a lookup table in your font similar to 
ligatures, which convert groups of characters into other characters. 
Especially since you mention the issue is specific to the font. You can 
try turning off complex script support if you don't need it, as outlined 
at [1]


Thanks

Chris

[1] 
https://xmlgraphics.apache.org/fop/trunk/complexscripts.html#Disabling-complex-scripts


On 06/04/2020 21:23, cen wrote:

Hi

I stumbled upon a weird situation where a simple text "TM" gets 
automatically converted to superscript position as if it was the 
trademark symbol, when rendered.


For example, TM in PDF gets rendered as seen in 
the attachment.


I noticed that this only happens when using a specific OCR font and 
not with regular fonts like Courier.


I had a hard time to even figure out what to search for on google and 
I haven't seen anything like this mentioned in the FOP documentation.



Anyone has an idea what this is and how to disable it?


Best regards, cen



-
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: build error in fop-trunk

2020-03-18 Thread Chris Bowditch

Hi,

Can you share the errors you are seeing? Also don't forget FOP supports 
older Java versions so might need to build with Java 7


Thanks

Chris

On 10/03/2020 19:31, jfrm.mau...@gmail.com wrote:

Hi,

I just cloned from git repository with:
git clone https://github.com/apache/xmlgraphics-fop.git

I build with:
mvn clean install

but the builds fails in the fop core task apparently from missing 
resources.


Am I doing something wrong to build fop ?

Regards

PS: I am on windows 10 if relevant




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



Re: Joining the forum

2020-03-02 Thread Chris Bowditch

Hi Keshor,

See [1] for details on how to join the mailing list.

Thanks,

Chris

[1] https://xmlgraphics.apache.org/fop/maillist.html

On 02/03/2020 11:52, keshor karan wrote:
Hii, this is keshor.I'm one of the fop users. I'm trying to learn more 
about fop.

I'm willing to join the fop forum.
Can you please tell me what is the procedure to join the forum?
I'm genuinely waiting to hear from you.

Regards,
Keshor




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



Re: Surrogate pair error

2020-03-02 Thread Chris Bowditch

Hi Jan,

Indeed this should work since FOP 2.3 thanks to FOP-1969. I suggest you 
log a new bug if you are able to share your XSL-FO and supporting Font 
files.


Thanks,

Chris

On 24/02/2020 14:05, Jan Driesen wrote:


Hi,

If we set the MPH 2b Damas font 
(https://fedoraproject.org/wiki/MPH_2B_Damase_fonts), we get the 
exception from my initial email. Using fontforge, I could verify that 
this font has a glyph for the character.


If we set Segoe UI Historic 
(https://docs.microsoft.com/en-us/typography/font-list/segoe_ui_historic) 
as a font (it also has a glyph for this), we get a different exception.


Both fonts are referred to in fop.xconf

A version of the FO for each font is attached to this mail.

INFO: Default page-height set to: 297mm

feb 24, 2020 2:59:28 PM org.apache.fop.apps.FopConfParser configure

INFO: Default page-width set to: 210mm

feb 24, 2020 2:59:29 PM org.apache.fop.cli.Main startFOP

SEVERE: Exception

org.apache.fop.apps.FOPException: ill-formed UTF-16 sequence, contains 
isolated high surrogate at end of sequence


java.lang.IllegalArgumentException: ill-formed UTF-16 sequence, 
contains isolated high surrogate at end of sequence


    at 
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296)


    at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:116)

    at org.apache.fop.cli.Main.startFOP(Main.java:183)

    at org.apache.fop.cli.Main.main(Main.java:214)

Caused by: java.lang.IllegalArgumentException: ill-formed UTF-16 
sequence, contains isolated high surrogate at end of sequence


    at 
org.apache.fop.fonts.MultiByteFont.mapCharsToGlyphs(MultiByteFont.java:666)


    at 
org.apache.fop.fonts.MultiByteFont.charSequenceToGlyphSequence(MultiByteFont.java:570)


    at 
org.apache.fop.fonts.MultiByteFont.performSubstitution(MultiByteFont.java:551)


    at 
org.apache.fop.fonts.LazyFont.performSubstitution(LazyFont.java:424)


    at org.apache.fop.fonts.Font.performSubstitution(Font.java:471)

    at 
org.apache.fop.fonts.GlyphMapping.processWordMapping(GlyphMapping.java:141)


    at 
org.apache.fop.fonts.GlyphMapping.doGlyphMapping(GlyphMapping.java:92)


    at 
org.apache.fop.layoutmgr.inline.TextLayoutManager.processWord(TextLayoutManager.java:960)


    at 
org.apache.fop.layoutmgr.inline.TextLayoutManager.getNextKnuthElements(TextLayoutManager.java:819)


    at 
org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthElements(LineLayoutManager.java:698)


    at 
org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:627)


    at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)


    at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:290)


    at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)


    at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)


    at 
org.apache.fop.layoutmgr.FlowLayoutManager.getNextChildElements(FlowLayoutManager.java:223)


    at 
org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayoutManager.java:147)


    at 
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:116)


    at 
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:69)


    at 
org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:251)


    at 
org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:770)


    at 
org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:178)


    at 
org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:158)


    at 
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:389)


    at 
org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:112)


    at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:143)


    at 
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)


    at 
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:139)


    at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:362)


    at 
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)


    at 
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102)


    at 
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)


    at 
org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)


    at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown 
Source)


    at 

Re: Fwd: fo:float not rendering image fop2.4

2020-02-18 Thread Chris Bowditch
Its not the level of nesting that is the problem as I first thought, but 
the fact you have nested it within a table. From the docs, it says 
Floats cannot co-exist with a table:


floats next to a table are not supported unless the start and end of the 
table happens in between the start and end of the float


Thanks,

Chris

On 13/02/2020 17:17, Alex Muir wrote:

Thanks Chris,

Does seem that is the case.

Let me know if I'm wrong, but after reading the restrictions on 
fo:float in apache documentation, I didn't notice anything to that 
nature.


Meanwhile I've switched to a different fop engine which renders the 
float effectively.


Regards
Alex
_https://www.linkedin.com/in/alexgmuir/_


On Thu, 13 Feb 2020 at 15:18, Chris Bowditch 
mailto:bowditch_ch...@hotmail.com>> wrote:


Sorry please ignore my first e-mail, I spotted the attachment too
late!

I believe the fo:float needs to be a top level block, and not nested
deep within a table

Thanks,

Chris

On 11/02/2020 08:33, Alex Muir wrote:
> Greetings,
>
> I'm having an issue where my images are not displayed within an
> fo:float using apache fop 2.4 with dita-ot 2.0.1
>
> I created some test output.
>
> I was wondering if you see anything wrong with what I'm doing?
>
> I read over the documentation for fo:float but didn't see any
reason
> why the following wouldn't work.
>
> Regards
> Alex
>
>
-
> To unsubscribe, e-mail:
fop-users-unsubscr...@xmlgraphics.apache.org
<mailto:fop-users-unsubscr...@xmlgraphics.apache.org>
> For additional commands, e-mail:
fop-users-h...@xmlgraphics.apache.org
<mailto:fop-users-h...@xmlgraphics.apache.org>



-
To unsubscribe, e-mail:
fop-users-unsubscr...@xmlgraphics.apache.org
<mailto:fop-users-unsubscr...@xmlgraphics.apache.org>
For additional commands, e-mail:
fop-users-h...@xmlgraphics.apache.org
<mailto: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: Fwd: fo:float not rendering image fop2.4

2020-02-13 Thread Chris Bowditch

Sorry please ignore my first e-mail, I spotted the attachment too late!

I believe the fo:float needs to be a top level block, and not nested 
deep within a table


Thanks,

Chris

On 11/02/2020 08:33, Alex Muir wrote:

Greetings,

I'm having an issue where my images are not displayed within an 
fo:float using apache fop 2.4 with dita-ot 2.0.1


I created some test output.

I was wondering if you see anything wrong with what I'm doing?

I read over the documentation for fo:float but didn't see any reason 
why the following wouldn't work.


Regards
Alex

-
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: Fwd: fo:float not rendering image fop2.4

2020-02-13 Thread Chris Bowditch

Hi,

Can you share your XSL-FO file?

Thanks,

Chris

On 11/02/2020 08:33, Alex Muir wrote:

Greetings,

I'm having an issue where my images are not displayed within an 
fo:float using apache fop 2.4 with dita-ot 2.0.1


I created some test output.

I was wondering if you see anything wrong with what I'm doing?

I read over the documentation for fo:float but didn't see any reason 
why the following wouldn't work.


Regards
Alex

-
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: Fonts in the class path makes fonts listing fail

2016-06-20 Thread Chris Bowditch

Hi Maxime,

You can file a bug using JIRA, see: 
http://xmlgraphics.apache.org/fop/bugs.html


Thanks,

Chris

On 17/06/2016 08:24, Maxime Bégnis wrote:

Hello,

Is there a way for me to file a bug report about this?

BR,

--
*NeoDoc*
*Maxime Bégnis*
max...@neodoc.fr
Tél: +33 (0)4.42.52.24.20
789 Rue de La Gare
13770 Venelles
France
http://www.neodoc.fr/
Le 10/06/2016 10:43, Maxime Bégnis a écrit :
When using fonts embedded in a .jar file in the class path 
(https://xmlgraphics.apache.org/fop/2.1/fonts.html#autodetect), fonts 
listing fails with this exception:


org.apache.fop.cli.Main startFOP
GRAVE: Exception
java.lang.IllegalArgumentException: URI is not hierarchical
at java.io.File.(File.java:418)
at org.apache.fop.fonts.FontCache.addFont(FontCache.java:335)
at 
org.apache.fop.fonts.autodetect.FontInfoFinder.getFontInfoFromCustomFont(FontInfoFinder.java:157)
at 
org.apache.fop.fonts.autodetect.FontInfoFinder.find(FontInfoFinder.java:269)

at org.apache.fop.fonts.FontAdder.add(FontAdder.java:63)
at 
org.apache.fop.fonts.FontDetectorFactory$DefaultFontDetector.detect(FontDetectorFactory.java:110)
at 
org.apache.fop.fonts.FontManager.autoDetectFonts(FontManager.java:229)
at 
org.apache.fop.fonts.DefaultFontConfigurator.configure(DefaultFontConfigurator.java:82)
at 
org.apache.fop.render.PrintRendererConfigurator.getCustomFontCollection(PrintRendererConfigurator.java:147)
at 
org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(PrintRendererConfigurator.java:127)
at 
org.apache.fop.render.intermediate.IFUtil.setupFonts(IFUtil.java:170)
at 
org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:187)
at 
org.apache.fop.area.RenderPagesModel.(RenderPagesModel.java:75)
at 
org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:135)
at 
org.apache.fop.area.AreaTreeHandler.(AreaTreeHandler.java:105)
at 
org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:350)

at org.apache.fop.fo.FOTreeBuilder.(FOTreeBuilder.java:107)
at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:104)
at org.apache.fop.apps.Fop.(Fop.java:78)
at org.apache.fop.apps.FOUserAgent.newFop(FOUserAgent.java:182)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:107)
at org.apache.fop.cli.Main.startFOP(Main.java:186)
at org.apache.fop.cli.Main.main(Main.java:217)

I found a way around this by using a custom resolver that will 
discard any "jar: ..." URI.


I use fonts in a jar file for them to be taken into account by 
JEuclid (I didn't find any other way so far).


I finally made this work by duplicating the fonts in the jar file in 
a regular folder (so I must maintain 2 copies of each file).


I'm using FOP 2.1 (from 
https://xmlgraphics.apache.org/fop/download.html) under Ubuntu 14.04 
LTS Linux.


BR,

--
--
*NeoDoc*
*Maxime Bégnis*
max...@neodoc.fr
Tél: +33 (0)4.42.52.24.20
789 Rue de La Gare
13770 Venelles
France
http://www.neodoc.fr/





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



Re: ImageInputStream issue when using

2016-05-24 Thread Chris Bowditch

Hi Michael,

Can you generate the XSL-FO File? i.e. the result of the XSLT transform? 
If you then call FOP from the command line instead of via your embedded 
program do you see the issue? Can you also elaborate what you mean by 
"occasionally" is that 1 in 100, 1 in 10?


Thanks,

Chris

On 23/05/2016 18:13, Michael Hansen wrote:

Hello community,

using FOP 2.1 I occasionally get the following exception when trying 
to transform xml to pdf using images:


java.lang.IllegalStateException: ImageInputStream is not reset for: 
another_image.png
at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.returnSource(AbstractImageSessionContext.java:230)
at 
org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:129)
at 
org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:139)
at 
org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:81)




I am searching for a solution for a little while now, without success.
My (simplified) xsl file looks like:


xmlns:xsl="http://www.w3.org/1999/XSL/Transform;
xmlns:xs="http://www.w3.org/2001/XMLSchema; 
xmlns:fo="http://www.w3.org/1999/XSL/Format;

exclude-result-prefixes="fo">






src="url('data:image/jpeg;base64,{$imageTest}')" 
content-width="scale-to-fit"
 content-height="scale-to-fit" 
scaling="uniform" inline-progression-dimension.maximum="160mm"

block-progression-dimension.maximum="40mm"/>



width="13.5cm" content-width="scale-to-fit" 
content-height="scale-to-fit" scaling="uniform"/>








and the responsible java part for transformation looks like:

final TransformerFactory tf = TransformerFactory.newInstance();
final DocumentBuilder db = 
DocumentBuilderFactory.newInstance().newDocumentBuilder();

final DOMSource domSource = new DOMSource(db.parse(xmlFile.toFile()));

final InputStream inputStream = resourceLoader.getResource("classpath: 
path/to/file.xsl").getInputStream();

final StreamSource xslt = new StreamSource(inputStream);
final ClasspathUriResolver resolver = new 
ClasspathUriResolver(resourceLoader);

tf.setURIResolver(resolver);
final Transformer transformer = tf.newTransformer(xslt);

final Resource resource = 
resourceLoader.getResource("classpath:fop.xconf");

final File configFile = resource.getFile();
final FopConfParser parser = new FopConfParser(configFile);
final FopFactoryBuilder builder = parser.getFopFactoryBuilder();
final FopFactory factory = builder.build();

try (ByteArrayOutputStream outStream = new ByteArrayOutputStream()) {
final Fop fop = factory.newFop(MimeConstants.MIME_PDF, outStream);
final Result res = new SAXResult(fop.getDefaultHandler());

transformer.transform(domSource, res);
} catch(...) {
}


We are getting a java.nio.file.Path-object "xmlFile", manipulating the 
DOMSource befor transforming it into a PDF file. The fop.xconf-file 
just contains fonts-configurations.
So, a little more complex than the examples on xmlgraphics.apache.org, 
but this shouldn't result in an image issue...
The problems start when we started to add the second image using 



I have no clue what I am doing wrong. Any recommendation|help is welcome.


// Michael




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



Re: Is there a way to remove "INFO org.apache.fop.apps.FOUserAgent - Rendered page XXX" logs ?

2016-04-29 Thread Chris Bowditch
You should be able to configure Commons logger to only output Warnings 
and higher and ignore INFO messages


Chris

On 28/04/2016 15:02, Julien Lancelot wrote:

Hi,

I'm using FOP 2.1, and when I generate a PDF, I can see the following 
logs in my console :


15:52:59.057 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #1.
15:52:59.140 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #2.
15:52:59.155 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #3.
15:52:59.159 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #4.
15:52:59.853 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #1.
15:52:59.890 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #2.
15:52:59.900 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #3.

Is there a way to not generate this logs ?

Thanks !
--
Julien LANCELOT |SonarSource
http://sonarsource.com 




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



Re: Showing images in PDF embeded in a web app.

2016-03-29 Thread Chris Bowditch

Hi Sunrita,

I note you've not yet received a reply to your questions. Please can you 
supply the FO File together with the errors observed as I'm not sure I 
follow the question about the image URL. Also can you paste the actual 
warning messages you get so we can advise you precisely as to cause and 
possible solution together with your fop.xconf file. Otherwise we'll 
just be guessing.


Thanks,

Chris

On 12/03/2016 17:11, Sunrita Bagchi Basu wrote:

Hi,

I am struggling to show images and data in PDF within a web application.
I could make the stand alone work easily. But in web it fails to get 
the images.


I have tried the following:

Approach 1: [Here i tried using the ServletContextURIResolver to 
resolve the images]


URIResolver uriResolver = new ServletContextURIResolver(servletContext);
DefaultConfigurationBuilder cfgBuilder = new 
DefaultConfigurationBuilder();
Configuration cfg 
= cfgBuilder.build(GeneratePDFWithFOP.class.getResourceAsStream("/fop.xconf"));

ResourceResolver resolver = new ResourceResolver() {
public OutputStream getOutputStream (
 URI uri)
 throws IOException {
URL url = servletContext.getResource(uri.toASCIIString());
return url.openConnection().getOutputStream();
}

public Resource getResource (
 URI uri)
 throws IOException {
return new 
Resource(servletContext.getResourceAsStream(uri.toASCIIString()));

}
};
FopFactoryBuilder builder = new FopFactoryBuilder(new 
File(".").toURI(), resolver).setConfiguration(cfg);

final FopFactory fopFactory = builder.build();

In the xsl for images I have put:

content-width="0.30in" src="url(servletcontext: /arrow-pdf-header.png)" />


But this doesn't load the images.
SAX error show invalid URI for image. Though the same is accessible 
via browser


Approach 2: [Here i used the Local path, so the images are coming 
through but the data is not getting printed]


String appPath = servletContext.getRealPath("");
Configuration cfg = cfgBuilder.buildFromFile(new 
File(appPath+"/WEB-INF/classes/fop.xconf"));
FopFactoryBuilder builder = new FopFactoryBuilder(new 
File(appPath).toURI()).setConfiguration(cfg);

final FopFactory fopFactory = builder.build();

In the xsl for images i have put:
content-width="0.40625in" src="url(/arrow-pdf-header.png)" />


Though this one loads the images, the data fails to show up!. I also 
get a few warning in the console such as table width was adjusted, and 
few fonts were not found.


Thanks,
Sunrita



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



Re: font-base is ignored in 2.1

2016-03-21 Thread Chris Bowditch

Hi Adam,

I believe FOP Base was intentionally removed when FOP IO was reworked in 
the v2.0 release. Which version are you upgrading from?


I seem to recall the developers couldn't think of a use case where Font 
Base would need to differ from wildly from Base, and so Font Base was 
consolidated with Base.


Thanks,

Chris

On 11/03/2016 22:39, Adam Retter wrote:

It seems that fonts are not being resolved relative to the font-base
config parameter in 2.1, instead they are being resolved directly by
the ResourceResolver. This looks like a bug to me, can anyone confirm?

I have a FOP configuration file like this:


 
 true

 
 false

 
 ./

 
 
http://localhost:8080/exist/apps/tei-simple/resources/fonts/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 



And I instantiate FOP like so:

ResourceResolver resolver =
ResourceResolverFactory.createSchemeAwareResourceResolverBuilder(ResourceResolverFactory.createDefaultResourceResolver()).build();
EnvironmentProfile environment =
EnvironmentalProfileFactory.createDefault(new URI("file:///db"),
resolver);
final FopFactoryBuilder = builder = new
FopFactoryBuilder(environment).setConfiguration(configFile);
final FopFactory fopFactory = builder.build();

When I run my FO transformation I then get an error like:

Caused by: java.io.FileNotFoundException: /Junicode.ttf (No such file
or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at java.io.FileInputStream.(FileInputStream.java:93)
at 
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
at 
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
at java.net.URL.openStream(URL.java:1045)
at 
org.apache.fop.apps.io.ResourceResolverFactory$NormalResourceResolver.getResource(ResourceResolverFactory.java:224)
at 
org.apache.fop.apps.io.ResourceResolverFactory$TempAwareResourceResolver.getResource(ResourceResolverFactory.java:152)
at 
org.apache.fop.apps.io.ResourceResolverFactory$DefaultResourceResolver.getResource(ResourceResolverFactory.java:121)
at 
org.apache.fop.apps.io.ResourceResolverFactory$SchemeAwareResourceResolver.getResource(ResourceResolverFactory.java:256)
at 
org.apache.fop.apps.io.InternalResourceResolver.getResource(InternalResourceResolver.java:92)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:103)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:93)
at org.apache.fop.fonts.FontLoader.getFont(FontLoader.java:124)
at org.apache.fop.fonts.FontLoader.loadFont(FontLoader.java:108)
at org.apache.fop.fonts.LazyFont.load(LazyFont.java:116)


When I look through the FOP 2.1 code-base I see that the `font-base`
only seems to be read in FontManagerConfigurator#configure, however
that code-path is never executed when I run my app.

Any thoughts?




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



Re: table-header question

2016-01-21 Thread Chris Bowditch

Hi,

There is no identical extension to RenderX. However, FOP 2.x supports 
table markers, which are more powerful. Simply set the marker in the 
first row to blank, and subsequent rows to the value you want to show in 
the 2nd page onwards. Then retrieve the first marker in each page.


Thanks,

Chris

On 21/01/2016 09:03, Pascal Sancho wrote:

Hi,

AFAIK, there is no such extension with FOP like XEP has (see [1]).
As a workaround, you can remove it in a middle-process, using the
Intermediate Format (see [2]), and re-feed FOP with changed IF.

[1] http://www.renderx.com/reference.html#Omitted_Header
[2] http://xmlgraphics.apache.org/fop/2.1/intermediate.html#usage-if


2016-01-20 15:27 GMT+01:00 bishnu :

Hi,

how to omit the initial header but keeping the subsequent page break
headers with out using renderx in fop.


regards
bishnu


-
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: alternate text extension not working in FOP version 2.0

2015-10-20 Thread Chris Bowditch

Hi Eva,

If it works with -a option then this suggests the config file isn't 
being recognized. You need to specify -c option at command line to use a 
config file.


Thanks,

Chris

On 19/10/2015 20:43, Eva wrote:

Hi Chris,

>From FOP's website, it mentions there are 3 ways to turn on accessibility.
I've been using the config way by adding accessibility entry in the config.
I just tried another way using -a in the command and found the pdf generated
was passing the full check for the very first time. I don't know where did I
do wrong in the config file. I just got all the files downloaded from the
website and adding a new entry in fop.xconf.

   true

Do I need to change anything else for the program to read from
conf/fop.xconf or by default it should read the config file from conf
folder? I'm new to FOP, really apprecipated your help here.

Thanks,
Eva





--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/alternate-text-extension-not-working-in-FOP-version-2-0-tp42921p42979.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



Re: alternate text extension not working in FOP version 2.0

2015-10-19 Thread Chris Bowditch

Hi Eva,

Did you enable accessibility in the fop.xconf, via the tags:

true

Thanks

Chris

On 14/10/2015 15:24, Eva wrote:

Hi Chris,

I've simplify the original XSL with only one image for testing purpose and
still found alt-text not showing when running a full check on accessibility.


http://www.w3.org/1999/XSL/Format;
xmlns:fox="http://xmlgraphics.apache.org/fop/extensions;
xmlns:h="http://tempuri.org/ReportTypeDataSet.xsd;
xmlns:m="http://tempuri.org/MPRDataSet.xsd; xmlns:myObj="urn:myObj">















http://localhost/PCom3-phase3-t3/images/3441_2.png; />










--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/alternate-text-extension-not-working-in-FOP-version-2-0-tp42921p42967.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



Re: alternate text extension not working in FOP version 2.0

2015-10-06 Thread Chris Bowditch

Hi Eva,

I've not seen this problem before. fox:alt-text works fine for me and 
passes acrobat preflight. Can you share your complete XSL-FO File?


Thanks,

Chris

On 24/09/2015 14:48, Eva Chang wrote:

Hi,

Trying to use xsl-fo to generate a  pdf for accessibility compliance. 
Need to add alternate text to images as the first thing. Getting the 
latest version of FOP 2.0 and follow the example on the website. I've 
test it with simply one image on the pdf and pdf was generated without 
any error. However, after opening the document and ran a full check 
for accessibility still see the warning for missing alternate text on 
the image and the only way to fix it would be manually apply the 
alternate text through acrobat. The namespace I was using is 
"http://xmlgraphics.apache.org/fop/extensions;, not sure if it is 
still a valid one to use. I've tried searching for solutions online 
and couldn't find anyone has similar problem as I do. Please let me 
know if you guys know what's the possible problem that alternate-text 
is not showing without any error message.



Thanks,
Eva




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



Re: Apache FOP 0.95

2015-09-28 Thread Chris Bowditch

Hi Nikos,

FOP is a Java application so it doesn't care which windows version you 
are using. x86 or x64 should be fine. Also, there are no known security 
issues.


Thanks,

Chris

On 17/09/2015 11:52, Papaiakos, Nikos (Nokia - GR/Athens) wrote:

Hello,
I know that this version is rather old, however I would like to know:
- if the mentioned version (0.95) is compatible with x64 bit windows.
- Is there any security issue for this version?
Thanks in advance
Regards,
Nikos



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



Re: fop-pdf-images upgrade in line with FOP 2.0

2015-08-17 Thread Chris Bowditch

Hi Mark,

Sadly not. The trunk version of fop-pdf-images depends on PDFBox v2.0.0, 
and since PDFBox are not releasing v2, it makes it necessary to use a 
snapshot version. An official Apache release is not supposed to depend 
on a snapshot version. So we are waiting for PDFBox to release, and have 
been for nearly a year now :-(


Chris

On 28/07/2015 17:33, Mark Gibson wrote:


Hi,

Is there any plans on releasing a version of fop-pdf-images in line 
with the fop 2.0 release?  The current binary release of 
fop-pdf-images has been built against fop 1.1


Thanks

Mark




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



Re: [FOP] Watermark does not overlay over text

2015-07-01 Thread Chris Bowditch

Hi Puja,

Put the block-container into the body region after the text to overlay. 
FOP renders block-container's in the order it encounters them in the 
XXSL-FO. region-* are always rendered before the body, so the body 
contents will always overlay any block-containers placed in region-*


Thanks,

Chris

On 30/06/2015 15:13, Puja Jain wrote:
I’m trying to overlay a watermark over text by placing the watermark 
in fo:region-after as per the FOP documentation in 
https://xmlgraphics.apache.org/fop/0.95/output.html. But the watermark 
is always rendered under the text. How can I get the watermark to 
overlay over the text?


Here’s the code snippet:

?xml version=1.0?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
  fo:simple-page-master
  master-name=A4 margin-top=1.5cm margin-bottom=1.5cm
  margin-left=1.25cm margin-right=1cm
  fo:region-body /
  fo:region-after extent=11in/
  /fo:simple-page-master
  /fo:layout-master-set

 fo:page-sequence master-reference=A4
  fo:static-content flow-name=xsl-region-after
  fo:block-container position=absolute top=80px left=0px
fo:block display-align=center font-weight=bold 
font-size=40pt color=red”Watermark

/fo:block
  /fo:block-container
/fo:static-content


  fo:flow flow-name=xsl-region-body font-size=20pt
  fo:block-container
  fo:block margin-top=0pxThis text should appear under the 
watermark

  /fo:block
  /fo:block-container
  /fo:flow
/fo:page-sequence

Thanks,
Puja



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



Re: AW: Missing glyph error, but font contains glyph

2015-06-26 Thread Chris Bowditch

Hi Daniel,

The built in Times Font is embedded within the PDF Viewer. You can't 
adjust it. All you can do is tell FOP to use a different Font to render 
your XSL-FO. This is done via your fop.xconf file. If you believe you've 
done that already, then can you post your fop.xconf file here for review?


Thanks,

Chris

On 24/06/2015 08:24, mulos wrote:


Thanks, but where can I find the built-in Times font? In my fop\fonts 
– folder I have:


times.ttf

timesbd.ttf

timesbi.ttf

timesi.ttf

All of them contain this character. Could this be a codepage problem?

Daniel

*Von:*Glenn Adams-2 [via Apache FOP] [mailto:ml-node+[hidden email] 
/user/SendEmail.jtp?type=nodenode=42467i=0]

*Gesendet:* Dienstag, 23. Juni 2015 18:08
*An:* Daniel Strackbein
*Betreff:* Re: Missing glyph error, but font contains glyph

If you are using the built-in Times font, then it does not include a 
glyph for that character.


On Tue, Jun 23, 2015 at 9:09 AM, mulos [hidden email] 
/user/SendEmail.jtp?type=nodenode=42466i=0 wrote:


Hi,

output format is PDF. Font type is TTF.

If I embedd another font (cambria), the character is found
correctly. But why? Times contains this character. The config file
(times.xml) contains it, too.

Thanks,

Daniel

*Von:*Robert Meyer-5 [via Apache FOP] [mailto:[hidden email]
/user/SendEmail.jtp?type=nodenode=42466i=1[hidden email]
http://user/SendEmail.jtp?type=nodenode=42465i=0]
*Gesendet:* Dienstag, 23. Juni 2015 17:00
*An:* Daniel Strackbein
*Betreff:* RE: Missing glyph error, but font contains glyph

Hi,

Could you provide extra details such as the output format (PDF,
Postscript, AFP) and the font type you're using (Type1, TTF,
OpenType)?

Thanks,

Robert

 Date: Tue, 23 Jun 2015 07:34:36 -0700


 From: [hidden email]
http://user/SendEmail.jtp?type=nodenode=42464i=0
 To: [hidden email]
http://user/SendEmail.jtp?type=nodenode=42464i=1
 Subject: Missing glyph error, but font contains glyph

 Hi, I get the following error:

 Jun 23, 2015 4:28:46 PM org.apache.fop.events.LoggingEventListener
 processEvent
 WARNING: Glyph ? (0x1e7, gcaron) not available in font
TimesNewRoman.
 java version 1.7.0_17
 Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
 Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

 This character exists in the times new roman font. Why does this
message
 appear?



 --
 View this message in context:

http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463.html
 Sent from the FOP - Users mailing list archive at Nabble.com.


-
 To unsubscribe, e-mail: [hidden email]
http://user/SendEmail.jtp?type=nodenode=42464i=2
 For additional commands, e-mail: [hidden email]
http://user/SendEmail.jtp?type=nodenode=42464i=3




*If you reply to this email, your message will be added to the
discussion below:*


http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42464.html


To unsubscribe from Missing glyph error, but font contains glyph,
click here.
NAML

http://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml




View this message in context: AW: Missing glyph error, but font
contains glyph

http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42465.html


Sent from the FOP - Users mailing list archive
http://apache-fop.1065347.n5.nabble.com/FOP-Users-f3.html at
Nabble.com.



*If you reply to this email, your message will be added to the 
discussion below:*


http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42466.html 



To unsubscribe from Missing glyph error, but font contains glyph, 
click here.
NAML 
http://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml 





View this 

Re: FOP2.0 taking more time format complex script documents

2015-06-24 Thread Chris Bowditch

Hi Sripathi,

Not much we can do to help without at least the following:

1. XSL-FO file. Please attach your file. Please don't send XSLT/XML
2. fop.xconf. Please send the configuration file you are using.
3. The version of Java and Operating System you are using.

Thanks,

Chris

On 24/06/2015 12:04, sripathi wrote:

Hi Glenn,

  Thanks for your reply..We are already disabled the Complex scripts
feature..Actually ,here the problem with Chinese and Japanese fonts.I tried
in FOP1.1 also, FOP2.0 is 4times slower than 1.1 ,when processing these
fonts.
Could you please help me on this Performance issue.

Thanks,
Sripathi.



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/FOP2-0-taking-more-time-to-format-complex-script-documents-tp42461p42468.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



Re: floats

2015-06-11 Thread Chris Bowditch
XSL 1.1 is finalized. There was a draft v2.0 XSL specification written 
but then the working group shutdown due to lack of interest. Its not up 
to the FOP community whether something is in or out of the XSL 
specification. All we can say is that this feature doesn't exist in the 
current specification.


FOP is an open source project, so if you want this feature you will need 
to develop an extension to do it, and submit a patch file for the 
committers to review.


Thanks,

Chris


On 11/06/2015 09:30, Michał Jaworski wrote:
can it be considered as a part of XSL 1.1 spec? You are right that 
wrapping is not necessary but still mirror (outer) placement  is an issue.


Michał Jaworski


W dniu 2015-06-11 o 08:43, Luis Bernardo pisze:


That is not really a float in the sense that the text does not need 
to wrap around it. And that in fact makes the implementation of the 
feature a lot simpler.


On 6/10/15 5:41 PM, Michał Jaworski wrote:

Example attached, one float always on the outer side.


W dniu 2015-06-10 o 17:19, Luis Bernardo pisze:


Can you show an example? Do you have two floats with text flowing 
in between or just one float that is always on the outer side of 
the page?


On 6/10/15 4:36 PM, Michał Jaworski wrote:

Hi,

mirror floats appear always on the outer side of the book page. We 
are using FOP to print truth books :) on the paper. In the 
simplest version floats are equal size and contains growing 
numbers of neighbouring paragraphs. It is used later in citations.


Part of books templates have mirror floats simply and we have to 
handle it somehow. Today we are using Tex in such a cases but 
after very good experiences with FO we want to get rid of Tex and 
use truly xml approach everywhere.


Unfortunately XSL 1.1 spec forgotten about it :(

Michał Jaworski

W dniu 2015-06-10 o 16:14, Luis Bernardo pisze:


No, and since that does not seem part of the XSL 1.1 spec it is 
highly unlikely that it will be implemented. What is the purpose 
of mirror floats? Are the two floats the same (meaning same 
content) or do they have at least the same exact size?


On 6/10/15 3:54 PM, Michał Jaworski wrote:

Hi,

I tested FOP 2.0 comparing results generated earlier using 
version 1.1. The content is an xml book having approx 300 B5 
pages with lot of tables and complex structures. Results are 
surprisingly positive. Great work!  I want to touch one topic 
known for years. Is there any way (or are you planning in an 
upcoming future) to achieve somehow mirror floats (on outer 
margins of the book) thus something like fo:float 
float=outsideused in xep?


Michał Jaworski

- 

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






-
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






-
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: FOP 1.1 to 2.0 Migration Guidance?!?

2015-06-11 Thread Chris Bowditch

Hi Jesse,

The only difficult part of that code is the Font Base URL. Do you really 
need a font base URI that's different from the global base URI? Assuming 
you can just set Base URL instead, there is a sample on the embedding 
page that's quite similar to below, i.e.


DefaultConfigurationBuilder cfgBuilder = new DefaultConfigurationBuilder();
Configuration cfg = cfgBuilder.buildFromFile(new 
File(C:/Temp/mycfg.xml)); // swap the file here for fopConfig in your code
fopFactoryBuilder = new 
FopFactoryBuilder(baseURI).setConfiguration(cfg); // swap baseURI for 
your own base URI


If you do need a different font base URI to the global base URI then it 
might be possible with custom resolver for the Font Manager, but since 
I've not done that before I'm not 100% certain about that.


Thanks,

Chris

On 08/06/2015 15:40, Jess Holle wrote:

Okay, it's now clear that I could have just done:
   FopFactory  fopFactory = FopFactory.newInstance( baseURI );
That said, now I have code doing:
   FopFactory fopFactory = FopFactory.newInstance();
   String strFontbase = getFontbaseLocation();
   File fopConfig = getConfigFile();
   if (fopConfig.exists()  strFontbase != null){
 fopFactory.setFontBaseURL(strFontbase);
 fopFactory.setUserConfig(fopConfig);
   }
And once again, it is unclear how to convert this to the 2.0 APIs.

--
Jess Holle

On 6/8/2015 9:03 AM, Jess Holle wrote:

Okay, perhaps I over-reacted a bit as it seems one can do:
   FopFactoryBuilder  fopFactoryBuilder = new FopFactoryBuilder( baseURI );
   FopFactory  fopFactory = fopFactoryBuilder.build();
and then have the remainder of the API work much as it used to (apart 
from FOUserAgent lacking any API for setting the base URI).


Simple guidance to this effect would have been quite helpful, though!

On 6/8/2015 7:52 AM, Jess Holle wrote:
So I downloaded FOP 2.0 to use in place of 1.x for embedded use in 
creating PDFs from XSL-FO within Java server code.


Unfortunately:

 1. The extremely simple code using FOP 1.x does not compile with 2.0
  * No big deal but
 2. It is unclear how one should modify 1.x code to use 2.0 APIs
 3. There appears to be no migration guidance in the documentation
whatsoever
  * This is the real kicker -- given #2.

This issue starts with the very first line of FOP 1.x API calls:

FopFactory ff = org.apache.fop.apps.FopFactory.newInstance();

What's the replacement for this line?  It's completely unclear from 
the documentation.


Any assistance here would be greatly appreciated.

--
Jess Holle 





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



Re: PostScript trays for printer Xerox 7835

2015-02-10 Thread Chris Bowditch

Hi Christian,

Thanks for pointing this out. Can you log a JIRA entry for this issue? 
It sounds like the original author of the ps:set-pagedevice extension 
assumed the variable would always be the 2nd operand, but that is not a 
fair assumption with Postscript. Make sure you include a sample FO File 
on the JIRA entry


As a workaround can you use the ps:ps-page-setup-code extension instead?

Thanks,

Chris

On 06/02/2015 16:48, Christian Pestel wrote:

Hi,

I would like to print on a Xerox 7835 printer

With LasetJet Printer trays, this work fine but not with Xerox 7835.
With LaserJet,  trays PostScript instruction are
for Tray 1 : /MediaPosition 1
for Tray 2 : /MediaPosition 2
With Xerox :
for Tray 1 : (tray1) xerox$MediaInputTray
for Tray 2 : (tray2) xerox$MediaInputTray

Here is an extract of my IF file (Intermediate Format) for LaserJet :

Page 1 :
ps-setpagedevice xmlns=apache:fop:extensions:postscript 
name=Paper_1  /MediaPosition 1  /ps-setpagedevice


Page 2 :
ps-setpagedevice xmlns=apache:fop:extensions:postscript 
name=Paper_2  /MediaPosition 2  /ps-setpagedevice


PS file for LaserJet :
Page 1 :
%FOPBeginSetPageDevice

/PageSize [595 842]
/MediaPosition 1
/ImagingBBox null
 setpagedevice
%FOPEndSetPageDevice

Page 2 :
%FOPBeginSetPageDevice

/PageSize [595 842]
/MediaPosition 2
/ImagingBBox null
 setpagedevice
%FOPEndSetPageDevice

Here is an extract of my IF file (Intermediate Format) for Xerox 7835
Page 1 :
ps-setpagedevice xmlns=apache:fop:extensions:postscript 
name=Paper_1  (tray1) xerox$MediaInputTray  /ps-setpagedevice


Page 2 :
ps-setpagedevice xmlns=apache:fop:extensions:postscript 
name=Paper_2  (tray2) xerox$MediaInputTray  /ps-setpagedevice


PS file for Xerox :

Page 1 :
%FOPBeginSetPageDevice

/PageSize [595 842]
(tray1) xerox$MediaInputTray= correct/ImagingBBox null
 setpagedevice
%FOPEndSetPageDevice

Page 2 :
%FOPBeginSetPageDevice

/PageSize [595 842]
(tray1) xerox$MediaInputTray =  incorrect

(tray2) xerox$MediaInputTray  = only this line is correct

/ImagingBBox null
 setpagedevice
%FOPEndSetPageDevice

I have analysed the fop source code.

In fact, Fop use a key/Value HashTable and all new key/value are 
cumulative.

Example with LaserJet

Page 1 : key=/MediaPosition and value=1   = Fop write in PostScript : 
“/MediaPosition 1”
Page 2 : key=/MediaPosition and value=2   = Fop write in PostScript : 
“/MediaPosition 2”


Exemple with Xerox :

Page 1 : key=(tray1) and value=xerox$MediaInputTray= Fop write in 
PostScript : “(tray1) xerox$MediaInputTray”


Page 2 : key=(tray2) and value=xerox$MediaInputTray = Fop write in 
PostScript all keys/values  : “(tray1) xerox$MediaInputTray” + 
“(tray2) xerox$MediaInputTray”


Where is the best way to resolve this problem ?

Possibly adding a new key 
ClearPreviousTrayInfosBeforeSettingNewPage=true/false in fop config 
PostScript section ?


Thank you for your advice.

Christian Pestel

christian.pes...@orange.fr mailto:cpes...@bdoc.com




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



Re: Encoding problem with one specific letter and postscript

2014-10-27 Thread Chris Bowditch

Hi Lembit,

Sorry for slow reply, I've been on holiday. You really need to add

optimize-resourcestrue/optimize-resources

element to your fop.xconf file in the Postscript Renderer section. 
Without that FOP can't accurately judge which characters can be subset 
or not.


Adding encoding-mode attribute will circumvent the subset issue because 
it will embed up to 256 characters, but since you are using a wide range 
of characters that probably isn't enough.


I also recommend testing the Trunk version if that doesn't resolve your 
issue, since a lot of bugs have been fixed since v1.1 was released.


Thanks,

Chris

On 12/10/2014 20:16, Lembit Gerz wrote:


Hello,

I am using FOP 1.1 to generate postscript files with embedded fonts. 
Later I’m using ps2pdf to convert the postscript files to pdfs. The 
text includes Lithuanian letters.


However, after coverting them to pdf, two specific letters are 
displayed as squares, all the ohter Lituhuanian letters are displayed 
correctly. The problematic letters are the upper- and lowercase 
letters ė and Ė (e with dot, 0116 and 0117 in unicode). I can copy all 
the letters from the pdf (including the two problematic ones – when 
copying the square and pasting it somewhere, it displays the letter 
correctly).


I am using the standard Arial font from Windows fonts (arial.ttf).

This is my fop-config.xml:

configuration

renderers

renderer mime=application/postscript

auto-rotate-landscapetrue/auto-rotate-landscape

   fonts

   font embed-url=./arial.ttf encoding-mode=single-byte

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


   /font

   /fonts

/renderer

/renderers

/configuration

When leaving out the encoding-mode=“single-byte“, the letters display 
correctly, but when copying from the pdf, I get gibberish.


When generating straight to pdf with FOP, everything is displayed 
correctly and copying is also possible.


I have tried other ps-pdf converters and they give the same result.

Using a metric file did not help.

The problem can be reproduced with the xml and xslt in the fop quick 
start guide (https://xmlgraphics.apache.org/fop/quickstartguide.html) 
with these modifications:


Set the name in name.xml to ABC14pąęčėųūĘĖŲČĄ.

Add the attribute font-familiy=“Arial“ to the fo:block in name2fo.xsl.

Use the above fop-config file and include the standard Arial font in 
FOP’s directory.


Run ’fop -xml name.xml -xsl name2fo.xsl -ps name.ps -c fop-config.xml’

Can anyone suggest, what could be the issue or how should I go about 
debugging this?


Thank You.

Lembit




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



Re: FOP: unable to locate servlet-api

2014-08-21 Thread Chris Bowditch

Hi,

Are you running FOP from the command line? If so, then you shouldn't 
need the servlet. That's just for testing FOP from a web application. It 
would be helpful for us to understand the issue if you could provide the 
full console output rather than just the error line.


Thanks,

Chris

On 19/08/2014 15:29, kdjantzen wrote:

Hi,

when generating a pdf-file from an xml-file with fop I get the warning

[warning] /usr/bin/fop: Unable to locate servlet-api in /usr/share/java

Even though the result seems to be OK, I still would like to know what
the servlet is good for, whether I really need it, and where I would get
it from.

On one website it said one should install libservletxx.xx.
I did that but that did not help.

I am using Debian Wheezy with the latest version of fop.

Any help would be appreciated.



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/FOP-unable-to-locate-servlet-api-tp41080.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



Re: Loading fonts problem

2014-08-07 Thread Chris Bowditch

Hi Martin,

There is no way to fully embed the font in FOP 0.95. If upgrading is not 
possible, It may be you can avoid the preflight error another way, e.g. 
by using a different Font. The error says that a CID subset is 
incomplete. Since you have to use a subset in 0.95, you could try to use 
a non-CID font instead.


Thanks,

Chris

On 06/08/2014 15:39, MartinKl wrote:

Hello Chris,

Thank you for your response.

Do I have any option to tell fop 0.95 that I want to embbed all fonts
trought fop.xconf or programatically?

Great Regards
Martin



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009p41034.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



Re: Loading fonts problem

2014-08-04 Thread Chris Bowditch

Hi Martin,

The preflight warning occurs because the font is only subset, instead of 
fully embedded. In later FOP versions you can specify 
embedding-mode=full attribute on the font configuration, but that's 
not available in FOP v0.95.


Thanks,

Chris

On 04/08/2014 16:55, MartinKl wrote:

Thank you for your response.

I am trying to generate PDF/A-1b document using FOP 0.95. I know that the
version is very old but it is very hard to upgrade because noone wants to
pay for it such amount of money for retesting all templates (Bank).

I am struggeling with embedding fonts into pdf file. I get error below from
adobe acrobat

http://apache-fop.1065347.n5.nabble.com/file/n41013/preflight_verification.gif


my fop.xconf is here
https://www.dropbox.com/s/42y70t37ttdv5g6/fop.xconf
https://www.dropbox.com/s/42y70t37ttdv5g6/fop.xconf

I´ve also created report from adobe acrobat which can be usefull.

https://www.dropbox.com/s/9isf4oo7u0hq6pq/doc_report.pdf
https://www.dropbox.com/s/9isf4oo7u0hq6pq/doc_report.pdf

and doc.pdf is here
https://www.dropbox.com/s/y17s2osoljmmh9s/doc.pdf
https://www.dropbox.com/s/y17s2osoljmmh9s/doc.pdf


Thank you for response. I hope I´ve provided enough info.

Great Regards
Martin Klapec



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009p41013.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



Re: FOP 0.94 showing Error with opening URL...Connection Reset and fop.fo.FONode - Image Not Available

2014-07-07 Thread Chris Bowditch

Hi Terence,

Sorry for slow reply. Just spotted your e-mail. The issue sounds like 
this one discussed in 2008; http://markmail.org/message/k6mno3jsxmovaz2e


If it is the same issue, then the solution is to add the following 
system property to the JVM:


-Dorg.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.no-source-reuse=true 



Thanks,

Chris

On 23/06/2014 17:08, Terence M. Bandoian wrote:

On 6/20/2014 1:29 PM, Rwui wrote:

Hi there,

So I'm working on some applications, and they're using fop-0.94.jar as
external library to generate the PDF based on certain XSL file.

The problem that I'm having now is the downloaded PDFs from the 
applications
are incomplete (in a high level environment) - there's always random 
missing
page(s) in the PDF file. e.g. I may get page 3 and 6 missing this 
time for a
20 pages PDF and next time it might be page 1, 4 and 13; And if I 
download
only the first page, as you guys can imagine, I will sometimes just 
have a

blank PDF.

The log is showing:

ERROR: FOP  - Error with opening URL 'http://imageURL': Connection reset

ERROR: fop.fo.FONode  - Image not available: url(http://imageURL)

The image is from a image server and the imageURL is always working - 
as if
I copy  paste it to any browser, and as I mentioned the missing 
page(s) are
totally random, I'm thinking the URLs are fine but need to take care 
on the

Connection reset error.

Plus, the application's PDF downloading runs perfectly in other 
environments
like on my local Ubuntu work station (which is also connecting to the 
same

image server). So I'm guessing this might very likely be a configuration
side of thing, but so far haven't got any clue on which might be 
possible to

change to make the fix.

If anyone here have any ideas of what might be causing this kind of 
error or

have seen this before, please let me know. Any help would be very
appreciated.

Thanks!
R



Hi, Rwui-

If you're concerned about connection issues, you might consider 
temporarily copying the images to a drive on the server and 
referencing the local images in FOP.  Doing so would provide the 
opportunity for more robust error handing and eliminate the remote 
connection as a source of errors in FOP.


-Terence Bandoian

-
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: replace commons logging with slf4j

2014-05-21 Thread Chris Bowditch

Hi Jason,

Understood, but there have many other logging frameworks that supposedly 
offered the same thing. Commons Logging for example can handle JDK 
logging and log4j. S:F4J is newer than commons-logging, but other than 
that I see no compelling reason to move to it. Before changing the 
logging framework used by FOP we would want to evaluate a wide set of 
logging frameworks before picking one. AFAIK, No one within the 
committer team is currently looking at that.


Thanks,

Chris

On 19/05/2014 04:13, Jason Harrop wrote:

Hi Chris

SLF4J is a widely used logging facade, which allows you - the FOP user
- to use your preferred concrete logging framework (ie the one you use
in the rest of your application), as opposed to having to grapple with
the logging framework that at some point in time long ago seemed best
to the library developer.

cheers .. Jason

-
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: replace commons logging with slf4j

2014-05-10 Thread Chris Bowditch

Hi Jason,

What's the motivation for doing so? I had a quick glance at the slf4j 
website and it just looks like yet another logging framework. What 
problem does it solve, and what benefits does it have over commons logging?


Thanks,

Chris

On 24/04/2014 01:10, Jason Harrop wrote:
Any chance for FOP 2.0 of replacing commons-logging with slf4j?  Would 
also need to be done in xmlgraphics commons.


In the meantime, using jcl-over-slf4j instead of commons-logging 
works; see http://www.slf4j.org/legacy.html


But it be nice not to need even that.

thanks .. Jason




On Tue, Jun 4, 2013 at 10:20 PM, Bonekrusher djs...@yahoo.com 
mailto:djs...@yahoo.com wrote:


Thanks. These errors are being handled by the Apache Common
Logging. I was
able to turn off Logging:

System.setProperty(org.apache.commons.logging.Log,
org.apache.commons.logging.impl.NoOpLog);





--
View this message in context:

http://apache-fop.1065347.n5.nabble.com/EventListener-SEVERE-events-tp38650p38652.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail:
fop-users-unsubscr...@xmlgraphics.apache.org
mailto:fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail:
fop-users-h...@xmlgraphics.apache.org
mailto: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: My xslt file does not work with a Servlet but it works with a Java Application, Why?

2014-04-08 Thread Chris Bowditch

Hi,

To help you we need more information;

1. FOP version
2. XSL-FO File, which is the real FOP input. XSLT file is no use on its own.
3. Example of good versus bad output

Thanks

Chris

On 07/04/2014 21:26, edi4988 wrote:

Hi.

I have a Web Application and I have my xslt file and  xml file.  I used a
Servlet to convert the xslt file to a pdf file but when I convert these
files to a pdf file, the footer of the document disappears. When I uses the
same xslt file in a java application the pdf has the footer but with the
Servlet does not work.

Do you have any idea?

I attached my xslt file.

Thanks



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/My-xslt-file-does-not-work-with-a-Servlet-but-it-works-with-a-Java-Application-Why-tp40455.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



Re: Funding for Float support in FOP?

2014-02-13 Thread Chris Bowditch

Hi Aaron,

Implementation of fo:float is one of the most trickest algorithms within 
the XSL-FO specification. Vincent H worked on a prototype layout engine 
that could accomodate fo:floats in 2008, but after 12 months we had to 
abandon it as it was still some distance from being finished. Thats just 
the prototype, and excluded all the output generation and many other 
features in FOP.


Assuming the prototype can be finished within say another 12 months, it 
would then take several further man years to port the rest of FOP's 
functionality onto the prototype. We estimate the implementation cost 
would be in the range of several hundred thousand GBP :-o


This is why fo:float has not yet been implemented. Sorry to be the 
bearer of bad news.


Of course, I'm happy to learn if anyone has any idea how to implement a 
solution using the existing Knuth Layout Algorithm.


Chris

On 11/02/2014 03:47, Aaron W. Hsu wrote:

It's nice that I've been able to work around the lack of floats in FOP
for my sigplan article stylesheet, but it still irks me quite a bit. I
don't have the time an inclination to fix the problem myself, given the
lack of time and expertise in this area. However, I at least want to
look into whether it might not be possible to support getting float
support into FOP somehow. Thus, the following:

Given appropriate amounts of funding, is there someone with the
appropriate expertise willing to implement float support and the like in
FOP? If so, what is the funding amount that would be necessary?

I'm looking for honest answers here. I'm not sure I can raise this level
of funding, but at the very least it would be good to know how much it
would cost. I have enough people somewhat interested in this that it
would make sense to make an effort if possible.




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



Re: Rendering issue in image output when setting BufferedImage.TYPE_BYTE_BINARY

2014-01-16 Thread Chris Bowditch

Hi Frank,

The problem is caused by lack of support for dithering when converting 
to B+W output. This is mentioned in the documentation at [1]


Thanks,

Chris

[1] http://xmlgraphics.apache.org/fop/trunk/output.html#bitmap

On 15/01/2014 18:10, Frank B wrote:

I'm creating a barcode using barcode4j. The barcode is sourrounded by a dashed 
border. When generating an image using BufferedImage.TYPE_INT_RGB or 
BufferedImage.TYPE_BYTE_GRAY, the border is rendered properly. However, when 
using BufferedImage.TYPE_BYTE_BINARY, the border is broken. It renders properly 
for PDF output.

I attached sample code and the generated PNGs. The rendering issue doesn't 
depend on the image type. The same issue occurs for a TIFF output with 
TIFFConstants.COMPRESSION_CCITT_T6 and BufferedImage.TYPE_BYTE_BINARY.

- TYPE_BYTE_BINARY.png: how the broken border looks like.
- TYPE_BYTE_GRAY.png: what it should look like.
- TYPE_INT_RGB_details.png: shows how the dashed border is generated. It uses 
svg and diagonal bars that clip the border.
- TYPE_BYTE_BINARY_details.png: how the svg is rendered. The diagonal bars are 
vertical.

I tested with fop versions 1.0 and 1.1.

Any assistance would be appreciated.

cheers,
frank   


-
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: Floating an image (block right and wrap text)?

2014-01-06 Thread Chris Bowditch

Hi David,

Thanks for pointing this out. I've logged a bug to capture this as I 
agree its a poor show to put an example on the homepage that can't be 
achieved by FOP: https://issues.apache.org/jira/i#browse/FOP-2330


In future, please report such issues on the FOP User Mailing list rather 
than e-mailing me directly.


Thanks,

Chris

On 05/01/2014 19:10, qbd...@vt.edu wrote:

Chris,

On one of apache FOP's web pages (http://xmlgraphics.apache.org/fop/) 
there is a picture in the Demonstration section which looks like text 
has been wrapped around an image.


Was this example created using Apache FOP? If so, even if the 
implementation of floating is incomplete can this be released as a 
feature of some kind? Or how else can this be accomplished?


We are trying to accomplish the same thing as Jeffrey and would rather 
resort to a free option.


By the way if anyone needs this feature and is willing to buy a 
product, RenderX and the Antenna House XSL-FO formatter are two options.


Thank you,
David



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



Re: java.lang.NoSuchMethodError: org.apache.fontbox.cff.CFFFont.getGIDMappings()Ljava/util/ArrayList;

2013-11-19 Thread Chris Bowditch

Hi Gonzalo,

It is our intension to update the dependency on fontbox to be a specific 
version. In order to do that we need to wait for a release of fontbox 
containing the changes necessary to support OTF CFF Fonts to be 
released. Until then we must rely on snapshot releases.


Thanks,

Chris

On 18/11/2013 13:02, Gonzalo Vasquez wrote:

Thanks Luis,

Tried both fontbox release versions 1.8.0 and 1.8.2, but the only one 
that worked was 1.8.0-SNAPSHOT, which was included in the SVN trunk. I 
think this should be fixed to a stable release dependency.


Regards,
Gonzalo Vásquez Sáez
Gerente Investigación y Desarrollo (RD)
Altiuz Soluciones Tecnológicas de Negocios Ltda.
Av. Nueva Tajamar 555 Of. 802, Las Condes - CP 7550099
+56 2 335 2461
gvasq...@altiuz.cl mailto:gvasq...@altiuz.cl
http://www.altiuz.cl
http://www.altiuzreports.com
	https://www.facebook.com/altiuz http://twitter.com/altiuz 
http://www.linkedin.com/company/altiuz





El 16-11-2013, a las 17:40, Luis Bernardo lmpmberna...@gmail.com 
mailto:lmpmberna...@gmail.com escribió:


You seem to be using Eclipse. Make sure the fontbox*.jar in the the 
classpath.


On 11/15/13, 7:18 PM, Gonzalo Vasquez wrote:
When adding a specific font that contains TrueType fonts or using 
the auto-detect tag in the fop (trunk version) config file, I'm 
getting the following exception. Any comments / ideas?




java.lang.NoSuchMethodError: 
org.apache.fontbox.cff.CFFFont.getGIDMappings()Ljava/util/ArrayList;
at 
org.apache.fop.fonts.truetype.OTFFile.updateBBoxAndOffset(OTFFile.java:51)

at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:740)
at 
org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:108)

at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:92)
at org.apache.fop.fonts.FontLoader.getFont(FontLoader.java:127)
at org.apache.fop.fonts.FontLoader.loadFont(FontLoader.java:111)
at 
org.apache.fop.fonts.autodetect.FontInfoFinder.find(FontInfoFinder.java:251)

at org.apache.fop.fonts.FontAdder.add(FontAdder.java:63)
at 
org.apache.fop.fonts.DefaultFontConfigurator.addDirectories(DefaultFontConfigurator.java:122)
at 
org.apache.fop.fonts.DefaultFontConfigurator.configure(DefaultFontConfigurator.java:85)
at 
org.apache.fop.render.PrintRendererConfigurator.getCustomFontCollection(PrintRendererConfigurator.java:147)
at 
org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(PrintRendererConfigurator.java:127)

at org.apache.fop.render.intermediate.IFUtil.setupFonts(IFUtil.java:170)
at 
org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:187)

at org.apache.fop.area.RenderPagesModel.init(RenderPagesModel.java:75)
at 
org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:135)

at org.apache.fop.area.AreaTreeHandler.init(AreaTreeHandler.java:105)
at 
org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:350)

at org.apache.fop.fo.FOTreeBuilder.init(FOTreeBuilder.java:106)
at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:104)
at org.apache.fop.apps.Fop.init(Fop.java:78)
at org.apache.fop.apps.FOUserAgent.newFop(FOUserAgent.java:179)
at org.apache.fop.apps.FopFactory.newFop(FopFactory.java:220)
at TestRender.test(TestRender.java:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)
at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)

at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)

at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)

at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at 

PDF Controls was (Re: Floating an image (block right and wrap text)?)

2013-11-15 Thread Chris Bowditch

Hi Jennilee,

Unfortunately the XSL-FO specification does not provide for injecting 
PDF specific items such as AcroForms or XFA into the generated PDF. 
Apache FOP doesn't have an extension for it either.


Thanks,

Chris

On 05/11/2013 04:24, Adams, Jennilee JC wrote:


Good day,

Do you perhaps know how to add an *Editable text box* , *Radio button* 
and *Check Boxes* to a XSL Stylesheet that when the form is generated 
/ rendered via Apache FOP into a PDF format – it allows the user to 
enter text or check the radio button / checkbox before printing the form.


We have been looking for a solution all over and you are my last hope. 
An easy solution would do or if you could post the code of how to add 
in the Editable Text box, Radio button and Check boxes to the XSL 
Stylesheet. In some instances the text box should also allow for 
multiple lines to be captured.


I would really appreciate your feedback and assistance.

Kind Regards,

Jennilee

*From:*Rob Sargent [mailto:rsarg...@xmission.com]
*Sent:* Tuesday, November 05, 2013 12:16 AM
*To:* fop-users@xmlgraphics.apache.org
*Subject:* Re: Floating an image (block right and wrap text)?

Sorry did mean to send it off-list, honest :)

On 11/04/2013 03:14 PM, Rob Sargent wrote:

Taking this off the list.

I just think the text generation is a separate problem form
getting pictures into the product. Once can make all sorts of
constraints on where the text goes without including any images.

rjs


Generally the regions for each are carved out of the whole and

On 11/04/2013 03:06 PM, Jeffrey Walton wrote:

On Mon, Nov 4, 2013 at 4:59 PM, Rob Sargentrsarg...@xmission.com  
mailto:rsarg...@xmission.com  wrote:

I've always assumed typesetting was about type, not pictures.

When's the last time you saw a newspaper, magazine, or catalog without

a picture?

  


Jeff

  


Its hard to believe placing an image is considered extended

functionality. That's part of core word processing 
functionality (I

can't comment on typesetting because I'm not a typesetter, but I

suspect its core for them, too).

-

To unsubscribe, e-mail:fop-users-unsubscr...@xmlgraphics.apache.org  
mailto:fop-users-unsubscr...@xmlgraphics.apache.org

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

  


**

**

*Standard Bank email disclaimer and confidentiality note*

Please go to 
http://www.standardbank.co.za/site/homepage/emaildisclaimer.htmlto 
read our email disclaimer and confidentiality note. Kindly email 
disclai...@standardbank.co.za mailto:disclai...@standardbank.co.za 
(no content or subject line necessary) if you cannot view that page 
and we will email our email disclaimer and confidentiality note to you.





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



Re: Floating an image (block right and wrap text)?

2013-11-15 Thread Chris Bowditch

Hi Jeff,

The XSL-FO Working sub group categorized XSL-FO features into basic, 
extended and complete. This is not something the FOP developers decided.


Image support is indeed a basic feature, no one is disputing that, and 
inserting an image is possible today. Flowing text around an image is 
what is not possible today. You can still position text next to an image 
using a Table.


You mentioned you were willing to give a Paypal donation to provide 
support for fo:float implementation. I should warn you the reason its 
not been done today is because we spent 1 year developing a prototype 
and it still wasn't finished. So a complete implementation would be 
several man years to finish.


Thanks,

Chris

On 04/11/2013 22:06, Jeffrey Walton wrote:

On Mon, Nov 4, 2013 at 4:59 PM, Rob Sargent rsarg...@xmission.com wrote:

I've always assumed typesetting was about type, not pictures.

When's the last time you saw a newspaper, magazine, or catalog without
a picture?

Jeff


Its hard to believe placing an image is considered extended
functionality. That's part of core word processing functionality (I
can't comment on typesetting because I'm not a typesetter, but I
suspect its core for them, too).

-
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: Getting a list of font names without the memory hit...‏

2013-08-01 Thread Chris Bowditch
The auto-detect feature creates the font cache, to save time on 
sunsequent calls to FOP, you can disable the cache using the setting: 
use-cachefalse/use-cache in your fop.xconf.


I suspect the reason for the high memory consumption is your use of 
auto-detect feature. Though I've not replicated the issue. If your 
intention  is to allow the user to pick any font installed on the 
Operating System, why not use the java.awt classes to list the available 
fonts instead? I've not tried it but I suspect it will use less memory 
as it doesn't need to load the full contents of every font in the system.


Thanks,

Chris

On 31/07/2013 12:53, Bernard Giannetti wrote:
Now I'm chasing my tail...looking at FontCachehas gotten me back to 
FontInfo.getFonts()!


Any other ideas please?!



From: thebernmeis...@hotmail.com
To: fop-users@xmlgraphics.apache.org
Subject: RE: Getting a list of font names without the memory hit...‏
Date: Wed, 31 Jul 2013 21:33:14 +1000

I'm readingorg.apache.fop.fonts.FontCache now...red-faced and fingers 
crossed!





From: thebernmeis...@hotmail.com
To: fop-users@xmlgraphics.apache.org
Subject: RE: Getting a list of font names without the memory hit...‏
Date: Wed, 31 Jul 2013 21:29:59 +1000

The config file or the cache file?

My config file has no fonts listed for PDF:

renderer mime=application/pdf
filterList
valueflate/value
/filterList

fonts
auto-detect/
/fonts
/renderer


 Date: Wed, 31 Jul 2013 04:26:33 -0700
 From: djs...@yahoo.com
 To: fop-users@xmlgraphics.apache.org
 Subject: RE: Getting a list of font names without the memory hit...‏

 Why don't you just read the config file which list all the available 
fonts?





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



Re: RTF - Only simple-page-masters are supported on page-sequences

2013-06-26 Thread Chris Bowditch

Hi,

Thanks for the sample FO File. Since it appears to be a bug can you log 
a bug in JIRA and attach the test FO File there. Otherwise this issue 
may get forgotten.


Thank you!

Chris

On 23/06/2013 00:27, Bonekrusher wrote:

Hi Robert,

Below is a small repo. Thanks for looking into this.

?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
fo:layout-master-set xmlns:xs=http://www.w3.org/2001/XMLSchema;
xmlns:fn=http://www.w3.org/2005/xpath-functions;
fo:page-sequence-master master-name=page-sequence
fo:repeatable-page-master-alternatives
fo:conditional-page-master-reference 
odd-or-even=even
master-reference=seq-page-first blank-or-not-blank=not-blank
page-position=first/
fo:conditional-page-master-reference 
odd-or-even=odd
master-reference=seq-page-odd blank-or-not-blank=not-blank/
/fo:repeatable-page-master-alternatives
/fo:page-sequence-master
fo:simple-page-master master-name=seq-page-first 
page-height=11in
page-width=8.5in margin-top=0.5in margin-left=1.0in
margin-right=0.5in
fo:region-body region-name=xsl-region-body 
margin-top=0.80in
margin-bottom=.5in overflow=auto/
fo:region-before region-name=xsl-region-before 
extent=0.5in/
fo:region-after region-name=xsl-region-after 
extent=0.5in/
/fo:simple-page-master
fo:simple-page-master master-name=seq-page-odd 
page-height=11in
page-width=8.5in margin-top=0.5in margin-left=1.0in
margin-right=0.5in
fo:region-body region-name=xsl-region-body 
margin-top=0.35in
margin-bottom=.5in overflow=auto/
fo:region-before region-name=xsl-region-before 
extent=0.5in/
fo:region-after region-name=xsl-region-after 
extent=0.5in/
/fo:simple-page-master
fo:simple-page-master master-name=alternate-blank 
page-height=11in
page-width=8.5in margin-left=1.0in margin-right=1.0in
fo:region-body/
fo:region-before region-name=header-blank 
extent=11in/
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence initial-page-number=1 force-page-count=end-on-even
format=1 master-reference=page-sequence id=ps-0006
fo:static-content flow-name=xsl-region-before
fo:blockdata/fo:block
/fo:static-content
fo:static-content flow-name=header-blank
fo:block line-height=12pt font-family=Arial 
font-size=10pt
font-weight=bold text-align=center

/fo:block
/fo:static-content
fo:static-content flow-name=xsl-region-after
fo:blockdata/fo:block
/fo:static-content
fo:flow flow-name=xsl-region-body
fo:blockdata/fo:block
/fo:flow
/fo:page-sequence
/fo:root




--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/RTF-Only-simple-page-masters-are-supported-on-page-sequences-tp38734p38793.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



Re: FOP 1.0 Wrap text in table cell

2013-06-03 Thread Chris Bowditch

Hi,

This is an FAQ, see: 
http://xmlgraphics.apache.org/fop/faq.html#cells-overflow


Thanks,

Chris

On 28/05/2013 16:48, anotherguy wrote:

Hi all,

I already tried wrap-option=wrap,keep-together.within-column=always but
still can't put the text wrapping in the table cell.

anyone know what to do?

Thanks



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/FOP-1-0-Wrap-text-in-table-cell-tp38595.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



Re: Doubling result when sorting in FOP not in XSL

2013-05-22 Thread Chris Bowditch

Hi Jean-Pierre,

On 22/05/2013 09:04, Jean-Pierre Lamon wrote:

Hi all,

It's the first time I'm posting here and I'm newbie in both XSL and FOP. So,
sorry for the horrors you'll find in my code :-)
I just would like to congratulate all the developers and contributors of
FOP, it's an amazing and so usefull product,

I just have a problem while grouping and sorting with FOP. The result is
different when using XSL or FOP. Ok with XSL, not with FOP.
The files are zipped on my server, so it would be nice if someone could help
me for this issue :

http://www.ngscan.com/downloads/fop/

The files are partial but usable I think.
It's a bibliography. Authors have many books and I want to sort by author
and book titles (node indexsort).

Standard XSL result (stylesheet toc.xsl)

Abegg, Regine
-- Die Äbtissinnenstuben im Schweizerischen Landesmuseum Zürich | 4
-- Die Kirchen von Altnau | 3
Alencastro, Camille de
-- Les expositions d'art à Neuchâtel | 1
-- Liste des expositions d'arts plastiques organisées par le Musée | 2
Carli-Lanfranconi, Annina de
-- Die Kirchen von Altnau | 3
Erni, Peter
-- Die Kirchen von Altnau | 3

FOP result (stylesheet  BHS_2012_two_records.xsl : Abegg is doubled)


This looks like a bug in your XSLT file to me. To check, trying running 
the XSLT process outside of FOP, i.e.


xalan -in bhs_2012_two_record.xml -xsl bhs_2012_two_record.xsl -out 
bhs_2012_two_record.fo


Alternatively if you use FOP from the command line, pass the -fo switch 
and name of XSL-FO File. If you have 2 entries in the XSL-FO then this 
confirms the bugs resides in the XSLT file.


For pure XSLT questions you will get a better response on the mulberry 
mailing list at [1]


Thanks,

Chris

[1] http://www.mulberrytech.com/xsl/xsl-list



Abegg, Regine
-- Die Äbtissinnenstuben im Schweizerischen Landesmuseum
Zürich : | 4
-- Die Kirchen von Altnau / | 3
Abegg, Regine
-- Die Äbtissinnenstuben im Schweizerischen Landesmuseum
Zürich : | 4
-- Die Kirchen von Altnau / | 3
Alencastro, Camille de
-- Les expositions d'art à Neuchâtel / | 1
-- Liste des expositions d'arts plastiques organisées par le
Musée : | 2
Carli-Lanfranconi, Annina de
-- Die Kirchen von Altnau / | 3
Erni, Peter
-- Die Kirchen von Altnau / | 3

On line 35 of BHS_2012_two_records.xsl :
xsl:sort select=../indexsort/

if I put
xsl:sort select=./ the record is not doubled, but not sorted


Thank you a lot for your help
JPL



-
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: FO to PDF conversion failing for the new Turkish Lira Symbol.

2013-05-14 Thread Chris Bowditch

Hi Ashok,

Can you let us know which version of FOP you are using? Would you also 
be able to send us the full FO File? Can you confirm the font you are 
using is the one at [1]? If not, send us the correct URL so we can 
replicate this issue.


Thanks,

Chris

[1] http://www.evertype.com/fonts/rupakara/

On 14/05/2013 11:36, Ashok Kumar wrote:

Hi,

When I am trying to convert the below FO to PDF, I am getting
ArrayIndexOutOfBoundException. The FO content which I am trying to convert
is given below:
fo:block space-before=1em space-after=1em role=p
font-family=RupakaraA paragraph in Turkish for SYMBOL ₺ ₤/fo:block

Actually when I am trying to convert the Turkish Lira Symbol (₺) it is
converting to  symbol during html to FO and throwing exception while
converting FO to PDF.

I am using the proper font files which supports the above symbol.
Can you please resolve this issue asap.




-
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: Use of Type1 fonts without metrics information

2013-04-29 Thread Chris Bowditch

Hi Luca,

Yes that is correct, FOP needs the PFB plus the AFM or PFM File in order 
to be able to process the Type 1 Font. The metrics XML File isn't needed 
though. What problem are you facing?


Thanks,

Chris

On 29/04/2013 11:04, Luca Bellonda wrote:
However, even when disabling the kerning option in fop configuration 
file, fop  accesses the 'AFM' or the 'PFM' metrics files when using 
Type1 fonts.
If none of the metrics files is found, an exception is thrown by 
Type1FontLoader class (Neither an AFM nor a PFM file was found).



2013/4/29 Luis Bernardo lmpmberna...@gmail.com 
mailto:lmpmberna...@gmail.com


Yes, see
http://xmlgraphics.apache.org/fop/trunk/fonts.html#register (the
documentation is for trunk but works the same in 1.1). Use of
metrics file has been deprecated and is not recommended.





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



Re: Adding image to PDF File : Error

2013-04-19 Thread Chris Bowditch

On 18/04/2013 11:23, javakthar wrote:

HI


Hi,



I get the following error when processing my agent to convert xml to PDF.
THe PDF document gets created but the image does not get created.

pr 18, 2013 3:51:04 PM org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not available: The file format is not supported. No
ImagePreloader found for
data:image/jpeg;base64,R0lGODlhDwAPAKECzMzM/wAAACwADwAPAAACIISPeQHsrZ5ModrLlN48CXF8m2iQ3YmmKqVlRtW4MLwWACH+H09wdGltaXplZCBieSBVbGVhZCBTbWFydFNhdmVyIQAAOw==


What version of FOP are you using? That's a data URL and I'm sure 
support was only added for data URLs in more recent versions of FOP.


Thanks,

Chris


Apr 18, 2013 3:51:04 PM org.apache.fop.layoutmgr.table.TableLayoutManager
getNextKnuthElements
INFO: table-layout=fixed and width=auto, but auto-layout not supported
= assuming width=100%
Apr 18, 2013 3:51:04 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'verdanna,normal,400' not found. Substituting with
'any,normal,400'.


Following is the content of my xsl-fo

fo:block
fo:external-graphic
src=url(data:image/jpeg;base64,R0lGODlhDwAPAKECzMzM/wAAACwADwAPAAACIISPeQHsrZ5ModrLlN48CXF8m2iQ3YmmKqVlRtW4MLwWACH+H09wdGltaXplZCBieSBVbGVhZCBTbWFydFNhdmVyIQAAOw==)
/fo:external-graphic


Kindly let me know how this could be resolved.

Regards
Javed Khan



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Adding-image-to-PDF-File-Error-tp38354.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



Re: line-height.conditionality

2013-03-26 Thread Chris Bowditch

Hi John,

Sorry I didn't appreciate the full scenario you were looking at in your 
previous e-mail. Please do submit a patch if you have one, as I'm sure 
it will come in handy for others.


Thanks,

Chris

On 26/03/2013 08:11, jsolutions wrote:

Thanks Chris,

That is not really the scenario I'm dealing with. I specifically want there
to be no half leading above the first line in a reference area. At the
bottom of a reference area, I want the line breaking to allow a line to fit
on the page when it's line-height is too big for the page, but if you remove
the bottom half leading then it can fit.

Here is an example of it not working with the input data given, the black
border is on the body region and the red border on the block I want
line-height.conditionality to apply to:

output.pdf http://apache-fop.1065347.n5.nabble.com/file/n38226/output.pdf

I thought this was the main purpose of the line-height.conditionality
property?

Anyway, I have made some modifications to the fop source and split the line
area into a box/glue/penalty rather than a single box, when determining page
breaks.

I may submit it if I thought there was enough interest, but the lack of
response and also the fact that RenderX and Antenna House also don't appear
to support it. The fact that they didn't appear to made me think I was doing
something wrong.

Cheers

JC



-
John Cumming - jSolutions Ltd
http://www.jsolutions.co.uk
--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/line-height-conditionality-tp38191p38226.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



Re: line-height.conditionality

2013-03-25 Thread Chris Bowditch

Hi,

If you want to get rid of half leading on areas containing images or 
other non text items then specify font-size=0pt If the area contains 
text then you can specify line-height=1.0 (default is 1.2x font size)


HTH,

Chris

On 20/03/2013 12:17, jsolutions wrote:

I'm trying to get rid of half leading at the top and bottom of reference
areas, as the line-height.conditionality property should, but I cannot get
it to work.

I'm sure I must be doing something wrong as I have been unable to find a
lack of compliance on the FOP web site. However, looking through the source
code (1.1) I cannot find where it is used. I am a little confused.

Here's some test code I cannot get working:

?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
 fo:layout-master-set
 fo:simple-page-master master-name=page
 fo:region-body region-name=body margin=25.4mm
 border-width=0.1pt
 border-color=rgb(0,0,0)
 border-style=solid
 padding=0pt/
 /fo:simple-page-master
 /fo:layout-master-set
 fo:page-sequence master-reference=page
 fo:flow font-family=Times flow-name=body
 fo:block font-size=36pt
   line-height=72pt
   line-height.conditionality=discard
   border-width=0.1pt
   border-color=rgb(255,0,0)
   border-style=solidÉ Here is some 36pt text,
with 72pt height./fo:block
 /fo:flow
 /fo:page-sequence
/fo:root

What am I doing wrong?

JC



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/line-height-conditionality-tp38191.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



Re: Change bars support in FOP?

2013-03-14 Thread Chris Bowditch

Hi Alexey,

Reading the JIRA entry its clear that we are still waiting for some test
cases. That is why the bug is in NEEDSINFO status. If they are provided
then the patch could be reviewed again to check it is still compliant
with the trunk code.

Thanks,

Chris


On 11/03/2013 16:45, Alexey Neyman wrote:

Thanks. That issue does not have any further comments/changes than the one in
Bugzilla, though.

Regards,
Alexey.

On Monday, March 11, 2013 01:24:20 am Pascal Sancho wrote:

Hi,

Just for convenience, you should monitor the corresponding issue in Jira:
https://issues.apache.org/jira/browse/FOP-1760

Bugzilla Fop issues became read-only when we migrated them to Jira.

2013/3/10 Alexey Neyman sti...@att.net


Hi,

Are there any plans to implement change bars in FOP?

I found the bug in JIRA that claims to implement that:

https://issues.apache.org/bugzilla/show_bug.cgi?id=48548

It is in NEEDSINFO state for almost a year now, even though the author
has updated the patch and (presumably) addressed the review feedback on
the previous version of the patch (which is why it was switched to
NEEDSINFO, as far as I understand).

Is this patch going to be integrated?

Regards,
Alexey.

-
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: how to merge PDFs

2013-01-31 Thread Chris Bowditch

Hi,

A  better approach to merging multiple PDF files together is to use the 
Intermediate Format. So instead of transforming each separate File 
FO-PDF directly, tranform FO-IF and then once you have all the 
separate IF Files you can merge them into one large PDF File. If you try 
to do that with PDFBox or similar you will be constrained by memory as 
those tools have to load the entire PDF data into an object model inside 
the process. We can generate 10s of thousands of pages using this 
technique and you can resequence the page numbers with a few minor 
tweaks to the XML as you load the files in, rather than having to 
manipulate PDF Text to achieve this.


Take a look at the Java code example 
\examples\embedding\java\embedding\intermediate\ExampleConcat.java to 
see how to achieve what I'm describing.


Thanks,

Chris

On 29/01/2013 15:30, Campbell, Lance wrote:


Thanks for your suggestion on submitting a bug.  I put together the 
information to recreate the problem as well as the PDF that was in 
error.  I submitted it just now.


I think I will skip the merge and wait to hear back from the bug 
submission.


Thanks,

Lance Campbell

Software Architect

Web Services at Public Affairs

217-333-0382

University of Illinois at Urbana-Champaign logo http://illinois.edu/

*From:*Luis Bernardo [mailto:lmpmberna...@gmail.com]
*Sent:* Monday, January 28, 2013 5:00 PM
*To:* fop-users@xmlgraphics.apache.org
*Subject:* Re: how to merge PDFs


Please provide a test case if you think you found a bug. Most likely 
there is some oddity in your FO input that causes the problem.


If you want to merge documents and have control over how they are 
generated you can use initial-page-number to set the page number for 
the start of a page sequence.


To merge, besides PDFBox you can use pdftk (which itself uses iText).

On 1/28/13 8:42 PM, Campbell, Lance wrote:

I looked over the PDFBox option.  Do you believe there is a way to
renumber pages in a merged PDF document?

Thanks,

Lance Campbell

Software Architect

Web Services at Public Affairs

217-333-0382

University of Illinois at Urbana-Champaign logo http://illinois.edu/

*From:*Mehdi Houshmand [mailto:med1...@gmail.com]
*Sent:* Monday, January 28, 2013 2:02 PM
*To:* fop-users@xmlgraphics.apache.org
mailto:fop-users@xmlgraphics.apache.org
*Subject:* Re: how to merge PDFs

Look into PDFBox, its another Apache project that can do just
that. However, you definitely shouldn't be seeing XSL-FO in the
output PDF.

Can you post a bug and attach a test sample? Depending on what
you're doing, FOP should be able to handle big documents so the
merging shouldn't be necessary.

On Jan 28, 2013 5:08 PM, Campbell, Lance la...@illinois.edu
mailto:la...@illinois.edu wrote:

FOP 1.1

We have been using FOP for quite a few years now.  We are really
happy with it.  We use it to generate PDF reports.  We seem to be
running into an issue where really large reports start to display
the XSL-FOP code in the output.

Example:

d=submission-4 fo:static-content flow-name=xsl-region-after
fo:table fs week? If so,

provide details on the conference/workshop/journal, authors, paper

I was thinking that maybe I could process each page into its own
PDF and then splice the single page PDFs together into a master
PDF document.

Has anyone ever done this?

This will prevent the issue from occurring.

Thanks,

Lance Campbell

Software Architect

Web Services at Public Affairs

217-333-0382




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



Re: Suppress output to screen

2013-01-23 Thread Chris Bowditch

Hi Stephen,

On 18/01/2013 21:28, Stephen McCracken wrote:

I'm trying to suppress output to the screen.

I'm using FOP version 0.95 in a bash script and use the -q option and
redirect stdout and stderr to /dev/null, but still get messages printed
to the screen:


Can you copy and paste an example of the messages you are seeing on the 
screen. You might be able to suppress them using log levels.




$ fop -q -fo $YR.wk$WK.fo $YR.wk$WK.pdf  /dev/null 21

Making landscape pages on USletter paper (11inx8.5in)

Thanks for any help!


Thanks,

Chris


sjm

-
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: fop-ttfreader - output bounding box information for characters?

2013-01-09 Thread Chris Bowditch

Hi Alexey,

On 08/01/2013 18:12, Alexey Neyman wrote:

Hi Chris,

On Tuesday, January 08, 2013 12:10:36 am Chris Bowditch wrote:

Sounds like we need a FOP plug-in for pMML2SVG to replace the ageing
JEuclid one.

Pardon my ignorance, but what is FOP using for the XSL transformation?
Is it Xalan-based? In that case, it probably won't be sufficient:
pMML2SVG requires XSLT 2.0, which, as far as I understand, is only
supported by Saxon.

You can use whichever XSLT processor you choose with FOP, as long as you
feed FOP with XSL-FO.

I know that; you mentioned *plug-in* pMML2SVG - I assumed, plug-in is
something to be integrated into FOP - which is why I asked what FOP uses for
XSLT.


Sorry I choose a poor choice of words. I meant the plug-in could use any 
XSLT processor it needed to. Would probably mean adding a saxon dependency.


Thanks,

Chris




Regards,
Alexey.





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



Re: fop-ttfreader - output bounding box information for characters?

2013-01-08 Thread Chris Bowditch

On 08/01/2013 07:52, Alexey Neyman wrote:


Hi Chris,



Hi Alexey,


On Monday, January 07, 2013 11:44:46 AM Chris Bowditch wrote:

 Patch from pMML2SVG, slightly modified to apply to FOP 1.1 sources,

 attached.



 Thanks for the patch. To get this added to the code base please 
raise an


 issue in JIRA, add the diff as an attachment and include [PATCH] 
in the


 subject line. A committer will then review the patch before 
applying it.




 Created an issue:

 https://issues.apache.org/jira/browse/FOP-2180



 Thank you.

So, can this patch be reviewed/integrated?



That shouldn't be a problem. As I indicated Peter is working in a 
similar area right now, so I will ask him if he can take a look.



  I know Peter Hancock is looking into doing something similar as he is

  working on getting Batik to use FOP configured fonts instead of the

  system ones. Peter mentioned to me offlist that he was going to 
need to


  expose a few extra things in TTFReader to facilitate this, could 
be you


  are covering similar ground here.

 

  Maybe. Then again, the root of the issue is not Batik - that issue 
I work


  around by embedding fonts. It is JEuclid's use of system fonts 
which is


  why I am switching to pMML2SVG - which needs bounding box 
information for


  glyphs.

 

  BTW, another useful feature in pMML2SVG that was not available in 
JEuclid


  is that pMML2SVG outputs baseline position information in the 
generated


  SVG - so that inline equations can be properly positioned on the line.



 Sounds like we need a FOP plug-in for pMML2SVG to replace the ageing

 JEuclid one.

Pardon my ignorance, but what is FOP using for the XSL transformation? 
Is it Xalan-based? In that case, it probably won't be sufficient: 
pMML2SVG requires XSLT 2.0, which, as far as I understand, is only 
supported by Saxon.




You can use whichever XSLT processor you choose with FOP, as long as you 
feed FOP with XSL-FO.


Thanks,

Chris


Regards,

Alexey.




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



Re: fop-ttfreader - output bounding box information for characters?

2013-01-07 Thread Chris Bowditch

Hi Alexey,

On 04/01/2013 19:41, Alexey Neyman wrote:

snip/

Interesting workaround. We are trying to tackle this issue by providing
an alternative implementation of GVTFont in Batik that uses FOP's Font
Library to load the font metrics.
First, as I was told on the list previously, it is not a small feat and it
would take some time before this fix is released.


Yes, that is correct.



Then, even though it would solve the issue for SVGs, it won't help with font
selection for MathML. As I explained below, JEuclid pre-renders the glyphs
into paths.


That's true. I missed the fact you were working with JEuclid



And as far as I can tell, JEuclid project is all but dead: the last non-
trivial commit was 16 months ago, and the last release 30 months ago. I don't
think it is likely JEuclid will catch up with FOP improvements, even when
they're available.


I'm subscribed to the JEuclid mailing list and I get the same impression.




This does not work well with JEuclid, though. When JEuclid generates
SVG from MathML, it performs font rendering - that is, replaces
characters by actual paths. And again, it uses system fonts, not the
fonts available in FOP - even if running as FOP plugin.

To work around this issue for MathML, I am currently switching from
JEuclid to pMML2SVG (http://pmml2svg.sourceforge.net). It generates
SVGs with text characters, not paths. But in order to do so, it needs
font metrics. Unfortunately, font metrics produced by stock FOP
TTFReader are not sufficient - this stylesheet also needs bounding box
for each glyph. To obtain these, pMML2SVG currently packages an
augmented TTFReader Java sources which are to be compiled and used in
lieu of the stock one.

Given that the patch is very small and as far as I can tell,
compatible with current users of font metrics (it just adds 4
attributes to glyph description), is it possible to integrate this
support into stock FOP?

Patch from pMML2SVG, slightly modified to apply to FOP 1.1 sources,
attached.

Thanks for the patch. To get this added to the code base please raise an
issue in JIRA, add the diff as an attachment and include [PATCH] in the
subject line. A committer will then review the patch before applying it.

Created an issue:
https://issues.apache.org/jira/browse/FOP-2180


Thank you.




I know Peter Hancock is looking into doing something similar as he is
working on getting Batik to use FOP configured fonts instead of the
system ones. Peter mentioned to me offlist that he was going to need to
expose a few extra things in TTFReader to facilitate this, could be you
are covering similar ground here.

Maybe. Then again, the root of the issue is not Batik - that issue I work
around by embedding fonts. It is JEuclid's use of system fonts which is why I
am switching to pMML2SVG - which needs bounding box information for glyphs.

BTW, another useful feature in pMML2SVG that was not available in JEuclid is
that pMML2SVG outputs baseline position information in the generated SVG - so
that inline equations can be properly positioned on the line.


Sounds like we need a FOP plug-in for pMML2SVG to replace the ageing 
JEuclid one.


Thanks,

Chris



Regards,
Alexey.


Anyway, please raise the JIRA issue otherwise your patch could get lost.

Thanks,

Chris


Regards,

Alexey.



-
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

-
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: fop-ttfreader - output bounding box information for characters?

2013-01-04 Thread Chris Bowditch

Hi Alexey,

Apologies for the slow reply. I'm just catching up on e-mail after the 
holidays.


On 28/12/2012 05:56, Alexey Neyman wrote:


Hi all,

As I mentioned in another email, I am trying to constrain FOP to use 
only local fonts (i.e. ones described in fop.cfg). For SVGs, I have a 
workaround:


- Generate fonts in SVG format using ttf2svg utility from Batik;

- Use an XSL stylesheet to embed all the fonts used by an SVG image 
into the image itself;


- Use such preprocessed SVG image as the input to FOP.



Interesting workaround. We are trying to tackle this issue by providing 
an alternative implementation of GVTFont in Batik that uses FOP's Font 
Library to load the font metrics.


This does not work well with JEuclid, though. When JEuclid generates 
SVG from MathML, it performs font rendering - that is, replaces 
characters by actual paths. And again, it uses system fonts, not the 
fonts available in FOP - even if running as FOP plugin.


To work around this issue for MathML, I am currently switching from 
JEuclid to pMML2SVG (http://pmml2svg.sourceforge.net). It generates 
SVGs with text characters, not paths. But in order to do so, it needs 
font metrics. Unfortunately, font metrics produced by stock FOP 
TTFReader are not sufficient - this stylesheet also needs bounding box 
for each glyph. To obtain these, pMML2SVG currently packages an 
augmented TTFReader Java sources which are to be compiled and used in 
lieu of the stock one.


Given that the patch is very small and as far as I can tell, 
compatible with current users of font metrics (it just adds 4 
attributes to glyph description), is it possible to integrate this 
support into stock FOP?


Patch from pMML2SVG, slightly modified to apply to FOP 1.1 sources, 
attached.




Thanks for the patch. To get this added to the code base please raise an 
issue in JIRA, add the diff as an attachment and include [PATCH] in the 
subject line. A committer will then review the patch before applying it.


I know Peter Hancock is looking into doing something similar as he is 
working on getting Batik to use FOP configured fonts instead of the 
system ones. Peter mentioned to me offlist that he was going to need to 
expose a few extra things in TTFReader to facilitate this, could be you 
are covering similar ground here.


Anyway, please raise the JIRA issue otherwise your patch could get lost.

Thanks,

Chris


Regards,

Alexey.



-
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: How to find out why fop needs a certain font?

2012-12-21 Thread Chris Bowditch

Hi Alexey,

On 21/12/2012 03:07, Alexey Neyman wrote:

Yes, I want to understand how FOP treats the fonts in SVG (and, if you know
that, how fonts are selected in embedded MathML via JEuclid plugin - we use
that, too).

We've had some font discrepancies in the past depending on the fonts installed
on each developer's machine (in part, because some of the authors are on
Windows machines and some are on Linux - so they're likely to have different
fonts). Thus, we've decided to do away with using system fonts and use only
local fonts (i.e. fonts checked out from the repository along with the
document sources).


Understood. We have similar challenges too.



On Thursday, December 20, 2012 03:32:04 pm Luis Bernardo wrote:

With SVG, fonts are more complicated. The font used in the SVG needs to
be installed in the system and needs to be configured in fop.xconf too.
The warning you got usually happens when the font is in the system but
not configured in fop.xconf, which looking at your example does not seem
to be the case...

Are you saying that the font used in SVG needs to be present both as a system
font, even if it is listed in fop.conf? What is FOP going to use then, system
font or local font?

If it is using system font, that's more than disturbing. As I mentioned, this
completely prevents setting up a controlled environment with known fonts.


yes that is true. Just to be clear, this is a limitation of Batik, not 
FOP. Batik uses the AWT Font system as mentioned by Mehdi and Pascal. 
Peter is researching the possibility of changing Batik so that it can 
use fonts defined in fop.xconf, but that is a long term project with no 
quick fix.


Thanks,

Chris




If you want to get to the bottom of the matter please indicate what
version of fop you are using and what OS.

FOP 1.1, Linux (RedHat Enterprise, 6.2).


Also, the use of metrics-url
is not needed anymore (and is not recommended) so you can remove that.

I tried, it didn't have any effect on the warning.


I see you refer to the font file TimesNewRoman.ttf without specifying a
font-base path (which only works if you have the file in the same
directory you have your *.fo file).

I made it so for this reduced test case. Originally, it was embed-
url=../fonts/TimesNewRoman.ttf - as I mentioned above, we want to have a
controlled font environment.


Is that font file an exact copy of
the installed font in the system of the same name?

The machine does not have a 'Times New Roman' system font (it's a Linux
machine, it comes with a different set of system fonts by default).

But why would FOP need a system font if it has the required font specified in
the configuration file?

Another question is, would embedding fonts in SVGs prevent FOP from using
system fonts?

Regards,
Alexey.


On 12/20/12 6:44 PM, Alexey Neyman wrote:

Hi Luis,

No, it is not the case. In the FO I am using, fo:root has a font-family
specified, and that font family is described in the fop.cfg.

Actually, I traced this warning down to the watermark image specified for
the background. However, that SVG does not refer to 'Serif' font, either.
Can somebody please explain how does FOP treat the fonts in the included
SVG files?

I even tried to add a substitution from font-family=Serif to font-
family=Times New Roman, it did not help either.

Here is the reduced FO file that exhibits the issue:

[[[
?xml version=1.0?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; font-family=Times
New Roman

fo:layout-master-set

  fo:simple-page-master master-name=draft
  
fo:region-body background-image=url(draft.svg)/
  
  /fo:simple-page-master

/fo:layout-master-set

fo:page-sequence master-reference=draft

  fo:flow flow-name=xsl-region-body
  
fo:block/
  
  /fo:flow

/fo:page-sequence


/fo:root
]]]

And here is the draft.svg:

[[[
?xml version=1.0 encoding=UTF-8 standalone=no?
svg xmlns=http://www.w3.org/2000/svg; viewBox=80 80 600 600

  version=1.1 width=5in height=5in

text font-weight=normal xml:space=preserve

  transform=matrix(0.70710678,-0.70710678,0.70710678,0.70710678,0,0)

  font-size=250px y=640 x=-315 font-family='Times New Roman'
  fill=#f2f2f2Draft/text

/svg
]]]

And fop.cfg:

[[[
?xml version=1.0?
fop version=1.0

renderers

  renderer mime=application/pdf
  
fonts

  font kerning=yes metrics-url=TimesNewRoman.metric embed-


url=TimesNewRoman.ttf

font-triplet name=Times New Roman weight=normal

style=normal/

  /font

/fonts
  
  /renderer

/renderers


/fop
]]]

Regards,
Alexey.

On Wednesday, December 19, 2012 04:45:31 pm Luis Bernardo wrote:

This is of no consequence although is it puzzling at first. If you
specify a global font-family in the fo root element I think the warning
goes away. I think what you are seeing has been discussed here:

Re: Omitting Bottom table border on page-break

2012-12-17 Thread Chris Bowditch

On 14/12/2012 10:48, Bonekrusher wrote:

Hello,


Hi,



I have the following requirement for my xsl:fo :

When a table is continued on more than one page.. The closing rule is
omitted at the foot of a
continued table; the opening rule is continued at the head of the continued
portion along
with the heading title data.

Using xslt I could omit the bottom border if and only if I knew where the
page-break was going to occur. This could be problematic and could be a lot
of work for the xml author. Especially if the xml file is modified. That
could change the location of where the page breaks. Is there a way to do
this in xsl-fo, to know if the page is going to break? If not, any ideas on
how to do this automatically?


Your requirement sounds similar to the conditionality component of 
border property properties. By default this is set to discard, so I 
would expect border-bottom to be absence on the bottom of a table 
spanning 2 pages on page 1 and present on page 2. Setting conditionality 
to retain will make the border be drawn on all pages that the table 
spans over.


Thanks,

Chris



Thx
  




--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Omitting-Bottom-table-border-on-page-break-tp37527.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



Re: Omitting Bottom table border on page-break

2012-12-17 Thread Chris Bowditch

Hi,

On 17/12/2012 11:44, Bonekrusher wrote:

Thank you Chris, but unfortunately this is the opposite of what I want to
accomplish (if I understand your post). In this case I want the bottom
border to be absent except on the last page.


With border-bottom-width.conditionality=discard that is exactly the 
behaviour you get; absent on all pages except the last.


Thanks,

Chris




Chris Bowditch wrote

Your requirement sounds similar to the conditionality component of
border property properties. By default this is set to discard, so I
would expect border-bottom to be absence on the bottom of a table
spanning 2 pages on page 1 and present on page 2. Setting conditionality
to retain will make the border be drawn on all pages that the table
spans over.


-
To unsubscribe, e-mail: fop-users-unsubscribe@.apache
For additional commands, e-mail: fop-users-help@.apache




--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Omitting-Bottom-table-border-on-page-break-tp37527p37553.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



Re: Maven dependencies for fop 1.1

2012-12-04 Thread Chris Bowditch
Thanks for the suggestion Stephen. I have changed the POM template so 
that the avalon dependency will be fixed in the next release.


Committed in revision 1416937

Thanks,

Chris

On 02/12/2012 21:29, Stephen More wrote:
 avalon 4.2.0 artifact is already loaded in repo, it just has a 
different group id.


Changing fop-1.1.pom from:

dependency
groupIdorg.apache.avalon.framework/groupId
artifactIdavalon-framework-api/artifactId
version4.2.0/version
/dependency
   dependency
groupIdorg.apache.avalon.framework/groupId
artifactIdavalon-framework-impl/artifactId
version4.2.0/version
/dependency

to
dependency
groupIdavalon-framework/groupId
artifactIdavalon-framework-api/artifactId
version4.2.0/version
/dependency
   dependency
groupIdavalon-framework/groupId
artifactIdavalon-framework-impl/artifactId
version4.2.0/version
/dependency

should resolve the issue. The maintainers of the repo do not want to 
the see the same artifact loaded twice with 2 different name spaces. 
Since the pom has already been released I guess a new pom 1.1.1 would 
have to be pushed out with the fix.


-Stephen More

On Sun, Dec 2, 2012 at 11:26 AM, Glenn Adams gl...@skynav.com 
mailto:gl...@skynav.com wrote:


to implement, perhaps someone could upload the 4.2.0 artifact to
maven to fix this.





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



Re: Cell border rendering error (thicker) with number-column-spanned

2012-11-02 Thread Chris Bowditch

On 02/11/2012 13:55, reevev wrote:

Hi,


Hi Reeve,



Thanks for your reply.  While I can confirm that disabling Enhance thin
lines corrects the display it doesn't solve the issue that the same
templates rendered correctly even with this option enabled when we use
0.20.5 to generate the pdf.

Our issue is that Enhance thin lines is turned on by default and for most
users they will end up seeing a poor looking PDF now that we've started
using Fop 1.0, vs. a correct looking PDF prior to the upgrade, so from the
end user's perspective this is broken.  Is there any way we can have the
same sort of rendering used in 0.20.5 for table borders?


No such option exists today. However, FOP is an open source project, so 
patches are welcome :)


However, please be warned that the table border drawing code is very 
complicated so altered the way borders are drawn to work around Acrobat 
bugs will not be trivial.


Thanks,

Chris



Thanks,

Reeve.



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Cell-border-rendering-error-thicker-with-number-column-spanned-tp17999p37229.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



Re: Does FOP-1.1rc1 change handling of RGB values?

2012-09-03 Thread Chris Bowditch

On 31/08/2012 21:52, rsargent wrote:

Chris,

I'm not sure how to read this.  Are you endorsing string-replace as the way
to go to get cmyk into the pdf or was that meant to be tongue-in-cheek?


No I certainly was not endorsing string replace. I was intending to 
endorse the rgb-icc function.




I was about to switch over to using rgb-icc since we have two colour
profiles in play.  If you're suggesting that string-replace is preferrable,
then I really have to get the correct(ed) strings from somebody.


Thanks,

Chris




Chris Bowditch wrote


Definitely the right way to use FOP though :-)

Chris





--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Does-FOP-1-1rc1-change-handling-of-RGB-values-tp36690p36735.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



Re: using cmyk() in fop-1.1rc1 SOLVED

2012-08-28 Thread Chris Bowditch

On 27/08/2012 17:07, Rob Sargent wrote:

Hi Rob,

Bingo. I was completely off-base in thinking it was an xslt function. 
Your suggestion works like a charm.  This helps clean up local 
colour-guessing a lot.


BTW, I strongly recommend using rgb-icc function instead of cmyk. The 
rgb-icc function achieves the same thing as cmyk, but has 2 key benefits 
over cmyk:


1. It is more flexible as it supports any named ICC Profile, not just 
uncalibrated CMYK
2. rgb-icc is part of the XSL-FO recommendation and therefore portable 
to other XSL-FO Formatters. cmyk function is custom to FOP.


Thanks,

Chris



THANKS,

rjs


On 08/27/2012 09:39 AM, Sergiu Dumitriu wrote:

On 08/27/2012 11:09 AM, Rob Sargent wrote:

Does anyone have at hand (a link to) an example of using the cmyk()
function.  All I get is Could not find function: cmyk. Who supplies
this function?

Running from cli  ~/tools/fop/fop-1.1rc1/fop -xml doc-1.xml -xsl
/d3/support/config/stylesheet/prose.xsl -foout cmyk.fo

with this (attempted) call in my stylesheet:
xsl:param name=darkbackgroundcolor
   xsl:value-of select=cmyk(0.0, 0.564, 0.529, 0.325)/
/xsl:param


Definitely not XSLT. The way you wrote this, it's not FOP that fails 
to find the function, but the XSLT engine that transforms XML into 
FO. Try something like:


xsl:param name=darkbackgroundcolor
   xsl:textcmyk(0.0, 0.564, 0.529, 0.325)/xsl:text
/xsl:param





-
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: next stable version for FOP?

2012-07-23 Thread Chris Bowditch

On 23/07/2012 14:59, Danut Clapa wrote:

Hello,


Hi Danut,


I seen that the latest version of the FOP is 1.1rc. Taking in consideration 
that is an release candidate. Do you have any information when will be next 
stable release after 1.1rc?


You don't need to cross post your question to multiple lists. Please 
avoid doing so in future. Thanks.


To answer your question; the plan is to release FOP 1.1 a few weeks 
after 1.1rc1 when we've had sufficient feedback to be sure the release 
is sufficiently stable.


Thanks,

Chris



Thank you,



Danut Clapa
Senior Java Developer
TIC
Phone 0314138592
danut.cl...@uti.ro
Sos. Oltenitei, nr 107 A, corp C1, Etaj 5
107-111A Oltenitei
RO-041393 Bucuresti 4
Romania
www.uti.eu.com http://www.uti.eu.com%20/








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



Re: Small error to the documentation

2012-07-18 Thread Chris Bowditch

On 14/07/2012 22:14, Glenn Adams wrote:

Hi Glenn,

I've moved this discussion to fop-dev as its now more relevant there.

the source for this file is 
under src/documentation/content/xdocs/compliance.ihtml; you can create 
a bug attaching a patch, or if it is a simple change, just send the 
diff or describe it in an email


Actually the changes you made to update the documentation for the 1.1 
release don't appear to have yet been merged back to trunk. This error 
only exists in the 1.1 branch. I have committed a fix to the 1.1 branch 
in revision: 1362810, but this raises the question on when the changes 
for the 1.1 documentation will be merged back to trunk?


Thanks,

Chris



On Sat, Jul 14, 2012 at 12:08 PM, polymorphisme 
webmas...@polymorphisme.org mailto:webmas...@polymorphisme.org wrote:


Hi,

I have see an error to the documentation :
http://xmlgraphics.apache.org/fop/compliance.html#fo-property-script

How can I do a patch to the documentation ?

Regards.

--
View this message in context:

http://apache-fop.1065347.n5.nabble.com/Small-error-to-the-documentation-tp36342.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail:
fop-users-unsubscr...@xmlgraphics.apache.org
mailto:fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail:
fop-users-h...@xmlgraphics.apache.org
mailto: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: AFP Renderer

2012-07-16 Thread Chris Bowditch

On 12/07/2012 13:48, Imad Bougataya wrote:

Hi everyone,


Hi Imad,



i just started experimenting with fop to generate afp files, and i would like to
know how to go about including an overlay in the output afp file. i'd like to
embed ressources as a general rule.


You sent your e-mail to the wrong mailing list which is why you haven't 
had a reply yet. In future, please direct questions about FOP's usage to 
the fop-user Mailing list.


Currently it is not possible to embed an Overlay into the final AFP 
File. You can reference an Overlay using the Page Overlay extension 
described at [1], but that requires that the Overlay is installed on the 
printer. Please feel to raise a Bugzilla entry to track this enhancement 
request.


Thanks,

Chris

[1] http://xmlgraphics.apache.org/fop/1.1rc1/output.html#afp-page-overlay














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



Re: fox:destination is it obsolete with FOP 1.0 ?

2012-07-10 Thread Chris Bowditch

On 09/07/2012 19:59, polymorphisme wrote:

Hello,


Hi,



at this time, I use the links for write a PDF book, with FOP 1.0
In the FOP's site, I have read the section
http://xmlgraphics.apache.org/fop/1.0/extensions.html#named-destinations
Anchors or Named Destinations .

Too, when a test the snippet code following :

  fo:basic-link
external-destination=http://expositions.bnf.fr/ciel/maths/pdf/mesurl1.pdf#page=2amp;zoom=50;Mesure/fo:basic-link

this link works very well :) So, the extention fox:destination is it
obsolete with FOP 1.0 ?


I don't believe fox:destination is obselete in FOP 1.0

fox:destination is about exposing links in the FOP generated PDF to 
external Applications. The link you cited above looks like a reference 
from the FOP generated PDF to another non FOP generated PDF. In fact the 
PDF Producer of that PDF is Acrobat PDFWriter 3.0.2 not FOP. So 
Acrobat PDFWriter is adding the Destination not FOP.


fox:destination is needed where you want to do something like:

html
body
a href=fop-generated.pdf#mydestinationFOP PDF/a
/body
/html

Thanks,

Chris



Regards.

--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/fox-destination-is-it-obsolete-with-FOP-1-0-tp36294.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



Re: Table continuation headers

2012-06-29 Thread Chris Bowditch

On 28/06/2012 14:21, Stefan Hinz wrote:

Hi Luis,


Hi Stefan,




Incidentally I started looking at this recently but it will be a couple
of months before I am able to show some code. I haven't written anything
so far but I found there is already some code in FOP for table markers.
So we don't need to start from zero.


So does this mean that table continuation headers *are* on the 
roadmap, or at least on the radar?


Yes. Table-marker support is on the roadmap, but other bugs/issues keep 
getting in the way of implementing them, so we can't give you a firm ETA 
on when they will be supported.


Thanks,

Chris


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



Re: Chinese PDFs and non embedded fonts

2012-04-25 Thread Chris Bowditch

On 24/04/2012 19:16, Luis Bernardo wrote:

Hi Luis,
Just by itself the embed-url attribute does not imply that the font 
will be embedded. I know that the attribute name is confusing, and the 
documentation may not be up to date, but I believe that is the case. 
Fonts are subset embedded by default unless the referenced-fonts 
element is present, in which case they are referenced.


That is correct. The error reported by Adobe Reader suggests that the 
Simsun font is not registered with Adobe Reader. I believe it is not 
sufficient for the font to just be installed in the Operating System. I 
think the fonts also need to be registered with Adobe. Which makes the 
use case of referencing fonts instead of embedding somewhat worthless.


Thanks,

Chris


On 4/24/12 4:15 PM, Jean-Philippe Courson wrote:

Hi Glenn,

Thanks for your reply.

In your example, you are embedding the font:

font embed-url=simsun.ttf  the embed-url attribute will get the 
font embedded.


I have no problem creating a chinese PDF when the font is embedded.

The issue I am raising is when trying to reference (not embed) the font.

Thanks for your help,

Best regards,
JP

On 23 Apr 2012, at 15:26, Glenn Adams wrote:

I just tried this with the font you referenced and had no problem. 
Attached is the configuration file and input file I used and 
resulting output. I'm using the current FOP 1.1dev (trunk) build.


As Chris points out, you may wish to avoidauto-detect/. Also, you 
notice that I disabled the font cache and placed the font in a 
fonts subdirectory where I did the test.




-
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






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



Re: Chinese PDFs and non embedded fonts

2012-04-23 Thread Chris Bowditch

On 20/04/2012 18:54, Glenn Adams wrote:

Hi Glenn,


it is best you create a bug at [1] to track this; you can upload 
attachments on the new bug; file it under the Fop product;


I'm not happy to encourage users on this list to open bugs before 
confirming there is a defect.


Everything I've read on this thread so far suggests this is a 
configuration issue. Metrics files are deprecated in FOP v1.0+


How to reference instead of embed is to add the embed-url attribute on 
the fonts elements and use the referenced-fonts element as described 
in [1]


Thanks,

Chris

[1] http://xmlgraphics.apache.org/fop/trunk/fonts.html#embedding



[1] https://issues.apache.org/bugzilla/

On Fri, Apr 20, 2012 at 5:55 AM, Jean-Philippe Courson 
jean-philippe.cour...@cognitran.com 
mailto:jean-philippe.cour...@cognitran.com wrote:


Hi,

I am trying to produce chinese PDFs not embedding fonts. I am
using the SimSun font.

When embedding the font, everything is fine. However, when trying
to reference the font, FOP produced an invalid PDF, despite the
Simsun font being installed on the machines were the PDF is
produced and opened.

I tried both auto-configuring the fonts and the old style, metric
based manual font configuration:

1) Auto-configured fonts:

fonts
referenced-fonts
match font-family=.*/
/referenced-fonts
/fonts
renderers
renderer mime=application/pdf
...
auto-detect/

The produced PDF shows # characters for every chinese symbol.

2) Manually configured fonts:

renderers
renderer mime=application/pdf
...
fonts
font
metrics-url=file:///Users/jumal/Downloads/fop-1.0/SimSun.xml
kerning=yes
font-triplet name=SimSun style=normal weight=normal/
font-triplet name=SimSun style=normal weight=bold/
font-triplet name=SimSun style=italic weight=normal/
font-triplet name=SimSun style=italic weight=bold/
/font

   a) Metric file generated with the default options:

java -cp ... org.apache.fop.fonts.apps.TTFReader
SimSun.ttf SimSun.xml

The produced PDF can not be opened by Acrobat Reader which
gives the following error message: Cannot find or create the font
'SimSun'. Some characters may not display or print correctly.

   b) Metric file generated with the -enc ansi options:

java -cp ... org.apache.fop.fonts.apps.TTFReader -enc ansi
SimSun.ttf SimSun.xml

The produced PDF shows # characters for every chinese symbol.

Having a look at
http://xmlgraphics.apache.org/fop/trunk/fonts.html#truetype-metrics,
and in particular:

TTFReader [options]:
   ...
   • -enc ansi Creates a WinAnsi-encoded font metrics file.
Without this option, a CID-keyed font metrics file is created. The
table below summarises the differences between these two encoding
options as currently used within FOP. Please note that this
information only applies to TrueType fonts and TrueType collections:
Issue   WinAnsi  
 
CID-keyed

Usable Character Set  Limited to WinAnsi character set, which
is roughly equivalent to iso-8889-1.  Limited only by the
characters in the font itself.
Embedding the FontOptional.  
 
  Mandatory. Not embedding the font

produces invalid PDF documents.

it looks like you need to use the -enc ansi to be able to
reference a font. Does this mean that have to use WinAnsi
(windows-1252) encoding for the input XML files?

If it is the case, that would mean to produce for example chinese
PDFs, you would have to embed the font, as windows-1252 cannot be
used to encode chinese symbols.

Am I missing something or the only way to produce chinese PDF is
to embed the font with the font licensing costs it implies?

Cheers,
JP

-
To unsubscribe, e-mail:
fop-users-unsubscr...@xmlgraphics.apache.org
mailto:fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail:
fop-users-h...@xmlgraphics.apache.org
mailto: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: Is it possible to embed .swf file into PDF and dynamically pass parameters to it (through XML string)?

2012-04-23 Thread Chris Bowditch

On 23/04/2012 11:21, Denys wrote:

Hi -


Hi Denys,


I am looking for a good Java library which gives the opportunity to create
PDF files from Java application. These files are some kind of reports. Part
of them are graphical reports (FusionChart reports) and I need to embed .swf
files into my PDF (also dynamically in Java application) and pass some
parameters to is (as flashvars).

Is it possible to do using Aspose java library for working with PDF?


Apache FOP is the wrong tool for this job. FOP is about processing 
XSL-FO input not creating PDF direct from Java. Apache PDFBox is a PDF 
Library written in Java, from which you will be able to build PDF direct 
from a Java program. I'm not sure whether PDFBox will let you embed .swf 
stream into the PDF. This question is best asked on the pdfbox-users 
mailing list.


Thanks,

Chris



Thanks in advance,
  -Denys



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



Re: Chinese PDFs and non embedded fonts

2012-04-23 Thread Chris Bowditch

On 23/04/2012 14:35, Jean-Philippe Courson wrote:

Hi all,


Hi Jean,


Thank you for your replies.

Please find attached a sample FO file highlighting the issue and 2 
configuration files: one embedding the font, and another one referencing it.


I can't see the referenced-fonts element in either configuration file. 
So it still looks to me like you aren't configuring the font correctly. 
I also recommend that you don't use auto-detect/ in this scenario.


Thanks,

Chris


I attached as well a small JAVA program I use to verify that the font is 
correctly installed.

For testing purpose, you can download the SimSun font from 
http://jumal.is.free.fr/SimSun.ttf.

1) I verify that the font is correctly installed:

~/Downloads/fop-1.0/test$ java AvailableFonts | grep SimSun
SimSun
java.awt.Font[family=SimSun,name=SimSun,style=plain,size=1]

2) I generate a PDF embedding the font:

~/Downloads/fop-1.0/test$ ../fop -fo test-fo.xml -c configuration-embedded.xml 
output-embedded.pdf
Apr 23, 2012 1:49:38 PM org.apache.fop.apps.FopFactoryConfigurator configure
INFO: Default page-height set to: 11in
Apr 23, 2012 1:49:38 PM org.apache.fop.apps.FopFactoryConfigurator configure
INFO: Default page-width set to: 8.26in

The PDF produced is OK: Hello 仅供参考

3) I generate a PDF, using the same FO file, referencing the font:

~/Downloads/fop-1.0/test$ ../fop -fo test-fo.xml -c 
configuration-referenced.xml output-referenced.pdf
Apr 23, 2012 1:49:52 PM org.apache.fop.apps.FopFactoryConfigurator configure
INFO: Default page-height set to: 11in
Apr 23, 2012 1:49:52 PM org.apache.fop.apps.FopFactoryConfigurator configure
INFO: Default page-width set to: 8.26in
Apr 23, 2012 1:49:55 PM org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph 仅 (0x4ec5) not available in font SimSun.
Apr 23, 2012 1:49:55 PM org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph 供 (0x4f9b) not available in font SimSun.
Apr 23, 2012 1:49:55 PM org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph 参 (0x53c2) not available in font SimSun.
Apr 23, 2012 1:49:55 PM org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph 考 (0x8003) not available in font SimSun.

FOP issues warnings telling that the glyphs are not available for the font (I 
just saw this warning making this example),  and the PDF produced is having all 
glyphs replaced with '#': Hello 

Am I doing something wrong with the configuration or is this issue due a FOP 
limitation or bug?

Thank you all in advance for your help

Best regards,
JP





















On 23 Apr 2012, at 10:08, Chris Bowditch wrote:


On 20/04/2012 18:54, Glenn Adams wrote:

Hi Glenn,

it is best you create a bug at [1] to track this; you can upload attachments on the new 
bug; file it under the Fop product;

I'm not happy to encourage users on this list to open bugs before confirming 
there is a defect.

Everything I've read on this thread so far suggests this is a configuration 
issue. Metrics files are deprecated in FOP v1.0+

How to reference instead of embed is to add the embed-url attribute on the fonts 
elements and use thereferenced-fonts  element as described in [1]

Thanks,

Chris

[1] http://xmlgraphics.apache.org/fop/trunk/fonts.html#embedding


[1] https://issues.apache.org/bugzilla/

On Fri, Apr 20, 2012 at 5:55 AM, Jean-Philippe 
Coursonjean-philippe.cour...@cognitran.commailto:jean-philippe.cour...@cognitran.com
  wrote:

Hi,

I am trying to produce chinese PDFs not embedding fonts. I am
using the SimSun font.

When embedding the font, everything is fine. However, when trying
to reference the font, FOP produced an invalid PDF, despite the
Simsun font being installed on the machines were the PDF is
produced and opened.

I tried both auto-configuring the fonts and the old style, metric
based manual font configuration:

1) Auto-configured fonts:

fonts
referenced-fonts
match font-family=.*/
/referenced-fonts
/fonts
renderers
renderer mime=application/pdf
...
auto-detect/

The produced PDF shows # characters for every chinese symbol.

2) Manually configured fonts:

renderers
renderer mime=application/pdf
...
fonts
font
metrics-url=file:///Users/jumal/Downloads/fop-1.0/SimSun.xml
kerning=yes
font-triplet name=SimSun style=normal weight=normal/
font-triplet name=SimSun style=normal weight=bold/
font-triplet name=SimSun style=italic weight=normal/
font-triplet name=SimSun style=italic weight=bold/
/font

   a) Metric file generated with the default options:

java -cp ... org.apache.fop.fonts.apps.TTFReader
SimSun.ttf SimSun.xml

The produced PDF can not be opened by Acrobat Reader which
gives the following error message: Cannot find or create the font
'SimSun'. Some characters may not display or print correctly.

   b) Metric file generated with the -enc ansi

Re: Fonts in config file

2012-04-12 Thread Chris Bowditch

On 12/04/2012 14:00, froglander wrote:

If I haveauto-detect /  in the userconfig.xml file this line

fo:inline font-size=8pt font-family=Symbol•/fo:inline

Ends up displaying as a # symbol in the resulting pdf file print.

If I takeauto-detect /  out of the userconfig.xml file, then the above
line works but the following line does not.


That's because there are 2 version of the font named Symbol; The Base 14 
font Symbol that is included with FOP by default. That is the version 
used when auto-detect/ is absent from the fop.xconf file and the 
symbol.ttf file installed in the operating system. The bullet character 
is not present in the Operating System version of Symbol or at least its 
accessed via a different Unicode reference.




fo:inline font-size=11pt font-family=Arial, sans-serifΩ/fo:inline


Arial is not available as part of the Base 14 fonts, so you must 
register it in the fop.xconf. Since auto-detect/ adds every font 
installed in the Operating System I suggest you manually add individual 
fonts that you wish to use (such as Arial) using the font element as 
described in [1]


Thanks,

Chris

[1] http://xmlgraphics.apache.org/fop/1.0/fonts.html#register



Is any more information needed?  I need this to be able to show bulleted
lists as well as possible 'special' characters.

Thanks!



froglander wrote:

In this case it is using te symbol font for the bullets.

Rob Sargent-4 wrote:

Not all fonts have bullets.  Which are you using?

rjs

On 04/11/2012 02:34 PM, froglander wrote:

I am using FOP 1.0 and am having difficulty getting bullets and symbols
to
display correctly.

I have found that if I take theauto-detect /   the bullets for the
bulleted
list (rich text format) will show, but them some other symbols (like the
Ohm
symbol, etc) show as #.  If I keep theauto-detect /   in, the bulleted
list
shows as # symbols, but the Ohm symbol, etc display correctly.

Is something missing for the fonts?

Thanks!


-
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: Keeps and multicolumn text

2012-04-11 Thread Chris Bowditch

On 05/04/2012 13:59, Amick, Eric wrote:


Hello,



Hi Eric,

I have some data that I am displaying on a two-column page that is 
intermixed with data that spans the columns. I want to have the 
two-column data listed in balanced columns, but occasionally a page 
break occurs immediately after the first item in the data; as a 
result, that item appears by itself on a line. I thought I would use a 
keep-together to group the data, but I can’t figure it out. Using 
keep-with-previous and keep-with-next doesn’t help; if anything, it 
makes it worse. Does anyone have any ideas?




keep-together=always on a block that surrounds the items to be kept 
together usually works. Can you post the XSL-FO that isn't working for 
you. Also, can you state which version of FOP you are using?


Thanks,

Chris


Eric Amick Systems Engineer II

U.S. House of Representatives | Office of the Clerk | Legislative 
Computer Systems

Office: 202-225-1182

http://clerk.house.gov http://clerk.house.gov/


Please consider the environment before printing this email.




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



Re: OCRB fonts are not rendered in PCL output

2012-03-20 Thread Chris Bowditch

On 15/03/2012 16:03, Luis Bernardo wrote:

Hi Luis,


At the moment that is not possible...

The only fonts that can be rendered as text right now are the first 12
standard fonts (F1 to F12).
I'm not sure that's true. The Base Fonts are rendered as text, but 
custom fonts installed in the Operating System and available to Java AWT 
can be used but they are rasterized rather than inserted as text in the 
PCL. The end result on the printer should be comparable though.


I'm not sure what the problem is with the OCRB font in this case. Have 
you checked FOP's logs, maybe the font name under Java AWT is not 
matching what you expect and reference in the XSL-FO?


Thanks,

Chris



On Thu, Mar 15, 2012 at 7:06 AM, Mrutyunjay Sahasrabudhe
mruts...@techmahindra.com  wrote:

Hi,

I am using OCRB font for some part of the text and generating PCL output using
FOP 1.0.

The font is installed in the required directory for Java 2D to use those.

But, I don't see the text that uses OCRB font in the output file (the PCL
file).

Any idea whether it would an issue of FOP or PCL?

It would be great if anyone knows a resolution of how to get OCRB fonts
rendered correctly in PCL.

Thanks  regards,
Mrutyunjay


-
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






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



Re: Event feedback logging

2012-03-01 Thread Chris Bowditch

On 24/02/2012 15:03, Steve Ebersole wrote:

Hi Stevem
I develop a library (jDocBook) that does DocBook related tasks as part 
of Maven or Gradle builds.  Initially, the output from FOP was so 
verbose that I ended up redirecting all console output to a file for a 
variety of reasons.


On recently upgrading to 1.0 I noticed that some logging was again 
appearing in the build console.  Which led me to discover the addition 
of feedback events in 1.0 and that these were (at least some of) the 
messages showing up in the console.  So I whipped up a custom 
org.apache.fop.events.EventListener based on the well detailed 
http://xmlgraphics.apache.org/fop/1.0/events.html page and some of the 
messages were again gone from the console and showing up in the 
redirection file again.  Yaay!


But others are still showing up in the console.  I'd like to know how 
to get these messages to show up only in the redirection file.  The 
messages still showing up in the console were:


Yeah thats a bug bear I have about FOP too. When the event system was 
introduced a number of warning and informational messages were left 
using the old logging framework, which means some important warnings are 
not captured by the event framework and by efault end up on stdout. It 
will be a big job to get all messages routed into the Event Framework.



1) Defined font directory [...] is not exist or is not a directory
2) Couldn't find hyphenation pattern en
3) span=inherit on fo:block, but no explicit value found on the 
parent FO.




Thanks,

Chris


Thanks!





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



Re: Shipping fop with complex script support

2012-03-01 Thread Chris Bowditch

On 27/02/2012 18:34, Jonathan Levinson wrote:
Hi Jonathon,

We are looking to bundle fop with its new complex script support with 
a reporting package that will be deployed at many institutions and 
many hospitals. We support many hospitals in the Middle East and they 
will be affected.


I’m looking for advice on when I should take a time-slice of the 
trunk. Or is it the case that a new version of FOP will be available 
soon, and it would be better (and still preserve timeliness) to wait 
for that?


What is the schedule for the next FOP release? At what point is the 
trunk stable enough to ship?


I’m not asking a scientifically precise question that has a 
scientifically precise answer, but I’m looking for pragmatic advice.




I believe Glenn Adams is planning to work on a release of FOP in the 
near term. Exactly when I don't know. First of all we need to discuss it 
on fop-dev. Typically a release candidate would be buolt first and the 
community allowed to test it. During which time we can iron out any 
instabilities before building the final release.


Thanks,

Chris


Thanks,

Jonathan Levinson

Senior Software Developer

Object Group

InterSystems

jonathan.levin...@intersystems.com




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



Re: Different Page Layout every xx document sheet

2012-02-27 Thread Chris Bowditch

On 26/02/2012 16:01, Rob Sargent wrote:

Hi Rob,

OK, you've convinced me that you cannot do what you're hoping to 
accomplish in apache FOP.  You cannot have a zero-sized flow on a page 
far as I know and that's what you would need to get the address only 
on those pages (in some static region).


Actually it is possible for the flow to skip a page in Trunk anyway. 
Just make the region-body of one of the simple-page-masters reference a 
region that doesn't exist. Peter submitted a oatch last year for this 
that I committed a few weeks ago.


Thanks,

Chris


This is not the trick I hinted at but might be a better solution 
anyway.


Make the pdf without worrying about the address page(s).

Use iText to insert the address page(s) as necessary.

I think your case would be quite straight forward:  Open the pdf in 
iText and insert an address page after every 6th page of report data.


We use iText to affect multiple flows.  We have static regions which 
need a flow.  We make those pages in fop with the flow as the region 
body, then use iText to overlay the two pages so it appears that there 
are two separate two columns portions of the page.


Now a printing house incapable of more the six pages or at least doing 
the collating necessary to cover their shortcomings is another very 
interesting question.



On 02/26/2012 05:06 AM, Alexios Giotis wrote:
The number of groups of seven is not known in advance, it depends 
on the input data but the total number of pages will be less than 
100. The use case is like this:


We are printing statements (transactional data) and each statement 
has a different number of pages depending on the customer. Each 
statement is enveloped and dispatched. The printing house has only 
one type of enveloping machine that can fit at most 6 sheets into an 
envelope. When a document is larger than 6 sheets, it is splited into 
envelopes and all of them are send to the same address. Each envelope 
has a 'window' in a predefined area where the address is printed. 
Therefore, on every 7th sheet we should print on an absolutely 
positioned area, the recipient address. Other than this, the flow of 
the content will continue from page to page.


Any XSL:FO suggestion, even if not elegant or not fully resolving 
this, is welcomed !


Alex Giotis



On Feb 26, 2012, at 5:43 AM, Rob Sargent wrote:

Re-reading (and quite likely stilll not fully inderstanding) the 
repeatable-page-master reference et al, I'm inclined to agree with 
Luis.  If you know how many groups of seven you will be making, I 
can give you a suggestion from something that is working for me.  It 
amounts to making as many page references as needed.  Not elegant, 
but for me it was critical.


On 02/24/2012 04:22 PM, Luis Bernardo wrote:
I am afraid that this layout is not possible with the current FOP 
but I think it should be possible with a fully compliant 
implementation of FO, at least the way I understand it. In any 
case, I would like to be proven wrong...


The issue is with the first page of every 7th sheet. Maybe it would 
help if you explain how you intend to flow the content from page to 
page. When you are on page 12th and want to move to page 13th do 
you let the content flow or do you insert a break?


If you insert a break when you get to the first page of every 7th 
sheet then it may be possible. Because then it is like a book where 
you want each chapter to start on a odd page and you can use the 
blank-or-not-blank trait to achieve that. However that assumes you 
only insert breaks at the end of chapters, which in your case would 
be the end of every 6th sheet. If you want to insert a break at the 
end of every page then it will not work.



On 2/23/12 4:22 PM, Rob Sargent wrote:
OK, then I believe you can define each needed simple-page-master: 
first, second-sixth, seventh and make a page-sequence-master with 
a repeatable-page-master-alternative with a reference to each of 
the seven pages in the sequence. Not sure if the 2-6 can be in a 
conditional-page-master-reference or not.


On 02/23/2012 02:33 AM, Maria Manta wrote:

Hello and thank you for your quick answer!
Concerning your question:
Will you be addressing the static regions of the seventh pages 
differently from one another.  In other words does e.g. 
region-before or page 13 get the same content as region-before on 
page 25?

The answer is no, I will not be addressing them differently.
The regions-before will be the same for pages 13,25th etc.
Cheers.
Maria


-
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: Different Page Layout every xx document sheet

2012-02-27 Thread Chris Bowditch

On 27/02/2012 15:37, Rob Sargent wrote:

Chris,


Hi Rob,


This is interesting and I may even join those dare-devils out on the 
edge (I currently have a layout which should have been all 
region-before, but had to include some region-body to keep fop 
happy. So I may revisit this, but in truth I don't follow the 
reference a region part.)


By reference a region I mean:

fo:simple-page-master master-name=nocontent
fo:region-body region-name=doesntexist/
/fo:simple-page-master


But does it help the OP?  Seems to me until page-number is an 
attribute in conditional-page-master, he's still left with having to 
find an alternative, no?


I'm not suggesting it does help the OP, I just wanted to correct your point.

Thanks,

Chris





On 02/27/2012 07:58 AM, Chris Bowditch wrote:

On 26/02/2012 16:01, Rob Sargent wrote:

Hi Rob,

OK, you've convinced me that you cannot do what you're hoping to 
accomplish in apache FOP.  You cannot have a zero-sized flow on a 
page far as I know and that's what you would need to get the address 
only on those pages (in some static region).


Actually it is possible for the flow to skip a page in Trunk anyway. 
Just make the region-body of one of the simple-page-masters reference 
a region that doesn't exist. Peter submitted a oatch last year for 
this that I committed a few weeks ago.


Thanks,

Chris


This is not the trick I hinted at but might be a better solution 
anyway.


Make the pdf without worrying about the address page(s).

Use iText to insert the address page(s) as necessary.

I think your case would be quite straight forward:  Open the pdf in 
iText and insert an address page after every 6th page of report data.


We use iText to affect multiple flows.  We have static regions which 
need a flow.  We make those pages in fop with the flow as the region 
body, then use iText to overlay the two pages so it appears that 
there are two separate two columns portions of the page.


Now a printing house incapable of more the six pages or at least 
doing the collating necessary to cover their shortcomings is another 
very interesting question.



On 02/26/2012 05:06 AM, Alexios Giotis wrote:
The number of groups of seven is not known in advance, it depends 
on the input data but the total number of pages will be less than 
100. The use case is like this:


We are printing statements (transactional data) and each statement 
has a different number of pages depending on the customer. Each 
statement is enveloped and dispatched. The printing house has only 
one type of enveloping machine that can fit at most 6 sheets into 
an envelope. When a document is larger than 6 sheets, it is splited 
into envelopes and all of them are send to the same address. Each 
envelope has a 'window' in a predefined area where the address is 
printed. Therefore, on every 7th sheet we should print on an 
absolutely positioned area, the recipient address. Other than this, 
the flow of the content will continue from page to page.


Any XSL:FO suggestion, even if not elegant or not fully resolving 
this, is welcomed !


Alex Giotis



On Feb 26, 2012, at 5:43 AM, Rob Sargent wrote:

Re-reading (and quite likely stilll not fully inderstanding) the 
repeatable-page-master reference et al, I'm inclined to agree with 
Luis.  If you know how many groups of seven you will be making, 
I can give you a suggestion from something that is working for 
me.  It amounts to making as many page references as needed.  Not 
elegant, but for me it was critical.


On 02/24/2012 04:22 PM, Luis Bernardo wrote:
I am afraid that this layout is not possible with the current FOP 
but I think it should be possible with a fully compliant 
implementation of FO, at least the way I understand it. In any 
case, I would like to be proven wrong...


The issue is with the first page of every 7th sheet. Maybe it 
would help if you explain how you intend to flow the content from 
page to page. When you are on page 12th and want to move to page 
13th do you let the content flow or do you insert a break?


If you insert a break when you get to the first page of every 7th 
sheet then it may be possible. Because then it is like a book 
where you want each chapter to start on a odd page and you can 
use the blank-or-not-blank trait to achieve that. However that 
assumes you only insert breaks at the end of chapters, which in 
your case would be the end of every 6th sheet. If you want to 
insert a break at the end of every page then it will not work.



On 2/23/12 4:22 PM, Rob Sargent wrote:
OK, then I believe you can define each needed 
simple-page-master: first, second-sixth, seventh and make a 
page-sequence-master with a repeatable-page-master-alternative 
with a reference to each of the seven pages in the sequence. Not 
sure if the 2-6 can be in a conditional-page-master-reference or 
not.


On 02/23/2012 02:33 AM, Maria Manta wrote:

Hello and thank you for your quick answer!
Concerning your question:
Will you be addressing the static

Re: Cell border rendering error (thicker) with number-column-spanned

2012-02-10 Thread Chris Bowditch

On 10/02/2012 09:14, zhangwei wrote:

Hi,

I've met with a problem with thicker table border with number-column-spanned
on FOP 1.0.
The copied text exactly describes the same problem I have.

When zoomed to 100% or 200% in Adobe reader, you can find the thicker line.


What about when you zoom to 800% or higher? Also, does the problem 
appear when you print the PDF?





Any idea? Seems like it's a bug of FOP, if so, can anyone fix it or point
the Java file I should go?


It's not a bug of FOP, but down to the use of thin lines on low 
resolution devices and how different PDF Viewers handles this.


1px is a very thin line. 1pt should be the minimum really to ensure you 
don't see strange affects like this on screen.


Adobe Reader does have some options that you can disable to improve the 
way thin lines are drawn at 100% zoom. Ensure the option Enhance Thin 
Lines is disabled


Chris



Adobe Reader: 8.3.1
FOP: 1.0
FO:
?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
xmlns:html=http://www.w3.org/1999/xhtml; role=html:html
fo:layout-master-set
fo:simple-page-master page-width=auto
page-height=auto master-name=all-pages
fo:region-body /
fo:region-before /
fo:region-after /
fo:region-start /
fo:region-end  /
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence master-reference=all-pages
fo:flow flow-name=xsl-region-body
fo:block role=html:body
fo:table
fo:table-column 
number-columns-repeated=3
role=html:colgroup /
fo:table-body 
border-collapse=collapse
fo:table-row
fo:table-cell
number-columns-spanned=3 
border=1px border-style=solid
role=html:td
fo:blocktest 
text
/fo:block
/fo:table-cell
/fo:table-row
fo:table-row
fo:table-cell
number-columns-spanned=3 
border=1px border-style=solid
role=html:td
fo:blocktest 
text
/fo:block
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table
/fo:block
/fo:flow
/fo:page-sequence
/fo:root

Copied:
I found that using the attribute number-column-spanned inside a cell
element, I get a bad rendering of the cell border: it gets thicker in the
central section of the border.

http://permalink.gmane.org/gmane.text.xml.fop.user/30912



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



Re: Problem that could lose me my job

2012-02-08 Thread Chris Bowditch

On 08/02/2012 09:51, Theresa Jayne Forster wrote:

Hi Theresa,


But it is still not creating a valid PDF

I am getting image errors in the info log still where it can’t find an 
importer or convertor. What jars do I need for jpg files?


I have batik and XMLGraphics-Commons-1.4

Is there any other jar I need – like JAI? And if so what are the maven 
dependencies I need?




FOP needs jai-imageio.jar for most image formats. Add that to your 
classpath to fix the errors about no preloader found.


Chris


Kindest regards


Theresa Forster

Senior Software Developer


*From:*Craig Ringer [mailto:ring...@ringerc.id.au]
*Sent:* 08 February 2012 03:56
*To:* fop-users@xmlgraphics.apache.org
*Cc:* Luis Ferro
*Subject:* Re: Problem that could lose me my job

On 08/02/12 03:23, Luis Ferro wrote:

Hmmm... why not installing those files in a local webserver?

That way you would have a proper uri (http://localhost/etc...)

file:/// file:///%5C%5C is a proper URI, it's just not a URL. Fop 
only requires resolvable URIs and doesn't really care where they come 
from.


Using HTTP would add transfer overhead and slow things down for little 
if any benefit. I don't really see the point, when fixing the URI 
syntax to conform to correct file URI syntax is all that's required here.


--
Craig Ringer




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



Re: is xmlgraphics-commons-1.4.jar compatible with FOP0.95

2012-02-06 Thread Chris Bowditch

On 02/02/2012 19:56, vijay kumar wrote:

Hi Experts,


Hi Vijay,


I would like to check,
is it ok to say, xmlgraphics-commons-1.4.jar is compatible with FOP0.95
by default FOP0.95 is packaged with xmlgraphics-commons-1.3.1.jar


FOP 0.95 requires xgc v1.3.1. v1.4 introduces some incompatible code 
changes that will cause FOP 0.95 to fail if you try to use it.



But, i wanted to use xmlgraphics-commons-1.4  with FOP0.95


Why? I guess to fix some kind of bug. You will need to upgrade FOP to 
v1.0 and xgc to v1.4 to resolve any bugs you encountered.


as i do not see any documentation that says,  any compatibility issues 
, also i do not see any issues in my usage.

could you please confirm this.


Thanks,

Chris



Thanks  Regards,
Vijay






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



Re: ERROR: endElement() for fo:root where there is no current element

2012-01-25 Thread Chris Bowditch

On 23/01/2012 17:27, Nathan Schoenroth wrote:
I am getting the following error when trying to run fop on an xsl-fo 
template



Full Trace:



[xmlserver] [INFO] [XMLConnectionHandler] Processed XML document.
[xmlserver] [INFO] [XMLConnectionHandler] Sending preview.
[xmlserver] [INFO] [XMLConnectionHandler] Sent preview.
[xmlserver] [INFO] [XMLConnectionHandler] Job completed.
[xmlserver] [WARN] [FOTreeBuilder] Mismatch: table-body 
(http://www.w3.org/1999/

XSL/Format) vs. table (http://www.w3.org/1999/XSL/Format)
[xmlserver] [WARN] [FOTreeBuilder] Mismatch: table 
(http://www.w3.org/1999/XSL/F

ormat) vs. table-body (http://www.w3.org/1999/XSL/Format)
[xmlserver] [WARN] [FOTreeBuilder] Mismatch: block 
(http://www.w3.org/1999/XSL/F

ormat) vs. table (http://www.w3.org/1999/XSL/Format)
[xmlserver] [WARN] [FOTreeBuilder] Mismatch: flow 
(http://www.w3.org/1999/XSL/Fo

rmat) vs. block (http://www.w3.org/1999/XSL/Format)
[xmlserver] [WARN] [FOTreeBuilder] Mismatch: page-sequence 
(http://www.w3.org/19

99/XSL/Format) vs. flow (http://www.w3.org/1999/XSL/Format)
[xmlserver] [WARN] [BreakingAlgorithm] Line 1 of a paragraph overflows 
the avail

able area. (fo:block, ?)
[xmlserver] [WARN] [FOTreeBuilder] Mismatch: root 
(http://www.w3.org/1999/XSL/Fo

rmat) vs. page-sequence (http://www.w3.org/1999/XSL/Format)


Have you seen this FAQ on the website?

http://xmlgraphics.apache.org/fop/faq.html#saxexception-mismatch

The error means that something went wrong during the XSLT stage. Run 
your XML+XSLT using xalan directly instead of FOP to diagnose what goes 
wrong in your XSLT.


Thanks,

Chris


[xmlserver] [ERROR] [FOTreeBuilder] javax.xml.transform.
TransformerException: ja
va.lang.IllegalStateException: endElement() called for fo:root where 
there is no

 current element.
[xmlserver] [INFO] [XMLConnectionHandler] Processed XML document.
[xmlserver] [INFO] [XMLConnectionHandler] Job completed.
[xmlserver] SystemId Unknown; Line #0; Column #0; 
java.lang.IllegalStateExceptio

n: endElement() called for fo:root where there is no current element.


--
*Nathan*




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



Re: POstScrit Fonts

2012-01-20 Thread Chris Bowditch

On 20/01/2012 01:59, Craig Ringer wrote:

Hi Craig,


On 19/01/12 19:54, Chris Bowditch wrote:

That's true of FOP trunk, but we have developed advanced font support
for Postscript in a branch named TTFinPostscript, which we've
successfully used to generate Chinese and Thai output. If you checkout
and compile the branch you can use the feature too. Although I believe
there are a few bugs which are fixed by a (as yet unapplied) patch in
Bugzilla. So if you run into a bug using the branch you will need to
apply the patch.


Ooh, that's promising. I'll check it out.

(On a side note, I wonder if fop'll move to git at any point?
Bugzilla-patch -  svn branch isn't the most fun workflow for
non-committer contributors).
I know there's a lot of folks in favour of GIT. There's been a lot of 
discussion on infra@ about moving Apache projects to GIT. Personally I 
don't understand why GIT helps with applying patches. It's easy to 
switch your SVN sandbox to the branch or create a new checkout from the 
branch. Applying the patch is just a question of right clicking on the 
patch file and choosing Apply Patch then running through the file list 
and clicking save if there are no conflicts. There shouldn't be any 
conflicts, Mehdi prepared the patch against the TTFinPS branch.


To me GIT seems overly complicated for the day to day tasks of 
developing against a handful of branches.


Thanks,

Chris




I'm working on implementing font subset merging in fop-pdf-image, or at
least font re-embedding, but it's quite complicated to do and will take
time, esp as I have to get this project out the door and working ASAP so
I can't put too much time into that right now. I seem to be hitting
another limitation whenever I find a workaround for one, though.

We've discussed this before. Mehdi sent Jeremias a patch offlist to
partially resolve this, but its only for fonts within the same input
PDF. If you have lots of smaller PDFs then the fonts won't be
de-duplicated. If you do get round to developing a more advanced
de-duplication then we'd love to see a patch :-) If you need Mehdi's
patch then feel free to yell and I'm sure Mehdi will happily post it
here.

I'd love a copy, yeah. I'm not sure how much it'll help, as font merging
across PDFs requires more information to be shared between image plugin
invocations than is currently possible and requires image plugins to be
notified just before the trailer and resource dict are written out, too.

The biggest problem will be the logic of actually merging subsets,
though. I'm finding it astonishingly hard to find good information on
how fonts are actually subset for PDF - the PDF ref doesn't say much at
all about how the actual embedded font file is altered for subsetting.

--
Craig Ringer

-
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: POstScrit Fonts

2012-01-19 Thread Chris Bowditch

On 19/01/2012 02:39, Craig Ringer wrote:

Hi Craig,

On 19/01/12 01:10, Chris Bowditch wrote:

On 18/01/2012 13:13, Robert Eberhardt wrote:

Hello Craig,

Hi Robert,


as far as i know a pfb, a afm and a pfm file is needed. At least
under fop 0.95. Did this change under fop 1.0.

FOP v1.0 does not introduce support for OTF CFF glyphs. This is a
feature we would like too! You mwill need to work around the
limitation using an approach like Craig suggested.

Unfortunately, as far as I can tell fop can also only handle simple
1-byte encoding fonts for PostScript output. You might be OK with this,
but if you need broad charset support like me you'll be stuffed.


That's true of FOP trunk, but we have developed advanced font support 
for Postscript in a branch named TTFinPostscript, which we've 
successfully used to generate Chinese and Thai output. If you checkout 
and compile the branch you can use the feature too. Although I believe 
there are a few bugs which are fixed by a (as yet unapplied) patch in 
Bugzilla. So if you run into a bug using the branch you will need to 
apply the patch.




I currently get to pick between:

- Abbreviated fonts without half the symbols I need that *do* work with
PostScript output; or
- Fonts that don't work with PostScript output but do contain all the
symbols I need

I'd love to use direct PDF instead of PostScript output, but I'm being
bitten by the inability to de-duplicate embedded subsets when PDFs are
inserted using fop-pdf-image. Distiller can de-duplicate subsets when
converting PostScript to PDF, so using fop's PostScript output lets me
work around that fop-pdf-image limitation. Or at least it would, if only
I could use the fonts I need with PS output...

I'm working on implementing font subset merging in fop-pdf-image, or at
least font re-embedding, but it's quite complicated to do and will take
time, esp as I have to get this project out the door and working ASAP so
I can't put too much time into that right now. I seem to be hitting
another limitation whenever I find a workaround for one, though.


We've discussed this before. Mehdi sent Jeremias a patch offlist to 
partially resolve this, but its only for fonts within the same input 
PDF. If you have lots of smaller PDFs then the fonts won't be 
de-duplicated. If you do get round to developing a more advanced 
de-duplication then we'd love to see a patch :-) If you need Mehdi's 
patch then feel free to yell and I'm sure Mehdi will happily post it here.




This one seems insoluible: If fop can't use 2-byte encoded fonts in PS
output, and can't dedupe subset fonts in PDF output, I'm stuck.


Thanks,

Chris


--
Craig Ringer





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



Re: POstScrit Fonts

2012-01-18 Thread Chris Bowditch

On 18/01/2012 13:13, Robert Eberhardt wrote:

Hello Craig,


Hi Robert,



as far as i know a pfb, a afm and a pfm file is needed. At least under fop 
0.95. Did this change under fop 1.0.


FOP v1.0 does not introduce support for OTF CFF glyphs. This is a 
feature we would like too! You mwill need to work around the limitation 
using an approach like Craig suggested.


Thanks,

Chris



   Best Regards Robert



On 01/18/2012 05:53 PM, Robert Eberhardt wrote:

Hello,

A Customer asked me to use a font called TradeGothic-BoldCondTwenty. I only 
found otf file downloads at the net for this font.

In fop 0.95 I get the exception OpenType fonts with CFF data are not supported, 
yet. So are ther any other possibilities to embed this font. excpet installing a 
pfb and a afm and a pfm file.


Use FontForge to convert it to a PFB and AFM pair (a Type 1 font). Itusually 
works extremely well.
--
Craig Ringer

--
Robert Eberhardt
e Business Solutions
Werum Software  Systems AG
Wulf-Werum-Straße 3 | 21337 Lüneburg
Tel. +49(0)4131/8900-194 | Fax +49(0)4131/8900-20
mailto:robert.eberha...@werum.de | http://www.werum.de

USt-ID-Nr. DE 116 083 850 | RG Lüneburg HRB 2262
Vorsitzender des Aufsichtsrats: Johannes Zimmermann
Vorstand: Hartmut Krome, Rüdiger Schlierenkämper, Hans-Peter Subel


-
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: Duplicate fonts in PDF when Distiller processes fop PostScript

2012-01-16 Thread Chris Bowditch

On 11/01/2012 04:46, Craig Ringer wrote:

Hi all


Hi Craig,


I'm struggling with font embedding in fop's PostScript output - it's
embedding multiple copies of fonts, just like pdf output with
fop-pdf-image, and this is causing some big problems with our RIP.

As a workaround for the issues I've been having with fop-pdf-image where
output PDFs land up with tens or hundreds of different embedded subsets
of the same font, I've been trying to see if chucking PostScript output
from fop through Adobe Acrobat Distiller would work better. In our
current (non-fop-based) workflow Distiller seems to coalesce fonts so
the documents that're produced contain only one copy of the font despite
the input EPSs each having their own embedded subset. I was hoping it'd
do the same for PostScript from fop.


In order to get FOP to de-duplicate resources in Postscript you need to 
have the following option enabled in the fop.xconf configuration file:


optimize-resourcestrue/optimize-resources

Have you enabled this option?

Chris



Unexpectedly, I get the same kind of font duplication when I process
fop's PostScript through distiller as I get from fop-pdf-image and the
pdf renderer. A side-by-side comparison of the PostScript from the old
system and from fop shows that the embedded EPS files are copied
verbatim in to the PostScript stream by both fop and the old system, so
it's not doing any kind of clever transformation to the EPS data its
self. Somehow, though, the old system manages to merge fonts, and fop's
PostScript output doesn't.

The old system uses similar-looking pre- and post- eps inclusion
procedures, but they're a little simpler. They don't try to compensate
for leaked stack entries like fop's seem to; they also don't mess with
`userdict', strokeadjust or overprint. There's certainly no font magic
in them. It's not that, though, as I get the same results if I replace
fop's pre- and post-eps procedures with those used in the old system.

I don't speak PostScript particularly well, and I'm beginning to really
bash my head against a wall here, so I thought I'd look for some advice.
Is merging fonts the norm with Distiller, or is it something magic that
the old system's PostScript file is doing? If it's the norm, what might
Fop's PostScript files be doing to block it? If it's not the norm, any
ideas how the old files might be doing the merging magic?

I can happily provide PostScript files from the old system to anyone
interested. The ones I'm working on are about 60MB each, but I can
produce cut-down one page ones that should be no more than 5MB
compressed. I don't know if I can legally provide excerpts of just the
PostScript procedures so I'm going to err on the side of providing a
whole file as a complete document.

If I/we can figure out what's different it'll hopefully allow font
merging in fop's PostScript output, so I'd be very happy to hear from
anyone else interested in the same problem.

I'm still working on PDF font merging in fop-pdf-image, btw, I was just
hoping this would be a faster track where I could let Distiller do the
merging for me. Merging fonts in fop-pdf-image will require me to extend
fop's core to allow image handlers etc to hook on events in the renderer
system so it's going to take patches to fop core and therefore time.

Ideas on what might be going on? Let me know if you want a copy of the
PostScript files involved.

--
Craig Ringer



-
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: Generating TIFF

2012-01-16 Thread Chris Bowditch

On 16/01/2012 14:27, Jonathan Levinson wrote:


Hi,



Hi Jonathon,

We are unsuccessfully trying to generate TIFF files using FOP. We are 
on Windows 7 64 bit with JDK 1.6.





I looked at the following:

https://issues.apache.org/bugzilla/show_bug.cgi?id=49681

It talks about using the JAVA ImageIO tool to enable TIFF generation 
but I’ve been unable to find a version of the ImageIO tools which 
works on Windows 7 64 bit.




FOP uses the Java library that ships with JAI Image Tools, i.e. 
jai_imageio.jar, so you can safely use the 32-bit version. We 
successfully use this on 64-bit systems. After all a JAR file is a 
collection of Java classes that is independent of platform specifics, 
like the number of bits used.


Thanks,

Chris


Does anyone have any advice on using FOP to generate TIFF files?

Where is a recent implementation of JAVA ImageIO which includes 
Windows 7 64 bit support?


Best Regards,

Jonathan Levinson

Senior Software Developer

Object Group

InterSystems

+1 617-621-0600

jonathan.levin...@intersystems.com




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



Re: pdf-image: Handling size blow-out caused by fonts, any way to coalesce/merge multiple subsets of same font?

2011-12-13 Thread Chris Bowditch

On 09/12/2011 06:57, Craig Ringer wrote:

Hi all



Hi Craig,

With pdf-image, is there any way to coalesce or merge multiple 
different subsets of the same font into a single font subset with no 
duplicate glyphs? Eg 50 different Helvetica (subset) instances into 
a single font in the output document?


Background:

I've just got Jeremias's pdf-image extension integrated into my code. 
It worked perfectly and immediately with little effort, which was 
delightful. Thankyou *VERY* much Jeremias for publishing that, it's a 
fantastic tool and I'd love to see it in fop core.


I'm encountering an unexpected issue with it, though: the PDFs 
produced by fop are *huge*. Examination with Acrobat Pro suggests that 
90% of the space is taken up by fonts. Looking at the font list, I see 
huge numbers of copies of Helvetica (subset), Helvetica Black 
(subset) etc. That makes sense, since all the input PDFs have fonts 
embedded, and many use the same fonts. However, I'm including up to 
1000 PDFs in each output PDF so the size adds up to prohibitive levels.


We also have the same problem and have been trying to find a solution; 
There is a cache within the PDF plug-in, but as soon as you change the 
way it works, memory usage seems to balloon. We did manage to 
de-duplicate the fonts though. We're still investigating the memory 
issue. If we find a solution we will let you know.




I'm wondering if there's any way to tell the pdf-image extension to 
embed certain fonts fully from supplied font files and avoid copying 
the matching subsets over from the input PDFs. If there isn't anything 
like that, any idea how practical it'd be?


For that matter, is the idea of collecting up all the subsets of a 
font as each pdf-image is embedded, then merging them into a single 
new embedded subset at the end completely insane? Or is it potentially 
practical? For that matter just keeping track of which glyphs are 
defined in each subset and building a new subset from a master font 
file at the end that included all those glyphs would help a lot.


I'm *really* hoping to avoid having to keep on using EPS input and 
PostScript output to PDF via Distiller, so I'm willing to put some 
work into this.


An alternative that we are planning on using if the memory issues with 
the plug-in can't be solved is to generate the PDFs from FOP separate to 
the static PDFs that you are importing and then use PDFBox in a post 
process to join the PDFs together at the end. Not ideal but it works.


Thanks,

Chris



--
Craig Ringer

-
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: PDF-image extension

2011-12-08 Thread Chris Bowditch

On 07/12/2011 14:54, Pascal Sancho wrote:

Hi,


Hi Craig, Pascal,



Le 07/12/2011 15:18, Craig Ringer a écrit :

Hi folks

I've just found out about Jeremias's PDF-image extension for fop. It's
ideal for my purposes, as I need to include pre-produced PDFs from
desktop publishing software inside an XSL-FO document that's output to PDF.

I'm curious: Is there a reason it hasn't been bundled into fop proper?

I guess there was originally a license limitation with embedded
dependencies.


That's right it introduces a dependency on PDFBox. IIRC, that wasn't an 
Apache project at the time the plug-in was written, and therefore an 
incompatible license to ship with FOP. Now that PDFBox has been moved to 
Apache, there is no reason I can think of not to move the plug-in code 
into FOP's main codebase.


Thanks,

Chris




While it has some significant limitations, so does much of fop, so I
wouldn't think that things like the PDF/X and PDF/A incompatibility
would be a roadblock - fop could just issue a warning if PDF images were
embedded in a PDF/X or PDF/A document.

Anyway, thanks very much Jeremias for that code - I'll be
enthusiastically trying it out soon. Hopefully it'll let me get away
from producing PostScript with embedded EPSs and chucking that through
Adobe Acrobat Distiller as I currently have to do to work around the
inability to inline PDFs, since rasterising PDF isn't acceptable for my
purposes.

Any chance this'll get into fop mainline where it'll get more testing
and better visibility?

--
Craig Ringer



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



Re: Fail to insert png image into pdf

2011-12-05 Thread Chris Bowditch

On 05/12/2011 10:30, Luis Bernardo wrote:

Hi Luis, Benjamin,


Probably a jar that is missing or not being found in the classpath. If
you search the archives you will find that this error has been
discussed in the past. There is no single solution but reading past
discussions may help you fix the issue.


You are on the right lines. Normally this means jai_imageio.jar is not 
available in the Classpath. FOP uses JAI ImageIO Tools for processing a 
lot of image formats.




On Sun, Dec 4, 2011 at 11:56 AM, Benjamin de Dardel
benjamin.dedar...@gmail.com  wrote:

Hi all,

As describe in this ticket, I try to transform docbook -  fo -  pdf :
https://sourceforge.net/apps/mantisbt/ant4docbook/view.php?id=5

fo file seems to be good, because I succeed in to execute the command line :
$ fop myfile.fo myfile.pdf

but when I use, fo ant task, I fail to do this : impossible to include
image. I always get an error :
   [fop] déc. 04, 2011 12:26:52 PM org.apache.fop.events.LoggingEventListener
processEvent
   [fop] Grave: Image not available. URI: img/forum-inscription1.png.
Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format
is not supported. No ImagePreloader found for img/forum-inscription1.png
(See position 6:264)



Thanks,

Chris

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



Re: Question about PDF API used in FOP v0.95

2011-11-16 Thread Chris Bowditch

On 15/11/2011 15:27, 刘寅 wrote:

 Hi Liu,

 Hello,now I am doing a research about document format transformation 
and I have got a lot of help from FOP. But there is a problem that I 
can't distinguish the PDF API from FOP source v0.95. I want to know how 
 many PDF APIs used in FOP v0.95, who are they and where are there(in 
which package)?
 I have successfully run all the examples in fop-0.95-src on my 
computer and read some of FOP API Document. Also I have tried to find my 
answers from FAQs but I can't find any. So could you help me or  give 
me some advices ?


FOP doesn't publish a API to manipulate PDF. FOP can generate a PDF from 
XSL-FO.If you just want to build a PDF from another source using Java 
API then take a look at the PDF Box project.


 Looking forward to your reply, thank you very much!
Sincerely,
liu Yin

Thanks,

Chris



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



Re: Using PCL renderer on Unix

2011-11-16 Thread Chris Bowditch

On 16/11/2011 04:28, Mrutyunjay wrote:

Hi,

I am trying to generate PCL output using FOP 1.0 on a Unix (HP-UX 11.23
Itanium) system.

I also need to use custom fonts in the PCL output, but the generated PCL does
not use the custom fonts.


The Custom fonts that you want to use with PCL need to be installed on 
the Operating System. In Windows this means copying the font to 
c:\windows\fonts. You need to speak to your local Unix Admin to help 
figure out how to do this on a Unix environment. Or maybe someone else 
on this list will know.




The same thing is working fine if I generate PCL on my Windows system.

Could you please let me know if it needs some specific configrtion for PCL
renderer to use custom fonts when executed in Unix environment.

Thanks,

Chris


Thanks  regards,
Mrutyunjay


-
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: Change Colorspace to CMYK

2011-11-08 Thread Chris Bowditch

On 04/11/2011 11:34, Michael Seeberger wrote:

Hi,


Hi Michael,



i'm trying to change the colorspace of my PDFs to CMYK but don't  know 
exactly how to do it.
In the Special Settings for the PDF Renderer i read about the 
output-profile-Tag but i don't know where
to get an *.icc-File or is there a way to use CMYK without specifiying 
the output-profile.


Are the PDFs you refer to generated by FOP? If so, you can use the 
rgb-icc function for color specification in your XSL-FO to use CMYK 
colours for text, borders and shading. Images are a separate matter and 
must have the colour profile set before FOP gets them.


The output-profile and .icc file is used for generating calibrated 
CMYK. When you use the rgb-icc function you refer to a profile name. If 
uncalibrated CMYK is sufficient you can reference the #CMYK pseudo 
profile for which no .icc file is required.




Or is there a way to set the colorspace programmatically with the 
fop-Factory?


thanks
Michael


Thanks,

Chris


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



  1   2   3   4   5   6   >