bugzilla | 26 Sep 2002 12:57
Picon
Favicon

DO NOT REPLY [Bug 12854] - The path for the font-matrix files is in unix format under windows

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12854>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12854

The path for the font-matrix files is in unix format under windows

------- Additional Comments From cm <at> javahouse.dk  2002-09-26 10:57 -------
The error displayed : 

Failed to read font metrics file /c:/fop/nifm/ttfcm.xml : no 
protocol: /c:/fop/nifm/ttfcm.xml

The problem is not that it is a unix path, but rather that it removes the 
protocol ("file://" or "http://") infront of the url.

Best regards,

Casper Madsen
cm <at> javahouse.dk
Matthew L. Avizinis | 26 Sep 2002 16:09
Favicon

FOP defect when rendering rotated grouped text and path objects

Hello all
I have found that when attempting to render an SVG to pdf if the image
contains mixed text and line objects such as paths, rect's, etc. which are
grouped, if the group is rotated [by either rotate() or matrix()] by an
angle <=±8°, the text is transformed correctly while the path remains
unrotated.  If the angle of rotation is >=±9° the path (or rect, line, etc.)
is rotated correctly.
for example,

<svg width="1395" height="1747">
  <g transform="rotate(-9) translate(-13.5791 189.397) translate(-10.6777
6.69118)">
    <text x="145px" y="209px" transform="translate(-86.6667 -48)
font-size="116" font-family="Arial" font-weight="bold">P</text>
    <text x="607px" y="289px" transform="translate(-602.667 -166.667)
translate(612.111 247.356) scale(0.965631 1) translate(-612.111 -247.356)
scale(0.964408 1) fill="rgb(0,0,0)" font-size="116" font-family="Arial"
font-weight="bold">G</text>
    <path d="M52.7692 81.1538 L1113.88 82.1267" transform="translate(1113.88
81.6403) scale(0.988691 1)  fill="none" stroke="rgb(0,0,0)"
stroke-width="10"/>
    <path transform="translate(0.992548 0.121852) scale(1.01556 1)"
fill="none" stroke="rgb(0,0,0)" stroke-width="4" d="M1164 -6 L1164 1569 L-3
1569 L-3 -6 z"/>
  </g>
</svg>

The image is correctly displayed by the current version of Batik.  So I'm
wondering if this is still a problem with Batik or with FOP or both.  Anyone
have any ideas about this and is there any workaround available?  If this a
(Continue reading)

Peter B. West | 26 Sep 2002 16:40
Picon
Picon

<character>

Fopdevs,

Any comments on the representation and parsing of <character> type 
attributes would be gratefully received.

Peter
--

-- 
Peter B. West  pbwest <at> powerup.com.au  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"
Tobias Kuhn | 26 Sep 2002 17:35
Picon

embedding jpg in pdf document

Hello,
 
i got problems in embedding jpg files into my pdf.
 
when i use
 
<fo:external-graphic src="E:\test\test\images\Organigramm.jpg"></fo:external-graphic> it works pretty good
 
But now i have the path to the image files stored in an  XML Tree, like this:
 
<tc1b>E:\test\test\images\Organigramm.jpg</tc1b>
  <tc2>E:\test\test\images\Projektstrukturplan.jpg</tc2>
  <tc5>E:\test\test\images\Aufwand_Zeitplan1.jpg</tc5>
  <tc6>E:\test\test\images\LegendeGanttChart.jpg</tc6>
  <tc6>E:\test\test\images\GanttChart_1_1.jpg</tc6>
  <tc6>E:\test\test\images\GanttChart_1_2.jpg</tc6>
  <tc7>E:\test\test\images\MTA_Diagramm.jpg</tc7>
  <tc8>E:\test\test\images\Aufwand_Terminsteuerung11.jpg</tc8>
  <tc8>E:\test\test\images\Aufwand_Terminsteuerung12.jpg</tc8>
 
nnow i want to read the paths from my xml file and use them in my xslt file , like this:
 
 
<xsl:variable name="organigramm" select="/projekt/images/tc1b"></xsl:variable>
<fo:external-graphic src="organigramm"></fo:external-graphic>
 
but this does not work... Error: "Path not found..."
 
Any Tips?
 
Thanks in Advance,
 
Tobias
 
 
Louis.Masters | 26 Sep 2002 17:42
Favicon

Re: embedding jpg in pdf document


Do you mean something like this:

<xsl:variable name="imgURL">
     <xsl:apply-templates select="vanPosURL"/>
</xsl:variable>
<fo:external-graphic  src="{$imgURL}"/>

"Tobias Kuhn" <tkuhn <at> mailserv.rz.fh-muenchen.de> on 09/26/2002 11:35:11

Please respond to fop-dev <at> xml.apache.org

To:   <fop-dev <at> xml.apache.org>
cc:

Subject:  embedding jpg in pdf document

Hello,

i got problems in embedding jpg files into my pdf.

when i use

<fo:external-graphic src="E:\test\test\images\Organigramm.jpg
"></fo:external-graphic> it works pretty good

But now i have the path to the image files stored in an  XML Tree, like
this:

<tc1b>E:\test\test\images\Organigramm.jpg</tc1b>
    <tc2>E:\test\test\images\Projektstrukturplan.jpg</tc2>
    <tc5>E:\test\test\images\Aufwand_Zeitplan1.jpg</tc5>
    <tc6>E:\test\test\images\LegendeGanttChart.jpg</tc6>
    <tc6>E:\test\test\images\GanttChart_1_1.jpg</tc6>
    <tc6>E:\test\test\images\GanttChart_1_2.jpg</tc6>
    <tc7>E:\test\test\images\MTA_Diagramm.jpg</tc7>
    <tc8>E:\test\test\images\Aufwand_Terminsteuerung11.jpg</tc8>
    <tc8>E:\test\test\images\Aufwand_Terminsteuerung12.jpg</tc8>

  nnow i want to read the paths from my xml file and use them in my xslt
  file , like this:

<xsl:variable name="organigramm" select
="/projekt/images/tc1b"></xsl:variable>
<fo:external-graphic src="organigramm"></fo:external-graphic>

but this does not work... Error: "Path not found..."

Any Tips?

Thanks in Advance,

Tobias
Tobias Kuhn | 26 Sep 2002 17:52
Picon

AW: embedding jpg in pdf document

HI,

I mean something like this:
------XML FILE-----
<path>E:\test\test\images\Projektstrukturplan.jpg</path>
--------------------

<xsl:variable name="imgURL" select="/images/image1/path"></xsl:variable>

... So path is E:\test\test\images\Projektstrukturplan.jpg...

<fo:external-graphic  src="{$imgURL}"/>

But is does not work...

-----Ursprüngliche Nachricht-----
Von: Louis.Masters <at> log-net.com [mailto:Louis.Masters <at> log-net.com] 
Gesendet: Donnerstag, 26. September 2002 17:43
An: fop-dev <at> xml.apache.org
Betreff: Re: embedding jpg in pdf document

Do you mean something like this:

<xsl:variable name="imgURL">
     <xsl:apply-templates select="vanPosURL"/>
</xsl:variable>
<fo:external-graphic  src="{$imgURL}"/>

"Tobias Kuhn" <tkuhn <at> mailserv.rz.fh-muenchen.de> on 09/26/2002 11:35:11

Please respond to fop-dev <at> xml.apache.org

To:   <fop-dev <at> xml.apache.org>
cc:

Subject:  embedding jpg in pdf document

Hello,

i got problems in embedding jpg files into my pdf.

when i use

<fo:external-graphic src="E:\test\test\images\Organigramm.jpg
"></fo:external-graphic> it works pretty good

But now i have the path to the image files stored in an  XML Tree, like
this:

<tc1b>E:\test\test\images\Organigramm.jpg</tc1b>
    <tc2>E:\test\test\images\Projektstrukturplan.jpg</tc2>
    <tc5>E:\test\test\images\Aufwand_Zeitplan1.jpg</tc5>
    <tc6>E:\test\test\images\LegendeGanttChart.jpg</tc6>
    <tc6>E:\test\test\images\GanttChart_1_1.jpg</tc6>
    <tc6>E:\test\test\images\GanttChart_1_2.jpg</tc6>
    <tc7>E:\test\test\images\MTA_Diagramm.jpg</tc7>
    <tc8>E:\test\test\images\Aufwand_Terminsteuerung11.jpg</tc8>
    <tc8>E:\test\test\images\Aufwand_Terminsteuerung12.jpg</tc8>

  nnow i want to read the paths from my xml file and use them in my xslt
  file , like this:

<xsl:variable name="organigramm" select
="/projekt/images/tc1b"></xsl:variable>
<fo:external-graphic src="organigramm"></fo:external-graphic>

but this does not work... Error: "Path not found..."

Any Tips?

Thanks in Advance,

Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe <at> xml.apache.org
For additional commands, email: fop-dev-help <at> xml.apache.org
J.Pietschmann | 26 Sep 2002 21:24
Picon
Favicon

Re: AW: embedding jpg in pdf document

Tobias Kuhn wrote:
> I mean something like this:
> ------XML FILE-----
> <path>E:\test\test\images\Projektstrukturplan.jpg</path>
> --------------------
> 
> <xsl:variable name="imgURL" select="/images/image1/path"></xsl:variable>
> 
> ... So path is E:\test\test\images\Projektstrukturplan.jpg...
> 
> <fo:external-graphic  src="{$imgURL}"/>

Your first code sample:
> <fo:external-graphic src="organigramm"></fo:external-graphic>
was quite obviously flawed.

Your second attempt has a chance to work.
At first, use a stand-alone XSLT processor like Xalan to
generate the FO file. Inspect it to check whether the
src attribute has the correct value. If not, fix your
style sheet.
If the value was correct, remember that the src attribute
takes an URL, not a file name. The syntax of an URL is not
quite the same as for a Windows file path, check the spec
for details:
   http://www.rfc-editor.org/rfc/rfc2396.txt
FOP tries to get along with path names, but the code is
not very intelligent. In order to ease the task, try
  <path>file:///E:/test/test/images/Projektstrukturplan.jpg</path>

If this still fails, check whether the path is really correct.
In the example above, the double "test" component is somewhat
suspicious.

J.Pietschmann
J.Pietschmann | 26 Sep 2002 21:51
Picon
Favicon

Re: <character>

Peter B. West wrote:
> Fopdevs,
> 
> Any comments on the representation and parsing of <character> type 
> attributes would be gratefully received.

According to 5.11 "Property Datatypes", the value is a single
unicode character. I believe the representation is a
unceremonial single unicode character, or an NCName whose
string representation has the length 1. I'd parse such
attributes as an expression resulting in a string, and
bomb if the string is longer than 1.
This would accept
  character="'a'"
  character="1 + 1"
  character="from-parent('font-size') - 12"
which may upset purist, or not.
An alternative would be to use a custom parser, which accepts
either a single character (NCName of length 1) or any of the
functions inherited-property-value(NCName),
from-parent( NCName), from-nearest-specified-value( NCName)
and from-table-column( NCName)
(might even make a bit of sense for hyphenation-char and
for fo:character's character in very, very strange cases)

Just for curiosity: what should happen if the following snippet
is used:
  <fo:page-sequence master-reference="font-size" font-size="20pt">
    <fo:flow font-size="from-parent(from-parent('master-reference'))"/>

J.Pietschmann
bugzilla | 26 Sep 2002 23:22
Picon
Favicon

DO NOT REPLY [Bug 3061] - Link 'click' location doesn't take padding-top into account

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3061>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3061

Link 'click' location doesn't take padding-top into account

klease <at> club-internet.fr changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
bugzilla | 26 Sep 2002 23:24
Picon
Favicon

DO NOT REPLY [Bug 3462] - basic-link does not work in list-items inside tables other than 1st column

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3462>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3462

basic-link does not work in list-items inside tables other than 1st column

klease <at> club-internet.fr changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

------- Additional Comments From klease <at> club-internet.fr  2002-09-26 21:24 -------
Should be in 0.20.5 on the maintenance branch.

Gmane