Vector graphics in Flying Saucer / ERPDFWrapper

2015-11-17 Thread Ricardo Parada
Hi all, We use ERPDFWrapper to generate PDF from a WOComponent. It comes out beautiful. One of our components includes a logo using the html tag and the logo is usually a .gif or .jpg. However, I would like to use vector graphics. We took a .eps file and converted it to .pdf in Photoshop

Re: Vector graphics in Flying Saucer / ERPDFWrapper

2015-11-17 Thread Samuel Pelletier
Hi Ricardo, I do not know if it possible using ERPDFWrapper but I suggest to try svg images (directly embedded and using object element). SVG is the only vector format that is almost universally supported on web browser. I know my own solution works for vector images and do font embedding. If y

Re: Vector graphics in Flying Saucer / ERPDFWrapper

2015-11-17 Thread Timo Hoepfner
Hi Ricardo, not at my work machine currently, but I came across a similar problem recently. In my case I tried to use a PDF as background image and got the same error. Updating flying saucer to a more recent version solved the issue for me. The jars I’m currently using are flying-saucer-core-9.

Re: Vector graphics in Flying Saucer / ERPDFWrapper

2015-11-18 Thread Ricardo Parada
Thank you Timo and Samuel for your responses. The easiest for me was to just update the flying saucer library to 9.0.8 as Timo suggested. I can now use the .pdf logo with vector graphics. The logo now looks beautiful on the Retina display. > On Nov 17, 2015, at 3:33 PM, Timo Hoepfner wrote

Re: Vector graphics in Flying Saucer / ERPDFWrapper

2015-11-30 Thread Ricardo Parada
Hi all, I was trying to create a pull request to remove core-rederer-20101006.jar from ERPDFGeneration and add flying-saucer-core-9.0.8.jar and flying-saucer-pdf-9.0.8.jar. However the fork I have of wonder on my github account is really old and I’m confused how to go about doing this. I’m no

Re: Vector graphics in Flying Saucer / ERPDFWrapper

2015-11-30 Thread Ricardo Parada
Hi Paul, These are the links to the pages with the jar files. Just click the Download jar button on each of those pages and you will get the corresponding jar files. http://mvnrepository.com/artifact/org.xhtmlrenderer/flying-saucer-core/9.0.8

Re: Vector graphics in Flying Saucer / ERPDFWrapper

2015-11-30 Thread Johann Werner
Hi Ricardo, you should create a branch off from the official master branch and make your changes on that one. How to do that depends on the way you interact with git (e.g. git command line, Tower, SourceTree, …). Then you can create your pull request against the master branch. If the flying sa

Re: Vector graphics in Flying Saucer / ERPDFWrapper

2015-12-01 Thread Ricardo Parada
Thank you Johann, that should get me going. The MANIFEST in the jar files says that they were built with java 1.7.0_79. I am going to try to find out if they are compatible with java 5, but based on the manifest it would be safer to keep this only in master as it may require > java 5. Thanks

Re: Vector graphics in Flying Saucer / ERPDFWrapper

2015-12-01 Thread Chuck Hill
If they were compiled with Java 1.7, they won’t run in a Java 5 JVM unless that was specifically targeted. And that seems unlikely given how old Java 1.5 is. Chuck On 2015-12-01, 10:41 AM, "webobjects-dev-bounces+chill=gevityinc@lists.apple.com on behalf of Ricardo Parada" wrote: >Th

Re: Vector graphics in Flying Saucer / ERPDFWrapper

2015-12-02 Thread Timo Hoepfner
Hi Ricardo, the 0.9.8 version needs Java 6, for Java 5 you can use 0.9.7. That version also contains the fix that enables using PDFs. I had to revert to that version on an old XServe that only supports Java 5. Here’s a handy script that checks the Java class version of files in a jar: https://g

Re: Vector graphics in Flying Saucer / ERPDFWrapper

2015-12-02 Thread Ricardo Parada
Thank you Timo, that is very helpful. Sent from my iPhone > On Dec 2, 2015, at 3:30 AM, Timo Hoepfner wrote: > > Hi Ricardo, > > the 0.9.8 version needs Java 6, for Java 5 you can use 0.9.7. That version > also contains the fix that enables using PDFs. I had to revert to that > version on a

Re: Vector graphics in Flying Saucer / ERPDFWrapper

2015-12-08 Thread Ricardo Parada
I created pull request #710 for this. > On Dec 2, 2015, at 8:58 AM, Ricardo Parada wrote: > > Thank you Timo, that is very helpful. > > Sent from my iPhone > > On Dec 2, 2015, at 3:30 AM, Timo Hoepfner > wrote: > >> Hi Ricardo, >> >> the 0.9.8 version needs Ja