Re: PDF encryption and PDF image extension

2011-11-16 Thread Luis Bernardo
The examples/fo/basic/images.fo example works well if you add -noprint to fop. That is: cd examples/fo/basic fop -noprint -fo images.fo -pdf images-noprint.pdf The end result shows the images and has Print disabled. So I don't think it is a FOP issue Luis On 11/16/11 7:12 PM,

Re: Problem generating PDF from tifs with zero dpi

2011-11-23 Thread Luis Bernardo
Have you tried setting the dpi in the image to something meaningful? You can use Gimp for that (assuming it will not choke with such image): Image -- Print Size..., and then set Resolution. Luis On 11/23/11 4:51 PM, qns.java wrote: Hi I am using Apache FOP to generate PDF from jpegs and

Re: #x200b; (Zero width space) not work

2011-11-23 Thread Luis Bernardo
I see the ? in your source file (and in the generated PDF). Once I replace them by #x200b; they disappear from the PDF too. On 11/23/11 4:29 PM, pedro wrote: Hi i think i attach a bad file, but i see in my fo transformation that the ZWNJ is replaced by a ? Is possible is a codification

Re: Problem generating PDF from tifs with zero dpi

2011-11-24 Thread Luis Bernardo
I would use imagemagik then from the command line: convert old.tif -density 300 new.tif On Thu, Nov 24, 2011 at 10:46 AM, qns.java qns.j...@gmail.com wrote: Hi The problem is, there is a huge bulk of Images that have this problem and I only have read access to these Images.I get the Image

Re: Error when embedding PNG with iTXt metadata (text/international)

2011-11-25 Thread Luis Bernardo
What fop version are you using? I ran your example with both the trunk and the 1.0 version and in both cases the PDF was generated with the image embedded (fop-1.0 throws a warning but still generates the PDF with the image). Luis On Fri, Nov 25, 2011 at 7:47 AM, mheigl michael.he...@yahoo.de

Re: Error when embedding PNG with iTXt metadata (text/international)

2011-11-25 Thread Luis Bernardo
Ok, then what is the java version and OS you are using? If you look at the error it is not really a fop error but an error in one of the libraries used by fop. I do not see the error using java 1.6.0_23. On Fri, Nov 25, 2011 at 9:45 AM, mheigl michael.he...@yahoo.de wrote: I am using FOP

Re: Error when embedding PNG with iTXt metadata (text/international)

2011-11-25 Thread Luis Bernardo
I confirm that the error exists with java 1.5.0_22. So I think if you upgrade it should go away. On Fri, Nov 25, 2011 at 10:33 AM, Luis Bernardo lmpmberna...@gmail.com wrote: Ok, then what is the java version and OS you are using? If you look at the error it is not really a fop error

Re: Fail to insert png image into pdf

2011-12-05 Thread Luis Bernardo
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. On Sun, Dec 4, 2011 at 11:56 AM, Benjamin de Dardel

Re: Is there a master reference for FOP functionality?

2011-12-13 Thread Luis Bernardo
http://www.w3.org/TR/xsl/ On Tue, Dec 13, 2011 at 9:54 AM, Theresa Jayne Forster ther...@inbrand.co.uk wrote: I am trying to learn all the options available to FOP but there doesn’t seem to be a reference that tells you everything, The w3schools XSL-FO reference tells you what

Re: Is there a master reference for FOP functionality?

2011-12-13 Thread Luis Bernardo
Sorry, I think you probably meant FOP, not FO. Not everything in the spec is implemented in FOP, and I don't think there is a document that tells you what is implemented and what is not. Just by trying you will know. Luis On Tue, Dec 13, 2011 at 10:15 AM, Luis Bernardo lmpmberna

Re: More on external graphics

2011-12-15 Thread Luis Bernardo
On 12/15/11 7:44 PM, Samuel Penn wrote: On Thursday 15 December 2011 00:26:43 Luis Bernardo wrote: Your page definitions (margins, paddings, and so on) may be part of the problem. Negative margins in a page are suspicious to me... I probably had a reason for that, but I did that 10 years ago

Re: Problem with clippath

2011-12-18 Thread Luis Bernardo
You are missing the path / element... clipPath id=myClip path d=M 20 0 L 196 0 Q 216,0 216,20 L 216 32 Q 216,52 196,52 L 20 52 Q 0,52 0,32 L 0 20 Q 0,0 20,0 / /clipPath Then it works. See attached output (needs some tweaking...).

Re: Batik not loaded

2011-12-20 Thread Luis Bernardo
You are including images in SVG, correct? Then the error may be misleading what what you are missing is a different jar (probably JAI ImageIO), not the Batik jar. Try that... On Tue, Dec 20, 2011 at 8:27 AM, Lars Bjørndal l...@lamasti.net wrote: [Terence] On 12/19/2011 1:28 PM, Lars Bjørndal

Re: Image Print size and quality

2012-01-23 Thread Luis Bernardo
There is indeed a strange bug with the stock FOP 1.0 (and in trunk too...). Klearchos, if you set one of the dimensions to 90.01mm in the code below then you get the behavior you want. An easy workaround for now. On 1/23/12 1:21 PM, Klearchos Klearchou wrote: Pascal, I am using FOP 1.0

Re: How to get one section above another

2012-02-01 Thread Luis Bernardo
If the only thing you do in the body is to place the SVG then another option is to place it in the region-before, extend it to the bottom, and overlay the extra content in the body. Not perfect but I think it works. On Wed, Feb 1, 2012 at 8:56 AM, Pascal Sancho pascal.san...@takoma.fr wrote: Hi,

Re: xml processing instructions in textual content

2012-02-21 Thread Luis Bernardo
So, are you generating PDF from XML and XSL, or from FO? For instance, as an example, if I want PDF to show XML content, and I start from XML and XSL then I put this in the XML file: example ![CDATA[ ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;

Re: xml processing instructions in textual content

2012-02-22 Thread Luis Bernardo
? xsl:stylesheetversion=1.0xmlns:xsl=http://www.w3.org/1999/XSL/Transformxmlns:fo=http://www.w3.org/1999/XSL/Format; xsl:templatename=paraxmlns:fo=http://www.w3.org/1999/XSL/Format; xsl:value-ofselect=text()/ /xsl:template *From:*Luis Bernardo [mailto:lmpmberna...@gmail.com] *Sent:* Tuesday, February 21

Re: Different Page Layout every xx document sheet

2012-02-24 Thread Luis Bernardo
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

Re: xml processing instructions in textual content

2012-02-24 Thread Luis Bernardo
. *From:*Luis Bernardo [mailto:lmpmberna...@gmail.com] mailto:[mailto:lmpmberna...@gmail.com] *Sent:* Wednesday, February 22, 2012 4:41 PM *To:* fop-users@xmlgraphics.apache.org mailto:fop-users@xmlgraphics.apache.org *Subject:* Re: xml processing instructions in textual content OK, I

Re: Different Page Layout every xx document sheet

2012-02-26 Thread Luis Bernardo
Note: the seven_plus_pages page-sequence-master is there by mistake (and does nothing)... On 2/26/12 11:58 PM, Luis Bernardo wrote: Well, if you know the number of pages is less than 100 and want an ugly suggestion, then the attached one works... On 2/26/12 12:06 PM, Alexios Giotis wrote

Re: Generating a PDF by drawing to PDFDocumentGraphics2D

2012-02-27 Thread Luis Bernardo
Yes, it is possible but it is certainly an uncommon way to use the FOP code! Attached is an example, together with a font configuration file, and the output. The example is a slightly edited version of the ExampleJava2D2PDF.java of the emdedding package (in example/embedding/java). The

Re: WARNING: 1 link target could not be fully resolved and was now point to the top of the page or is dysfunctional.

2012-03-03 Thread Luis Bernardo
First you should test with FOP 1.0. If the problem is also present there please provide a (slimmed down if possible) example fo file that shows the issue and then it will be easier to help. On 3/3/12 8:48 PM, bonekrusher wrote: Hi, I am using FOP 0.95 and get the below error. I am using a

Re: OCRB fonts are not rendered in PCL output

2012-03-15 Thread Luis Bernardo
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). 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

Re: Fonts in config file

2012-04-16 Thread Luis Bernardo
Arial also has a bullet. Why not just use that since you already get the Ohm symbol from Arial? On 4/16/12 9:56 PM, froglander wrote: Thank you very much for that information. Would there be a way (and I've tried using the substitutions but with no luck so I assume I am doing something

Re: Fonts in config file

2012-04-17 Thread Luis Bernardo
Try to add something like this to the fonts element of your renderer. So for PDF that would be the fonts element inside renderer mime=application/pdf. font kerning=yes embed-url=/usr/share/fonts/truetype/msttcorefonts/Arial.ttf font-triplet name=Arial style=normal weight=normal/

Re: Fonts in config file

2012-04-17 Thread Luis Bernardo
You can do the same with auto-detect. Apparently you do not have the symbol.ttf file in your system. But you can replace it with other font, like Arial, the same way: font kerning=yes embed-url=/usr/share/fonts/truetype/msttcorefonts/Arial.ttf font-triplet name=Symbol style=normal

Re: foprc: 1: Syntax error: newline unexpected

2012-04-19 Thread Luis Bernardo
I think that's the problem too. I think that exception happens when you run FOP trunk with the xmlgraphics-common jar file from FOP 1.0 (note that the jar version went from 1.4 to 1.5). On 4/19/12 11:37 PM, Glenn Adams wrote: don't give up so easily... i took the effort to help you, let's see

Re: Chinese PDFs and non embedded fonts

2012-04-24 Thread Luis Bernardo
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,

Re: Single Line Blocks - Widows/Orphans/Keeps

2012-05-01 Thread Luis Bernardo
Can you provide the simplest but complete FO file that shows the problem you are facing? It will be a lot easier to help if we have an example. Also, please indicate the FOP version you are using. On 5/1/12 4:16 PM, DVezina wrote: This is my first post so I apologize if this problem is

Re: Write to Catalog using FOP

2012-05-03 Thread Luis Bernardo
Can you provide an example of a PDF generated with your PHP application? Is the the Java application using FOP starting from FO? On 5/2/12 8:22 PM, Joseph Speetjens wrote: Can anyone provide some guidance as to where to start to write to a Catalog object? We have applications written in PHP

Re: Write to Catalog using FOP

2012-05-07 Thread Luis Bernardo
As far as I know this is only possible to do out of the box with some extensions developed by Glenn Adams that I think have not been ported to the current FOP code base. Glenn, can you comment on this? There is more info here:

Re: getting error when use -print

2012-05-16 Thread Luis Bernardo
There is indeed a bug. For now you can do this: fop xslfo.fo -print 1 note: I don't know if it will print... I can confirm it does send the job to the printer, but in my case the page comes blank. the issue may be with the printer or with FOP... On 5/16/12 6:16 PM, pr4321 wrote: I am

Re: Table continuation headers

2012-06-26 Thread Luis Bernardo
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. On 6/25/12 4:34 PM, Stefan Hinz

Re: Help needed on Image rendering

2012-06-27 Thread Luis Bernardo
I used your *.xml and *.xsl files, fixed the image paths, and ran from the command line: macmaxi:code lbernardo$ ../../Documents/fop-1.0/fop -xml test.xml -xsl test.xsl -pdf test.pdf 21 | grep SEVERE | sort -u SEVERE: Couldn't find hyphenation pattern en SEVERE: Image not found. URI:

Re: FOP 1.0 -- some CGM graphics are not printing

2012-06-30 Thread Luis Bernardo
I am surprised that the images show up at all. Since, AFAIK, FOP does natively support CGM you must be using some Image IO library (see http://xmlgraphics.apache.org/fop/1.0/graphics.html#imageio). So the restrictions will come from that library. What are you using? On 6/29/12 9:11 PM,

Re: FOP 1.0 -- some CGM graphics are not printing

2012-06-30 Thread Luis Bernardo
I meant to write FOP does NOT natively support CGM On 6/30/12 7:45 AM, Luis Bernardo wrote: I am surprised that the images show up at all. Since, AFAIK, FOP does natively support CGM you must be using some Image IO library (see http://xmlgraphics.apache.org/fop/1.0/graphics.html#imageio

Re: Image URL issue rendering XML into PDF

2012-07-10 Thread Luis Bernardo
Error while loading the image indicates the error is during loading. So, it is not a URL issue but a problem with the image. If you provide the image we can confirm that. On 7/10/12 3:52 PM, michael.jerusa...@steria.com wrote: Hi everyone, I'm asking for a little help using FOP to render my

Re: PNG in FOP .95

2012-07-15 Thread Luis Bernardo
Looks like you are using an URL (HTTP ERROR 500...) to reference the image. Error 500 is an internal server error. Are you sure the issue is with FOP? On 7/15/12 10:45 AM, Peter D Sparkes wrote: Hi, I am using fop 0.95 (inside cocoon 2.1) and when I insert a png image in

Re: PNG in FOP .95

2012-07-23 Thread Luis Bernardo
is not finding the png codec. However, I don't know were it should be installed on the server or where to get it from Peter On 15/07/2012 18:55, Luis Bernardo wrote: Looks like you are using an URL (HTTP ERROR 500...) to reference the image. Error 500 is an internal server error. Are you sure

Re: Force Page Break in fo:list-item

2012-07-30 Thread Luis Bernardo
You probably need to upgrade to trunk. I know this works in trunk: list-block list-item . /list-item list-item break-before=page list-item-labellabel/list-item-label list-item-bodybody/list-item-body /list-item /list-block and it also works if you put

Re: PNG's embedded in PDFs, which are converted using PDF Image

2012-09-06 Thread Luis Bernardo
Transparency support is PostScript is very limited (this is not a FOP limitation but a PostScript limitation). If I understood well you are generating PostScript before sending to the printer. I think that is the issue. On Thu, Sep 6, 2012 at 11:07 AM, Martin Edge martin.e...@intellimail.com.au

Re: Output multiple pages to 1 PNG image

2012-10-09 Thread Luis Bernardo
If you have in mind multiple pages in one image the way TIFF does then that is not possible with PNG. There is a related format, MNG, that could do that, but FOP cannot output to that and in any case, your device would probably not be able to handle MNG. AFAIK, none of the browsers supports

Re: fo:retrieve-table-marker, exclude first page

2012-10-11 Thread Luis Bernardo
You don't need to have different markers. You can achieve that by having just one marker but have the content of the marker change from the first page to the second. See the attached example that I think does something similar to what you want. On Thu, Oct 11, 2012 at 12:44 PM, Bonekrusher

Re: Skipping page numbers on cover sheets

2012-10-13 Thread Luis Bernardo
If I understand what you are saying, for every chapter you use a new page-sequence. Then, all you have to do is set initial-page-number=1in the first chapter, and set initial-page-number=auto in the remaining chapters. On 10/13/12 11:28 PM, Samuel Penn wrote: On Saturday 13 October 2012

Re: How CMYK Color can be used in FO?

2012-10-15 Thread Luis Bernardo
Someone may correct me if I get this wrong, but I think the issue is that you are using cmyk() inside SVG, not FO. The error you get is thrown by Batik, not really FOP. I think the documentation needs to be clearer about this. You can check that by adding a background-color=cmyk(1, 0, 0,

Re: Fop 1.0 new install, get Can't find configuration file, aborting

2012-10-16 Thread Luis Bernardo
I assume you are running from the command line... Is that really the error message you get? I tried passing a non existing file to the -c switch and I don't get that (also used 1.0). I also do not find the message in the current source. FOP can use a config file but does not need one. So if

Re: Adobe reader doesn't display graphic data

2012-10-21 Thread Luis Bernardo
You are not the first one to try to use FOP in a non conventional way. But the fact that a PDF generated by FOP gives an error with Adobe Reader deserves some investigation. Can you provide your example source? On 10/17/12 3:32 PM, vic51 wrote: Hi, Thanks Pascal for your answer. I am new

Re: FOP 1.1 out of memory

2012-10-24 Thread Luis Bernardo
You can control how much memory the jvm uses by using the -Xmx flags. So I think you can try that first. The only situation where I know that FOP runs out of memory (also in a machine with 8 GB) is when you have a very long paragraph (and I mean a paragraph with 200K+ words). Then the line

Re: fop -version to include version number with svn_trunk?

2012-10-24 Thread Luis Bernardo
If you checkout from trunk shouldn't you get trunk? Unless you checkout one of the branches, but none of them are pegged to a particular version, AFAIK. I think they were created off trunk. In any case, looking at the Version.getVersion() in the current trunk, it seems that any branch

Re: fop-pdf-images

2012-10-30 Thread Luis Bernardo
] *Sent:* Tuesday, 30 October 2012 5:09 PM *To:* fop-users@xmlgraphics.apache.org; martin.e...@intellimail.com.au *Subject:* Re: fop-pdf-images Luis Bernardo is in the process of creating a new PDF images plugin that will interoperate with FOP 1.1, so please be patient (of course you are free

Re: fop-pdf-images

2012-10-30 Thread Luis Bernardo
I see it in the master mirror. Maybe you are being directed to a secondary mirror? In any case, the files should propagate in a few hours. On 10/31/12 12:12 AM, Martin Edge wrote: _is_ available, or will be? :) Seems pretty empty right now. From: Luis Bernardo [mailto:lmpmberna

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

2012-11-03 Thread Luis Bernardo
First, I understand why this issue is annoying. When I open the document Adobe defaults in my monitor to a 170% zoom and the problem is clearly visible. Incidentally the problem is not visible at 100%. But I looked at the document and can guarantee that the problem is with Adobe Reader. The

Re: Inter-cell lines no longer spurious pdf viewer problem?

2012-11-05 Thread Luis Bernardo
I assume you refer to the sidebar.fo sample. As you said, the lines are not visible in Adobe. They are visible in Mac's own Preview though. I looked at the *.fo and although I don't understand what you are trying to achieve I do see that the output in Preview is not what I would expect. Can

Re: Need help to get Arabic working with FOP

2012-11-08 Thread Luis Bernardo
an example is attached. in fact it was provided in this list by someone else by I am including also a fop.xconf file. On Thu, Nov 8, 2012 at 11:39 AM, Bernardo Gonzalez Kriegel bgkrie...@gmail.com wrote: Hello, I think that it's not so simple, but as Eduard pointed out you need: a) a correct

Re: Inter-cell lines no longer spurious pdf viewer problem? RESOLVED

2012-11-08 Thread Luis Bernardo
Rob, I looked with more time at this issue and I think that my previous statement that I was seeing lines where they should not be was incorrect. I think they should be there because they are in the *fo source! It is true that no lines appear with Adobe, but they are visible both with Mac's

Re: Inter-cell lines no longer spurious pdf viewer problem? RESOLVED

2012-11-08 Thread Luis Bernardo
mailto:rsarg...@xmission.com wrote: Please find attached a new fo which defines the sidebar for the left pages only. The blue column will show the four lines separating each row, at least in Evince 3.4.0 (using poppler/cairo(0.18.4)) On 11/08/2012 03:19 PM, Luis Bernardo wrote

Re: fop-pdf-images

2012-11-13 Thread Luis Bernardo
The new location for the fop-pdf-images plugin is https://dist.apache.org/repos/dist/dev/xmlgraphics/. Since the new website is in the process of going live this information will be added to it after that happens. On 10/31/12 12:05 AM, Luis Bernardo wrote: The new fop-pdf-images plugin

Re: linearized PDF

2012-11-17 Thread Luis Bernardo
FOP can't do that. I don't know about PDFBox but judging from the fact that there is a open issue regarding that (https://issues.apache.org/jira/browse/PDFBOX-19) probably it doesn't either. Supposedly QPDF does it. On 11/17/12 2:20 PM, polymorphisme wrote: Hello, I'm looking for if I can

Re: FOP 1.1 + latest PDF-image plugin not so happy

2012-11-20 Thread Luis Bernardo
Can you please provide an example that causes this? I did not see the issue in the tests I ran, but the examples were also quite simple. On Tue, Nov 20, 2012 at 2:14 AM, Martin Edge martin.e...@intellimail.com.au wrote: Hi, Have upgraded to FOP 1.1 and the latest build of the pdf-image

Re: FOP- Trunk - Duplicate LayoutManagers for class

2012-11-23 Thread Luis Bernardo
Can you provide an example? I just tried to put an inline inside a marker the way you describe and there were no problems. You also say this only happens after you pretty print but my example is already pretty printed. So there must be something else going on. So if you provide your example

Re: fox:external-document problems

2012-11-25 Thread Luis Bernardo
I tried your example in a Mac, with exactly the same version of Java you have, and it worked with no problems. I assume that by stand alone you mean command line (that is how I ran it). Did you get the fop-pdf-images plugin from https://dist.apache.org/repos/dist/dev/xmlgraphics/binaries/?

Re: fox:external-document problems

2012-11-25 Thread Luis Bernardo
) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 53 more Am I missing something else? Thank you, Jonathan On Nov 25, 2012, at 4:29 PM, Luis Bernardo wrote

Re: FOP- Trunk - Duplicate LayoutManagers for class

2012-11-25 Thread Luis Bernardo
Thanks. Yes, I can reproduce it. While this is investigated I suggest that either you (a) place the inline around the retrieve table marker (instead of the marker), or (b) remove the spaces/breaks between /fo:inline and /fo:marker. On 11/23/12 11:45 PM, Bonekrusher wrote: Here is another

Re: fox:external-document problems

2012-11-26 Thread Luis Bernardo
the old site with information about fop-pdf-images and instead add it to the new site once it becomes available. Since that has happened now expect to see the information there in a couple of days. Thank you, Jonathan On Nov 25, 2012, at 4:59 PM, Luis Bernardo wrote: Looks like the jars

Re: Printed blank page when running example class ExampleFO2JPSPrint.java

2012-12-03 Thread Luis Bernardo
Please try with trunk. On 12/3/12 11:26 AM, Massimo wrote: Hi. I changed ExampleFO2JPSPrint.java as you recommended and it prints (Sytem.out.println) values only if i change target resolution: *userAgent.setTargetResolution(200);* but the printed page is blank yet. My SO is XP Sp3 and FOP

Re: Apache™ FOP: Hyphenation license

2012-12-14 Thread Luis Bernardo
FOP does not do hyphenation by itself. For that you need to have the fop-hyph.jar (that you can download from http://offo.sourceforge.net/hyphenation/) present. So the license is the one in that same site (there are different licenses for different languages). On 12/14/12 6:59 PM, Support

Re: How to find out why fop needs a certain font?

2012-12-19 Thread Luis Bernardo
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: How to find out why fop needs a certain font?

2012-12-20 Thread Luis Bernardo
Original Message Subject:Re: How to find out why fop needs a certain font? Date: Thu, 20 Dec 2012 23:32:04 + From: Luis Bernardo lmpmberna...@gmail.com To: Alexey Neyman sti...@att.net With SVG, fonts are more complicated. The font used in the SVG needs

Re: targetrenderer set to MIME_PNG fails in fop =1.0 but succeeds in 0.95

2013-01-07 Thread Luis Bernardo
Can you start with the embedding.ExampleFO2PDF.java example (in examples/embedding/java), change the mime type to MIME_PNG (and rename all the PDFs to PNGs) and confirm that the new example does generate a PNG file? I just tested that with trunk and it worked. On 12/27/12 3:02 PM, Milo van

Re: Fwd: FOP 1.1 - Unable to copy/paste text is not working

2013-01-17 Thread Luis Bernardo
does your editor know about the font you are using? if you highlight the text in the editor and set the font to Arial do you see any glyph? I tried your example but with Arial, copied and pasted to OpenOffice and I am able to see the glyphs. now, not that this makes a difference for your

Re: how to merge PDFs

2013-01-28 Thread Luis Bernardo
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

Re: Fwd: FOP 1.1 - Unable to copy/paste text is not working

2013-01-30 Thread Luis Bernardo
The two lines look the same to me. Maybe you copied and pasted the same content twice? The only reason I suggested Arial was because I didn't have your font and I know Arial has Arabic glyphs and it is known by all text editors. If you use a text editor (say, openoffice) and export to PDF

Re: FOP 1.1 - How to stop DCTDecode compression for images?

2013-01-30 Thread Luis Bernardo
Are you using JPEG? Are you specifying any content-width|height for the image? And source-resolution? When you say the image quality is lost how do you see that? JPEG images are compressed and that is the filter you see below. Setting the filter to null means no further filter will be

Re: PNG files takes more size as compare to JPG in FOP 1.1 PDF

2013-02-01 Thread Luis Bernardo
the images have different pixel size, or dpi. 72 dpi for the PNG and 96 dpi for the JPEG. you can check (and fix) that with Gimp or other image editor. On Fri, Feb 1, 2013 at 4:14 AM, Neeraj neerajii...@gmail.com wrote: -- Forwarded message -- From: Neeraj

Re: FOP 1.1 - Use Transparent image as Non-Transparent

2013-02-13 Thread Luis Bernardo
I am not familiar with that feature but I would expect that if your image is GIF and the feature is for PNG then it will not work. Why not convert the image to one without transparency outside FOP? If FOP 0.20.5 was not not handling transparency it is probably because it had not been

Re: TrueType fonts with Fop Postscript

2013-02-17 Thread Luis Bernardo
\n\013\f\013\001\r\016\f\003) t 1 0 0 -1 0 67.374 Tm (\017\020\021\022) t ET GR GR showpage ** Christian Pestel christian.pes...@orange.fr mailto:cpes...@bdoc.com *From:* Luis Bernardo mailto:lmpmberna...@gmail.com *Sent:* Saturday, February 16, 2013 12:10 AM *To:* fop-users

Re: Fop trunk unable to load configuration file correcly

2013-02-26 Thread Luis Bernardo
Yes, it is a bit different now. Something like this should work. String confFile = /path/to/fop.xconf; FopFactoryBuilder builder = new FopConfParser(new File(confFile)).getFopFactoryBuilder(); // set here needed features if needed using

Re: FOP Trunk - URI Resolution

2013-03-25 Thread Luis Bernardo
Try something like this: String confFile = /path/to/fop.xconf; FopFactoryBuilder builder = new FopConfParser(new File(confFile)).getFopFactoryBuilder(); On 3/24/13 1:03 AM, Björn Häuser wrote: Hi, thank you all for patience and work for Apache FOP. I recently switched to the trunk version

Re: referencing fonts in pdf and embedding them in pdf-a with one fop.xconf

2013-03-25 Thread Luis Bernardo
Why is it important to have just one config file? When generating PDF FOP subsets TTF by default, unless the fonts are explicitly referenced (in which case references them) or embed-mode="full" is specified (in which case they are fully embedded).

Re: FopFactory in Trunk

2013-04-09 Thread Luis Bernardo
Yes, this change was major and happened many months ago. You have to do something like this: String contFile = /path/to/fop.xconf; FopFactoryBuilder builder = new FopConfParser(new File(confFile)).getFopFactoryBuilder(); builder.setStrictFOValidation(false);

Re: FopFactory in Trunk

2013-04-09 Thread Luis Bernardo
I assume you refer to the jai_imageio.jar file. FOP does not depend on a particular version. If the jar is available FOP may use it for some particular formats. If it is not available, then FOP falls back to the default image handler, if there is one, which may work or not (i.e., may work for some

Re: FopFactory in Trunk

2013-04-10 Thread Luis Bernardo
PNG is a format FOP can handle well without the need fop the jai_imageio.jar. In any case, the presence of the jar in the classpath should not cause a problem. I just tried your image with trunk and had no problems. I assume you have no constraints in the conf file (if using one) regarding image

Re: error with FOP1.1 (java.lang.AbstractMethodError: org.apache.batik.dom.AbstractDocument.getDocumentURI())

2013-04-15 Thread Luis Bernardo
Looks like no one replied to your question. Sorry for the delay... There is an example in the code that shows how to do what you ask: embedding.ExampleXML2PDF under examples/embedding/java. On 4/8/13 5:15 PM, pepgrifell wrote: Hi, I have update fop.jar from version 0.95 to 1.1. I have

Re: FOP : PDF Rendering Issue

2013-04-16 Thread Luis Bernardo
Are you getting this when using Eclipse? If so, the issue is stale metadata in Eclipse. The easiest solution is to delete the project and import it again. If you get this on the command line please provide an example and information about your running environment. On Tue, Apr 16, 2013 at 8:23

Re: Error after updating trunk

2013-04-16 Thread Luis Bernardo
You need to clean and build again on the command line. If using Eclipse, do a refresh (after the build on the command line) and build again. On Tue, Apr 16, 2013 at 11:19 AM, Bonekrusher djs...@yahoo.com wrote: Hi, After update my local copy of trunk this morning and rebuilding FOP I get

Re: Error after updating trunk

2013-04-16 Thread Luis Bernardo
the error occurs if the graphic is missing or if it s present? is the graphic in static content? does it fit in the side region? it looks like you have overflow in the side region, which uses a new event producer method added to trunk yesterday. I still think the issue can be fixed by a clean +

Re: FOP memory growing with a lot of page-sequences

2013-04-18 Thread Luis Bernardo
You can't. Although it is true that memory is regained when a page is output, there is information that needs to be kept till the end, and that information keeps growing as you add pages. For instance, byte offsets for the objects need to be stored till the end to build the xref table, and

Re: Use of Type1 fonts without metrics information

2013-04-29 Thread Luis Bernardo
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. On Mon, Apr 29, 2013 at 10:16 AM, Luca Bellonda lbello...@gmail.com wrote: Hi to all, is there any

Re: SEVERE: Exception java.lang.IllegalArgumentException: min (1650) opt (0)

2013-05-04 Thread Luis Bernardo
For now remove the attribute word-spacing.minimum from the fo file. That fixes it. Then submit a bug report with your example attached. Apparently the code expects the optimum and maximum to be also specified if the minimum is and in this case they are not. On 5/3/13 7:34 PM, Vostokov,

Re: FO to PDF conversion failing for the new Turkish Lira Symbol.

2013-05-15 Thread Luis Bernardo
Use fop-1.1. That will fix the issue. fop-1.0 does throw the same exception you saw, so 0.95 must do the same. On Wed, May 15, 2013 at 7:28 AM, Ashok Kumar ashok.veerlap...@gmail.comwrote: Chris Bowditch bowditch_chris at hotmail.com writes: Hi Ashok, Can you let us know which

Re: Borders and Padding in TableRows

2013-05-16 Thread Luis Bernardo
It does not work. Can you provide a link to the forum discussion where you saw that? On 5/16/13 12:34 PM, Harshini Madurapperuma wrote: Hi All, Currently I'm using FOP 0.20.5 version which is quite old. Anyway in the forums I came across that borders for TableRow works when the property

Re: AFP images

2013-05-17 Thread Luis Bernardo
This is a known issue (at least, I am familiar with it). I assume you are using jai_imageio.jar. The behavior is due to a bug in JAI (see http://www.java.net/node/702556) that causes the images to be treated as RGB + Alpha. The reason you do not see the problem when producing PDF is due to

Re: AFP images

2013-05-20 Thread Luis Bernardo
Thank you for an excellent set of test cases. I am afraid I know of no workaround but I will investigate. On 5/20/13 10:11 AM, Luca Bellonda wrote: 2013/5/17 Luis Bernardo This is a known issue (at least, I am familiar with it). I assume you are using jai_imageio.jar. The behavior is due

Re: FOP 1.1: Rendering problem with overflowing table cells

2013-05-29 Thread Luis Bernardo
See this thread: http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/201302.mbox/%3c512d5b3c.8060...@gmail.com%3e On Wednesday, May 29, 2013, Ulrich Mayring wrote: Ooops, the newest Nightly Build has changed the Interface of FopFactory and FontManager. All the setter-methods in

Re: reduce size of PDF generated with FOP

2013-05-31 Thread Luis Bernardo
An image is only embedded once in PDF if you always refer to it by the same URI, no matter how many times you refer to it. So I don't think that is the issue. Can you send an simple example of a PDF with just an image generated by Framemaker and by FOP so that we can investigate the difference.

Re: Conversion of PDF to Postscript Compatible Asset

2013-05-31 Thread Luis Bernardo
Can you sends us the original example so that we can take a look? There have been many recent fixes regarding fop-pdf-images and pdfbox and issues related to images. But we are aware of bugs in pdfbox that we haven't investigated, let alone addressed... If the shading that you describe is due to

Re: reduce size of PDF generated with FOP

2013-06-04 Thread Luis Bernardo
Very likely the pdfbox merge utility does not merge the fonts used in the documents. So if you have the same font used in two documents the font will be embedded twice in the merged document. If you have many fonts the size can grow considerably. If you think the difference in size in the

Re: EventListener - SEVERE events

2013-06-04 Thread Luis Bernardo
Not all messages are sent as events, yet. The one you encountered is an example, as you can check by looking at the source. On Tue, Jun 4, 2013 at 11:41 AM, Bonekrusher djs...@yahoo.com wrote: Hi, I have an EventListner that listens for events and I am able to listen and catch Info, Warning,

Re: [jira] [Commented] (FOP-2269) fo:marker for subtotals by page

2013-06-26 Thread Luis Bernardo
to write the explicit calculation, i.e., i - a + A. I hope the example is clear. On 6/27/13 12:20 AM, Luis Bernardo (JIRA) wrote: [ https://issues.apache.org/jira/browse/FOP-2269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13694347#comment-13694347

Re: Poor quality image scaling

2013-07-02 Thread Luis Bernardo
Your screen capture is not half an inch, so we don't know where the scaling comes from. Have you tried to zoom in with your PDF viewer? If you still have questions please provide original image, your fo file, any fop.xconf if using it, and the generated pdf. I was unable to reproduce the issue

  1   2   >