.PNG files being ignored
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 47
- Joined: Mon Apr 18, 2005 2:22 pm
.PNG files being ignored
Post by PeterRobertson »
I have a simple docbook file:
When using the standard Docbook PDF transformation supplied with
Oxygen, the picture does not appear. If I convert the file to .GIF, the
equivalent input does produce the picture (although extremely blurred).
What is going on?
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.0//EN"
"C:\Program Files\Oxygen 5.1\frameworks\docbook\dtd/docbookx.dtd">
<book>
<chapter>
<title>Test</title>
<section><title>Testing</title>
<para>Testing a png:
<inlinemediaobject>
<imageobject>
<imagedata format="PNG" fileref="/TEMP/XML/images/important.png"/>
</imageobject>
</inlinemediaobject>
: done.
</para>
</section>
</chapter>
</book>
Oxygen, the picture does not appear. If I convert the file to .GIF, the
equivalent input does produce the picture (although extremely blurred).
What is going on?
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
How to include PNG images in the final PDF document is documented in our user manual. Please see
http://www.oxygenxml.com/doc/ug-oxygen/ ... ssors.html
Best Regards,
Sorin
How to include PNG images in the final PDF document is documented in our user manual. Please see
http://www.oxygenxml.com/doc/ug-oxygen/ ... ssors.html
Best Regards,
Sorin
-
- Posts: 21
- Joined: Sun Jan 15, 2006 11:36 am
Installed libraries as documented, no PNGs in PDF.
I have pretty much the same XML in source.
I have read the manual (which is not very clear whether you need both JIMI and JAI for PNG, or just one of the two. Manual is also out of date wth user intrface. See e.g. Common Transofrmations- much is out of date with the 7.1 UI).
On a pretty standard Windows XP installation of Oxygen (all defaut with bundled JRE), I have installed both libraries, trying each one alone, and then installing both. all as described in the manual.
So I now have JimiProClasses.zip installed to C:\Program Files\Oxygen\lib. I also have jai_codec.jar, jai_core.jar and mlibwrapper_jai.jar installed there. My PATH environment variable contains the path to the native DLLs (C:\jai-1_1_2_01\lib). I have restarted Oxygen and when the png images still didn't appear in PDF output I restarted Windows thinking maybe PATH didn't update. I've just rechecked against the manual 5 times. There is still a chance that I have screwed up something but I don't think so this time.
PMG images still don't appear in PDF. (Everything else is great!)
HELP please anyone??
Code: Select all
<figure id="welcome_help_roles">
<title>Some texts here</title>
<screenshot>
<mediobject>
<imageobject>
<imagedata fileref="help_home/screenshots/getstart/help_rolse.png" format="PNG"/>
<imageobject>
<textobject>
<phrase>Documentation paths for different roles</phrase>
<textobject>
<caption>
<para>Roles and Documentation</para>
</caption>
</mediobject>
</screenshot>
</figure>
On a pretty standard Windows XP installation of Oxygen (all defaut with bundled JRE), I have installed both libraries, trying each one alone, and then installing both. all as described in the manual.
So I now have JimiProClasses.zip installed to C:\Program Files\Oxygen\lib. I also have jai_codec.jar, jai_core.jar and mlibwrapper_jai.jar installed there. My PATH environment variable contains the path to the native DLLs (C:\jai-1_1_2_01\lib). I have restarted Oxygen and when the png images still didn't appear in PDF output I restarted Windows thinking maybe PATH didn't update. I've just rechecked against the manual 5 times. There is still a chance that I have screwed up something but I don't think so this time.


PMG images still don't appear in PDF. (Everything else is great!)
HELP please anyone??

-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: .PNG files being ignored
Post by sorin_ristache »
Hello,
Regards,
Sorin
PeterRobertson wrote:I have a simple docbook file:
Your code is not DocBook. Did you validate your file against a DocBook schema ? More than that it is not well-formed XML. There are also validation errors. For example mediobject does not exist in DocBook. Maybe it should be mediaobject. If it is not valid it is possible that the DocBook stylesheets do not include the image in the FO file. If you use other schema for validation you should post that. Also if you use other schema we have to see the FO file that is input for the FO processor in order to see why the image is not included in the PDF. After I corrected the errors I generated a PDF file from your figure using JIMI and other PNG image. If you want to see a sample I can upload it on a server and I can post the URL here. My figure is:robert3L wrote:I have pretty much the same XML in source.Code: Select all
<figure id="welcome_help_roles">
<title>Some texts here</title>
<screenshot>
<mediobject>
<imageobject>
<imagedata fileref="help_home/screenshots/getstart/help_rolse.png" format="PNG"/>
<imageobject>
<textobject>
<phrase>Documentation paths for different roles</phrase>
<textobject>
<caption>
<para>Roles and Documentation</para>
</caption>
</mediobject>
</screenshot>
</figure>
Code: Select all
<figure id="welcome_help_roles">
<title>Some texts here</title>
<screenshot>
<mediaobject>
<imageobject>
<imagedata fileref="img/caution.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>Documentation paths for different roles</phrase>
</textobject>
<caption>
<para>Roles and Documentation</para>
</caption>
</mediaobject>
</screenshot>
</figure>
robert3L wrote:I have read the manual (which is not very clear whether you need both JIMI and JAI for PNG, or just one of the two.
I quote from that page of the manual:sorin wrote:How to include PNG images in the final PDF document is documented in our user manual. Please see
http://www.oxygenxml.com/doc/ug-oxygen/ ... ssors.html
So you need the JIMI library or the JAI library for PNG images. What is not clear here ?To include PNG images in the final PDF document you need the JIMI or JAI libraries.
Manual is not out of date. The path to the manual pages changed on the server for new versions of <oXygen/>. The old URLs included in the old forum posts point to the old versions of the manual. You should use the links included in the posts only for reading about the problem of that forum topic. For the latest version you must go to the Documentation page.robert3L wrote:Manual is also out of date wth user intrface. See e.g. Common Transofrmations- much is out of date with the 7.1 UI).
Like I said if you need a sample PDF generated from the figure that I posted and JIMI installed as described in the manual page from the link just let me know.robert3L wrote:On a pretty standard Windows XP installation of Oxygen (all defaut with bundled JRE), I have installed both libraries, trying each one alone, and then installing both. all as described in the manual.
So I now have JimiProClasses.zip installed to C:\Program Files\Oxygen\lib. I also have jai_codec.jar, jai_core.jar and mlibwrapper_jai.jar installed there. My PATH environment variable contains the path to the native DLLs (C:\jai-1_1_2_01\lib). I have restarted Oxygen and when the png images still didn't appear in PDF output I restarted Windows thinking maybe PATH didn't update. I've just rechecked against the manual 5 times. There is still a chance that I have screwed up something but I don't think so this time.![]()
![]()
PMG images still don't appear in PDF. (Everything else is great!)
HELP please anyone??
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service