Re: AFP special characters from Windows TTF fonts

2014-04-05 Thread Mehdi Houshmand
Hey Rob, It's generally best practice to ask fop-specific questions the fop-users mailing list, that way you'll get much better support by the community at large rather than a single person. As to your question, honestly I've barely worked on AFP or FOP for that matter in a while and wouldn't be

Re: java.lang.IllegalArgumentException: 14 when processing math

2012-11-09 Thread Mehdi Houshmand
Hi Tyler, The standard protocol when asking the community for help is to provide the FO (FOP's input XML file) and any fonts/configuration settings you have. We can't really help you without those pieces of information; when you upload them, we can start helping you with your problem. Thanks

Re: post 1.1 config changes

2012-11-08 Thread Mehdi Houshmand
Hi Jason, The backwards incompatibility of this API has been discussed quite a lot, and I'm sorry you're having these issues. If you're looking for examples for how to configure the new FopFactory, I'd say look in the source [1], there are plenty of examples on how to do it, there's also quite a

Re: post 1.1 config changes

2012-11-08 Thread Mehdi Houshmand
question is whether anyone has produced/shared configuration code which works with both current SVN head, and FOP 1.1 ie using reflection as necessary. If not, we may just wait for the next release of FOP, and support only that. thanks .. Jason On Thu, Nov 8, 2012 at 8:44 PM, Mehdi

Re: Need help to get Arabic working with FOP

2012-11-08 Thread Mehdi Houshmand
Hi Bernardo, By the looks of the exception you've got an error in the FO you're creating, which probably has nothing to do with Arabic support. If you're wondering which fonts to use, I'd suggest you read the Apache FOP website, it should give you all the information you need [1]. As for your

Re: Need help to get Arabic working with FOP

2012-11-08 Thread Mehdi Houshmand
(BTW, the links on the page are wrong) produces this error: org.apache.fop.apps.FOPException: The font trado.ttf is not embeddable due to a licensing restriction. Thank you, Bernardo -- Bernardo Gonzalez Kriegel bgkrie...@gmail.com On Thu, Nov 8, 2012 at 9:12 AM, Mehdi Houshmand med1

Re: FOP 1.1 out of memory

2012-10-24 Thread mehdi houshmand
Hi Stefan, Thanks for your support, people have worked hard to give you that warm fuzzy feeling, so it's nice to know that work is appreciated. As for your FO, you need to provide a little more information: 1) Tables in the FO tend to consume quite a lot of memory, especially when they span

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

2012-10-24 Thread mehdi houshmand
I think this makes sense, I don't, however, know how hard it is to implement going backwards. Also, since we've just voted and released the 1.1 version, I don't think this warrants a 1.1.1 release so it might be a while before this fix is implemented in a released JAR. But it's definitely a good

Re: SVG text misplaced

2012-09-25 Thread mehdi houshmand
On 24.09.2012 06:14, mehdi houshmand wrote: Ok... This one's a tricksy little badger. Basically, because you're using a font-size that's so large (especially when you convert pts - mpts as FOP works in) we're basically seeing an integer-overflow issue: 2579 pts = 2579000 mpts 833mpts

Re: Arab docbook

2012-09-25 Thread mehdi houshmand
communication in Apache FOP. So far I am informed about Apache FOP, the Problem with Bidi text is now solved in Apache FOP version 1 or in the current beta version of fop. Please read contact the apache fop developers, Mr. Mehdi Houshmand may have more update infos about this issue. Best regards, Kia

Re: SVG text misplaced

2012-09-24 Thread mehdi houshmand
Hi Matthias, I've just taken a quick look at this and I'm not really sure what you're attempting to do here. Why have you made the viewBox so large and then put scale to fit on the fo:instream-foreign-object? You can reduce the size of the view box such that you don't need to scale-to-fit the SVG

Re: SVG text misplaced

2012-09-24 Thread mehdi houshmand
help changing your document to be a bit more FOP-friendly, please feel free to ask any further questions and I/we will try and help as much as we can. Hope that helps, Mehdi On 24 September 2012 09:38, mehdi houshmand med1...@gmail.com wrote: Hi Matthias, I've just taken a quick look

Re: nonexistent method signature used in examples (FopFactory.newInstance(URI)

2012-09-24 Thread mehdi houshmand
Hi Michael, FOP trunk has had some changes made to it's public API, the link you posted is from trunk and not FOP1.1 RC1. The link below is the 1.1rc1 version of that same file.

Re: PDF Image / PDF Box / Fop

2012-09-11 Thread mehdi houshmand
Hi Martin, Which version of the pdf-image plugin did you use? Looking at that error it looks as if you've got incompatible binaries. The FOP1.1rc1 requires the latest pdf-image plugin, I've tested it with a few documents and works fine, so try checking out trunk and compiling it. Hope that helps

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

2012-09-06 Thread mehdi houshmand
Hi Martin, I think we had a look at this issue at some point last year, as far as I remember, transparencies aren't very well supported with the pdf-image plugin. I think the best way to implement them would be to use transparency groups to that you can better control layered transparencies.

Re: Upgrade to fop trunk and URI resolving

2012-08-15 Thread mehdi houshmand
Glenn, I made the necessary changes. I must admit, I didn't realise the consequences of changing the serialized form of the FontCache class so thank you for pointing that out. Mehdi On 10 August 2012 16:14, mehdi houshmand med1...@gmail.com wrote: Hi Matthias, You were, of course, correct

Re: Upgrade to fop trunk and URI resolving

2012-08-10 Thread mehdi houshmand
Hi Matthias, You were, of course, correct and I've made the necessary change as well as some other improvements. Glenn, I'll take a look at this serialization ID next. Mehdi On 8 August 2012 08:30, mehdi houshmand med1...@gmail.com wrote: Ok, I'll do that at the same time. Thanks Glenn

Re: Upgrade to fop trunk and URI resolving

2012-08-08 Thread mehdi houshmand
Ok, I'll do that at the same time. Thanks Glenn On 8 August 2012 07:49, Glenn Adams gl...@skynav.com wrote: On Wed, Aug 8, 2012 at 12:09 AM, mehdi houshmand med1...@gmail.comwrote: Do you have any more information than that? o.a.f.fonts.FontCache has changed in that URIs, which were

Re: Upgrade to fop trunk and URI resolving

2012-08-07 Thread mehdi houshmand
is not read from the this.fontInfoCfg element as it should be. Could you please fix that? Thanks, Matthias On 26.07.2012 11:03, mehdi houshmand wrote: Hi Matthias, I've added some javadocs that may help to enlighten devs about how to do some of the URI schema features you were asking about

Re: Upgrade to fop trunk and URI resolving

2012-07-30 Thread mehdi houshmand
of us are particularly happy but begrudgingly accept with a healthy amount of resentment ;) Mehdi On 26 July 2012 22:31, Jeremias Maerki d...@jeremias-maerki.ch wrote: (responded on fop-dev) Jeremias Maerki On 26.07.2012 20:17:17 mehdi houshmand wrote: I appreciate

Re: Upgrade to fop trunk and URI resolving

2012-07-30 Thread mehdi houshmand
have a great deal of experience with these XML libraries other than the fairly basic use-cases. I appreciate that the DOMSource serialization would be performance costly, but we already knew that... Mehdi On 30 July 2012 08:52, mehdi houshmand med1...@gmail.com wrote: Hi Jeremias, I'm sorry

Re: Upgrade to fop trunk and URI resolving

2012-07-26 Thread mehdi houshmand
That was supposed to say RESOLVER FOR GIVEN SCHEMA. On 26 July 2012 08:46, mehdi houshmand med1...@gmail.com wrote: Hi Matthias, Don't be so quick to thank us for this work, you may retract that once you start using it ;). 1. Good question. The way it works is that you give the FopFactory

Re: Upgrade to fop trunk and URI resolving

2012-07-26 Thread mehdi houshmand
to use a custom scheme (e.g. myscheme://imageid) in order to load images instead of using HTTP. That wouldn't be possible without your change. So thanks! Best regards, Matthias On 24.07.2012 04:23, mehdi houshmand wrote: Sorry Matthias, I'm an idiot. Not defining a font-base wasn't an over

Re: Upgrade to fop trunk and URI resolving

2012-07-26 Thread mehdi houshmand
information to put in a javadoc... Thanks Mehdi On 26 July 2012 08:48, mehdi houshmand med1...@gmail.com wrote: That was supposed to say RESOLVER FOR GIVEN SCHEMA. On 26 July 2012 08:46, mehdi houshmand med1...@gmail.com wrote: Hi Matthias, Don't be so quick to thank us for this work, you may

Re: Upgrade to fop trunk and URI resolving

2012-07-26 Thread mehdi houshmand
I appreciate that there are inconveniences, but if you're just looking for backwards compatibility, the changes should be, for the most part, fairly minor. I'm sorry we haven't been able to convince you of the benefits of the changes, that's on me as the lead on this. I'm not sure really what

Re: Upgrade to fop trunk and URI resolving

2012-07-24 Thread mehdi houshmand
Hi Matthias, The way we've implemented the interface, you can be completely in control of how HTTP is authenticated by implementing o.a.f.apps.io.ResourceResolver[1] and giving it to the FopFactoryBuilder/FopConfParser[2]. As for the base URI for fonts, you can set this in the fop-conf, we

Re: Upgrade to fop trunk and URI resolving

2012-07-24 Thread mehdi houshmand
(it has mutable members) and we can make certain assertions on the immutability of the members. Hope that makes our intentions clear, Mehdi On 24 July 2012 07:35, mehdi houshmand med1...@gmail.com wrote: Hi Matthias, The way we've implemented the interface, you can be completely in control

Re: fop and hyphenation produces NullPointerException

2012-07-23 Thread mehdi houshmand
Hi Wilhelm, I've created a bug[1] to track this issue, I'll investigate and post any findings. Mehdi [1] https://issues.apache.org/bugzilla/show_bug.cgi?id=53586 On 21 July 2012 17:00, Wilhelm wilhelm.me...@fh-kl.de wrote: Am 21.07.2012 14:22, schrieb mehdi houshmand: Hi, This looks

Re: fop and hyphenation produces NullPointerException

2012-07-23 Thread mehdi houshmand
not an actual fix for this bug.) Hope that helps Mehdi On 23 July 2012 12:23, Pascal Sancho psancho@gmail.com wrote: Hi, I think this is the same as another issue [1]. [1] https://issues.apache.org/bugzilla/show_bug.cgi?id=48765 2012/7/23 mehdi houshmand med1...@gmail.com: Hi Wilhelm

Re: fop and hyphenation produces NullPointerException

2012-07-21 Thread mehdi houshmand
Hi, This looks like the NPE is occurring during layout, could you please provide the FO that causes this issue? If you could, try and cut down the FO as minimal as possible, just so that whomever looks at this issue can find the problem as quickly as possible. Thanks Mehdi On 21 July 2012

Re: Fonts not found in Red Hat Linux

2012-07-19 Thread mehdi houshmand
Hi Roberto, RHEL has quite expansive documentation[1] and I'd suggest looking there and Google should cover most of your questions. The synaptic manager is an Ubuntu (maybe Debian) application for managing apt (the package installation manager), RHEL's apt-equivalent is Yum, though I don't know

Re: Fonts not found in Red Hat Linux

2012-07-19 Thread mehdi houshmand
the documentation of a command. On 19 July 2012 08:08, mehdi houshmand med1...@gmail.com wrote: Hi Roberto, RHEL has quite expansive documentation[1] and I'd suggest looking there and Google should cover most of your questions. The synaptic manager is an Ubuntu (maybe Debian) application for managing apt

Re: Setting encryption options on foUserAgent

2012-05-09 Thread mehdi houshmand
Hi Jonathan, You can get the render options (FOUserAgent.getRenderOptions()) and set the encryption parameters by putting an instance of o.a.f.pdf.PDFEncryptionParams in there as such: userAgent.put(encryption-params, new PDFEncryptionParams()); I appreciate none of this is very obvious,

Re: Fop Performance degradation after upgrading from jdk 6 u18 to u19

2012-04-24 Thread mehdi houshmand
Hi, I'll address your concerns inline: 2012/4/24 Αναστάσιος Χαρούλης tcharou...@gmail.com Hello, We are using Apache FOP 1.0 to create Postscript documents from xml files. After upgrading the Java Virtual Machine from 1.6 update 18 to 1.6 update 19, we noticed important performance

Re: Chinese PDFs and non embedded fonts

2012-04-24 Thread mehdi houshmand
Hi, Unless you know this specific font is embeddable (which I don't), that's not ubiquitously true. There is a flag in the font program which indicates whether it is embeddable or not [1]. If you open it an font viewer, it should tell you the restrictions set. [1]

Re: Trouble with setting font base url which include space character

2012-04-18 Thread mehdi houshmand
Hi Rob, Firstly, we are working to change how fop handles file access and I/O in general. I should note, that we're unifying all resource acquisition to resolving URIs, not URLs. The two concepts differ, and it's non-trivial. See http://wiki.apache.org/xmlgraphics-fop/URIResolution and

Re: Trouble with setting font base url which include space character

2012-04-18 Thread mehdi houshmand
to the API change. But I'm not sending .../acres install/..., rather (I believe) I'm sending .../acres%20install/... as the string URL. Is that not the correct format? rjs On 04/18/2012 01:43 AM, mehdi houshmand wrote: Hi Rob, Firstly, we are working to change how fop handles file access and I

Re: Trouble with setting font base url which include space character

2012-04-18 Thread mehdi houshmand
: Thanks Mehdi, looking forward to the API change. But I'm not sending .../acres install/..., rather (I believe) I'm sending .../acres%20install/... as the string URL. Is that not the correct format? rjs On 04/18/2012 01:43 AM, mehdi houshmand wrote: Hi Rob, Firstly, we are working

Re: FOP 0.95 font problem

2012-03-20 Thread mehdi houshmand
Hi Khar, Firstly, the metrics XML file is deprecated in FOP 0.95 so it's not necessary, secondly, take a look at the font embedding documentation ( http://xmlgraphics.apache.org/fop/trunk/fonts.html) and it might give you a better idea of how to configure FOP. Normal issues are users are

Re: AFP FOP Font Problem

2012-02-28 Thread mehdi houshmand
Hi Sam, For future notice, could you avoid adding a new problem to someone else's thread? It just makes it confusing for those trying to help you. As for AFP fonts, you shouldn't need to install them, but you will need to configure them as per the documentation

Re: Producing archiving FOP intermediate format

2012-02-14 Thread mehdi houshmand
Hi Alex, I'm not 100% what you're asking here, I must say. If it's more of a general question of backward compatibility, then I think we get back to a topic of discussion we've been having lately about FOPs API. I'd argue that IF itself is part of FOPs API (though I wouldn't make the same

Re: Apache FOP extension to embed SVG QRCode

2012-02-13 Thread mehdi houshmand
Hi Dmitriy, I'm not sure whether you're aware of this, but QR Codes are now available with Barcode4j trunk (http://barcode4j.sourceforge.net/) which also uses Zxing. I haven't taken a look at your code, but I'd suggest taking a look at what Barcode4j does, we have tested it here and it works

Re: [FOP 1.0] metrics font, glyph and unicode

2012-01-27 Thread mehdi houshmand
Hi, Note: FOP 1.0 deprecates the font metrics file, it's no longer necessary. However, as for bf, gi is the glyph start index, us = unicode start index and ue is unicode end index. See http://www.microsoft.com/typography/otspec/cmap.htm for a description of the meaning of these values. Hope

Re: [FOP 1.0] metrics font, glyph and unicode

2012-01-27 Thread mehdi houshmand
Have you tried with FOP trunk? It could be a bug that's already been fixed. If not, could you fill out a bugzilla entry please? Thanks Mehdi On 27 January 2012 13:45, Theresa Jayne Forster ther...@inbrand.co.uk wrote: I have found a problem with some fonts without metrics files I have a

Re: POstScrit Fonts

2012-01-20 Thread mehdi houshmand
Hi Craig, We've sent a patch fixing this problem to Jeremias, but we've forked both FOP and Jeremias' plugin from the open versions so the code bases are a little different. If you really want, we can send a copy of the patch and you can make the necessary adjustments to the source, however I

Re: POstScrit Fonts

2012-01-19 Thread mehdi houshmand
Hi Craig, I don't know if you've already looked at this, but these are specs you need to look at: http://www.adobe.com/devnet/font.html The 5014 CIDFont files spec is particularly important. Hope that helps Mehdi On 20 January 2012 01:59, Craig Ringer ring...@ringerc.id.au wrote: On

Re: SVG to AFP conversion

2011-12-06 Thread mehdi houshmand
Hi Alex, My apologies for the slow response, however, because SVG goes through Batik there are issues with fonts, as you already know. We are currently looking into the issue of AFP fonts within embedded SVG. I'll post back when we have some more information. Mehdi On 6 December 2011 15:32,

Re: Configuring fonts for an embeded FOP 1.0

2011-10-26 Thread mehdi houshmand
Hi Heiko, May I suggest, because working with System fonts isn't always intuitive, that you load fonts explicitly, that way, if something doesn't work. You always know it's a config issue not some System magic. Mehdi On 26 October 2011 15:54, Pascal Sancho pascal.san...@takoma.fr wrote: Hi,

Re: Default XSL Stylesheet for PDF?

2011-10-25 Thread mehdi houshmand
Hi Jeff, FOP is an FO processor, as such it takes FO as input, not XML (even though FO is XML, XML isn't FO). You need to make sure your input is valid FO, then either use the -fo parameter or no parameter since it's the FOPs primary input. If you were curious the -xml input is used in

Re: FOP crashes when encountering character 00AD (soft hyphen)

2011-10-24 Thread mehdi houshmand
/xmlgraphics/fop/snapshots/. Mehdi On 21 October 2011 17:33, Paul Tremblay paulhtremb...@gmail.com wrote: Hi Mehdi, Here are the errors, as an attached file. On 10/21/11 11:16 AM, mehdi houshmand wrote: Hi Paul, Try running the JUnit task ant junit and share any errors. Mehdi On 21

Re: FOP crashes when encountering character 00AD (soft hyphen)

2011-10-21 Thread mehdi houshmand
Hi Paul, I just ran the FO you attached and I am getting the same error message as you are with FOP 1.0, however, FOP trunk doesn't produce this issue, it might be worth trying that. Hope that helps Mehdi On 21 October 2011 03:49, Paul Tremblay paulhtremb...@gmail.com wrote: Fop crashes when

Re: FOP crashes when encountering character 00AD (soft hyphen)

2011-10-21 Thread mehdi houshmand
Curiously however, the soft-hyphen doesn't appear in the output document. I'll try and investigate further, someone else may already know the reason why. Mehdi On 21 October 2011 08:44, mehdi houshmand med1...@gmail.com wrote: Hi Paul, I just ran the FO you attached and I am getting the same

Re: FOP crashes when encountering character 00AD (soft hyphen)

2011-10-21 Thread mehdi houshmand
21.10.2011 09:44, schrieb mehdi houshmand: however, FOP trunk doesn't produce this issue, Jeremias fixed this some time ago on trunk. J.Pietschmann Thanks. I downloaded the trunk. I followed the directions and set JAVA_HOME to /Library/Java/Home and ANT_HOME to usr/share/ant. I typed ant and got

Re: FOP crashes when encountering character 00AD (soft hyphen)

2011-10-21 Thread mehdi houshmand
Hi Paul, Try running the JUnit task ant junit and share any errors. Mehdi On 21 October 2011 15:47, Paul Tremblay paulhtremb...@gmail.com wrote: Hi Mehdi, I already have JUnit4 (junit-4.10.jar). That's the jar I put in my /usr/share/ant/lib Paul On 10/21/11 10:44 AM, mehdi houshmand

Re: Where's the class?

2011-10-19 Thread mehdi houshmand
Hi Eric, The renderers of old were removed quite a while ago in commit#989178. Hope that helps Mehdi On 19 October 2011 14:33, Eric Douglas edoug...@blockhouse.com wrote: I downloaded fop as the latest trunk snapshot and it says you took away a class? What happened to

Re: Where's the class?

2011-10-19 Thread mehdi houshmand
Sorry Eric, I meant to say, this is a developer question, could you post questions concerning the code on fop-dev in future. Thanks Mehdi On 19 October 2011 14:47, mehdi houshmand med1...@gmail.com wrote: Hi Eric, The renderers of old were removed quite a while ago in commit#989178. Hope

Re: Problem with fo:external-graphic element in processing output from either Saxon or Xalan

2011-10-07 Thread mehdi houshmand
Hi Mike, I can't help you with the DocBook query as I've never used DocBook myself, however, it is important to understand that XSL-FO and XML in generally is strongly typed. As for your XML all on one line, there is a way to output a more readable format, I think you have to set indent=yes on

Re: Problem with fo:external-graphic element in processing output from either Saxon or Xalan

2011-10-06 Thread mehdi houshmand
Hi Mike, An external-graphic an %inline entity, and the only valid child of an fo:flow (http://www.w3.org/TR/xsl/#fo_flow) is a %block. So basically you need to wrap the external-graphic object in a fo:block object i.e.: Your XSL-FO code: ... fo:flow fo:external-graphic.../ Correct

Re: Glyph ? (0x107, cacute) not in PDF

2011-10-06 Thread mehdi houshmand
Hi Mark, What version of FOP are you using? In FOP 1.0+ the metrics XML files are deprecated. Mehdi On 6 October 2011 20:39, Mark Craig mark.cr...@gmail.com wrote: Hello, I've read http://xmlgraphics.apache.org/fop/faq.html#pdf-characters and

Re: Can FOP work backwards?

2011-09-14 Thread mehdi houshmand
On 14 September 2011 18:31, Eric Douglas edoug...@blockhouse.com wrote: I know the intention of FOP is to create PDF, but since FOP did create the PDF the code should be there to read the PDF. No, FOP doesn't parse PDF. I want to take a PDF (generated by FOP) and read it back in, to be able

Re: FOP font warning invalid

2011-09-13 Thread mehdi houshmand
Hi Eric, This URL might help you better understand the error message: http://www.w3.org/TR/xsl/#font-weight Just out of curiousity, what FOP version are you using? There was a fix recently touching on that area of code which might solve your problem. Hope that helps Mehdi On 13 September 2011

Re: Problem with arial font access

2011-09-06 Thread mehdi houshmand
Hi, That's one way to do it, but if you want to see which fonts are available to your JVM then you can use the following command: import java.awt.GraphicsEnvironment; ... // For font family names GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames() // For font details,

Re: Problem with arial font access

2011-09-05 Thread mehdi houshmand
Hi Philippe, You can try and get that working, but there are several considerations you must take if you're wanting to use the auto-detect. feature, the most significant of which is that the name you set in font-family must match the system font name. IMO configuring the fonts explicitly

Re: Configure fonts for FOP

2011-07-30 Thread mehdi houshmand
files so it can do that I believe. Can you confirm this is the case ?. Thank you very much for your help !!! Regards, Fernando On Fri, Jul 29, 2011 at 7:59 AM, mehdi houshmand med1...@gmail.com wrote: Hi Fernando, If you open the example in conf/fop.xconf, you'll see an example has been

Re: Configure fonts for FOP

2011-07-29 Thread mehdi houshmand
a Windows OS and stick them on directory on a Linux box where the server (with FOP) runs ?. Will that work ?. Thanks again for your help ! Regards, Fernando On Thu, Jul 28, 2011 at 3:45 AM, mehdi houshmand med1...@gmail.com wrote: Hi Fernando, I'll address each question individually

Re: Configure fonts for FOP

2011-07-28 Thread mehdi houshmand
Hi Fernando, I'll address each question individually: On 27 July 2011 23:29, Fernando Israel fernando.isr...@kognoz.com wrote: Hi All, I know this is a recurring issue but going through the documentation and forum listings I am still no clear but I hope I know what to ask. /snip The

Re: fop not handling svn rotated text on linux

2011-06-28 Thread mehdi houshmand
issue? Cheers, rjs mehdi houshmand wrote: Hi Rob, Could you upload the PDF in question (if it's not too big) and it'll give us a better idea of what the issue is. Thanks Mehdi On 25 June 2011 04:37, Bernard Giannetti thebernmeis...@hotmail.com wrote: Something which happened

Re: fop not handling svn rotated text on linux

2011-06-28 Thread mehdi houshmand
in terms of time, so with a pointer to what you think is the problem, I would be happy dive in.  I meant to register this against version 0.95 but I have moved this (portion of our) product to 1.0. Cheers, rjs On 06/28/2011 01:43 AM, mehdi houshmand wrote: Hi Rob, I took a quick look

Re: fop not handling svn rotated text on linux

2011-06-26 Thread mehdi houshmand
? Cheers, rjs mehdi houshmand wrote: Hi Rob, Could you upload the PDF in question (if it's not too big) and it'll give us a better idea of what the issue is. Thanks Mehdi On 25 June 2011 04:37, Bernard Giannetti thebernmeis...@hotmail.com wrote: Something which happened to me

Re: fop not handling svn rotated text on linux

2011-06-25 Thread mehdi houshmand
Hi Rob, Could you upload the PDF in question (if it's not too big) and it'll give us a better idea of what the issue is. Thanks Mehdi On 25 June 2011 04:37, Bernard Giannetti thebernmeis...@hotmail.com wrote: Something which happened to me (unrelated to rotating text) but I noticed a

Re: Central European characters in PDF with Base14 fonts

2011-06-23 Thread mehdi houshmand
Hi Tomasz, I could be wrong here, since I haven't tested this myself, but I'm pretty sure that currently there's no way to do what you're wanting without embedding the font. The Base14Fonts only look like they support WinAnsi encoding (with the obvious exception of ZapfDingbats and Symbol). Hope

Re: Central European characters in PDF with Base14 fonts

2011-06-23 Thread mehdi houshmand
mehdi houshmand wrote: Hi Tomasz, I could be wrong here, since I haven't tested this myself, but I'm pretty sure that currently there's no way to do what you're wanting without embedding the font. The Base14Fonts only look like they support WinAnsi encoding (with the obvious exception

Re: Complex Script Support

2011-06-20 Thread mehdi houshmand
Hi Rajat, That error message means that FOP can't find the font you're referencing. You can either put the font into your systems font directory (which depends on which OS you're using), or you can check http://xmlgraphics.apache.org/fop/trunk/fonts.html which will describe how to manually

Re: Error including a PDF inside another PDF

2011-06-17 Thread mehdi houshmand
Hi Jose, The ERROR message is the key here, it's indicative of an absence of an image loader for PDFs. You need to have the FOP-pdf-images JAR to your class path, you can get the JAR from this link http://www.jeremias-maerki.ch/download/fop/pdf-images/ and to put it in your class path, the

Re: Error including a PDF inside another PDF

2011-06-17 Thread mehdi houshmand
-pdf-images.jar to extract thumbnails of PDFs? Kindest regards Theresa Forster Senior Software Developer -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: 17 June 2011 08:00 To: fop-users@xmlgraphics.apache.org Subject: Re: Error including a PDF inside

Re: Error including a PDF inside another PDF

2011-06-17 Thread mehdi houshmand
wrote: But can it be used to extract the front page as an image? We can rescale later... Kindest regards Theresa Forster Senior Software Developer -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: 17 June 2011 11:17 To: fop-users@xmlgraphics.apache.org

Re: fop called in xslt extension is not finding fonts

2011-06-02 Thread mehdi houshmand
Hi Rob, I just tested this on my system and I was finding the same results as you... When I set the output format to IF, FOP wasn't working. So anyway, I fixed it by setting the output MIME type, which is done via the command line as such: ./fop -c fop.xconf test.fo -if insert mime-type

Re: Reading Fonts with XMLGraphics or FOP?

2011-05-31 Thread mehdi houshmand
Sorry to be late on this, but what Glenn said is true for the most part. FOP does delegate SVG font handling to Batik, which does use AWT classes for processing fonts. The disparity here is something I am hoping we will address. Mehdi On 21 May 2011 21:28, Glenn Adams gl...@skynav.com wrote:

Re: Problem with kerning on a font

2011-05-27 Thread mehdi houshmand
Hi Theresa, I don't know if you're aware of this, but font metrics files are deprecated as of FOP1.0. So the first question would be what FOP version are you using? Presumably the font you're using does have the correct kerning values? Have you checked that? Mehdi On 27 May 2011 15:24, Theresa

Re: Tripping over something converting from IF to PS

2011-05-23 Thread mehdi houshmand
Hi Martin, What version of FOP are you using? Try using FOP 1.0 and see if this problem persists. If you send the IF file responsible, it'd give us a little more information. Thanks Mehdi On 23 May 2011 03:18, Martin Edge martin.e...@intellimail.com.au wrote: Hi Guys, Currently getting

Re: Tripping over something converting from IF to PS

2011-05-23 Thread mehdi houshmand
/). An NPE is never really what you want to see... Mehdi On 23 May 2011 07:57, Martin Edge martin.e...@asmorphic.net.au wrote: Hi Mehdi, It's trunk, I'll give 1.0 a go Cheers Martin --- Martin Edge --- On 23/05/2011, at 4:54 PM, mehdi houshmand med1

Re: How to get fonts loaded programatically?

2011-05-11 Thread mehdi houshmand
of using a user agent rather than just a fop? Theresa * * *From:* mehdi houshmand [mailto:med1...@gmail.com] *Sent:* 10 May 2011 09:40 *To:* fop-users@xmlgraphics.apache.org *Subject:* Re: How to get fonts loaded programatically? Hi Theresa, There're two ways you can find out what

Re: How to get fonts loaded programatically?

2011-05-10 Thread mehdi houshmand
Hi Theresa, There're two ways you can find out what you're looking for, some information is on the FOP website http://xmlgraphics.apache.org/fop/trunk/fonts.html, but if that fails to answer your questions I'd suggest you look through the mailing list archives. There have been quite a few of

Re: Strange problem with no error being generated

2011-05-10 Thread mehdi houshmand
Hi Theresa, Firstly, can you try not to mix queries in threads, if people refer back to this thread, it makes it difficult to follow. Also, you already have a thread concerning this issue so anyone that wants to help you, doesn't have all the information. That said, I think it might be worth you

Re: ToUnicode table in subset font not correct?

2011-05-04 Thread mehdi houshmand
information. Hopefully that clears it up!? Mehdi On 3 May 2011 17:31, Chris Bowditch bowditch_ch...@hotmail.com wrote: On 03/05/2011 13:44, mehdi houshmand wrote: Hi Medhi, Just for future reference, the change hasn't been made in the patch to bug 50483. I made the change while implementing

Re: ToUnicode table in subset font not correct?

2011-05-04 Thread mehdi houshmand
will apply it to trunk. We've done a fair bit of testing on it and it seems to work fairly well. Mehdi On 4 May 2011 09:13, ruud grosmann r.grosm...@gmail.com wrote: On 03/05/2011, mehdi houshmand med1...@gmail.com wrote: Just for future reference, the change hasn't been made in the patch to bug

Re: ToUnicode table in subset font not correct?

2011-05-03 Thread mehdi houshmand
Hi Ruud, Yes this is a bug, which has been fixed in my patch, but since I didn't think anyone else had bumped into it I didn't want to put it into trunk since I also made some code improvements to the class and was weary that it could cause merge issues when/if the branches are merged. The issue

Re: ttf fonts for SVG in debian

2011-04-20 Thread mehdi houshmand
Hi Vincent gave a fairly concise answer here, which may also help in finding out which fonts Java has registered:

Re: Embedding font on Solaris

2011-04-16 Thread mehdi houshmand
Hi Michal, Check the archives, there are plenty examples of people doing this, however, you'll need to set the font-base parameter in the fop.xconf. The website has some information on this (http://xmlgraphics.apache.org/fop/0.95/configuration.html), in your case it would be:

Re: Fop 1.0: resolving relative Font URLs

2011-04-14 Thread mehdi houshmand
Hi Ulrich, Sorry for the late reply, but /my/font/path isn't a reference to a relative path. That's an absolute path. If the absolute path of your font were /my/font/path/myfont.ttf, then your config is correct, and you are right in issuing a bug. But if your font is located at directory of

Re: Fop 1.0: resolving relative Font URLs

2011-04-13 Thread mehdi houshmand
Hi Ulrich, Have you tried setting the font-base in your fop.xconf? I must admit I haven't used the API much but you can set the font-base by inserting following in the fop.xconf: font-base ** the base directory ** /font-base The configuration page on the fop website may help you,

Re: Fop 1.0: resolving relative Font URLs

2011-04-13 Thread mehdi houshmand
: mehdi houshmand wrote: Hi Ulrich, Have you tried setting the font-base in your fop.xconf? I must admit I haven't used the API much but you can set the font-base by inserting following in the fop.xconf: font-base ** the base directory ** /font-base Hi Mehdi, we have set the font-base

Re: can fop do outline style font? how?

2011-03-23 Thread mehdi houshmand
Hi Zac If you have further questions regarding how to reference fonts in the fop.xconf you may find the answers in the wiki (http://xmlgraphics.apache.org/fop/trunk/fonts.html), if that doesn't help, feel free to ask. mehdi On 23 March 2011 15:46, Rob Sargent rsarg...@xmission.com wrote: I

Re: Creating PDF file with HTML attributes in data

2011-03-22 Thread mehdi houshmand
Hi Ashish, The intelligence for what you're trying to do should be in the XSLT that you're using. FOP can't read HTML, and it wouldn't make sense for it to do so, it already has it's own input format. Basically you need to transform the HTML into FO. Mehdi On 21 March 2011 17:52, Ashish

Re: Fonts fail to print after successive print runs that work

2011-03-15 Thread mehdi houshmand
Hi Peter, You say that it can happen anywhere from the 30th document to the 150th? Does that suppose each document is different, or does the number vary if you print the same document over and over? I.e. is the number at which it fails the same over several attempts when printing a single

Re: PDF version specification

2011-03-14 Thread mehdi houshmand
Hi Markus, Unfortunately looking at the code, the PDF version (1.4) is hard-coded. This is presumably because FOP doesn't support any of the features of subsequent versions, though I'm sure someone in the community will be able to tell you the exact reasons for this. You may be able to change

Re: Font Weight

2011-03-10 Thread mehdi houshmand
Hi Guys, Sorry to jump onto this so late in the game, but if you're trying to using TTF fonts with PostScript there is a branch called Temp_TrueTypeInPostScript which may help you. It allows you to embed TTFs in the PostScript which will mean you won't have to have the font installed on your

Re: Font Weight

2011-03-10 Thread mehdi houshmand
FOP. My goal is to get the font to render a bit darker in the TIFF than it is being produced at this time in order to come closer to the quality of the image produced by PostScript then converting to TIFF. -Josh -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com

Re: manipulate fop configuration file via java

2011-03-10 Thread mehdi houshmand
Hi, Correct me if I'm wrong but I think you're trying to serialize the data that you configure progammatically. If so, but I don't think that feature currently exists in FOP (or if it does, I haven't come across it). If you wish to set and save config settings, you could use the various XML DOM

Re: FreeSerif Font not working

2011-03-02 Thread mehdi houshmand
Superb, I was just about to delve into this but I'm glad you got to the bottom of it. Mehdi On 2 March 2011 03:19, Graeme Kidd coolki...@hotmail.com wrote: I had some spare time today so I thought I would offer a helping hand and look into it as well. It looks like you weren't far off as

  1   2   >