[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fop-user
Subject:    Re: Rendering svg instream foreign object to pdf gives wrong result when svg contains dy on text
From:       Peter Coppens <pc.subscriptions () gmail ! com>
Date:       2015-04-20 18:58:48
Message-ID: C24C678B-0109-4C95-8B66-559934BBD3A9 () gmail ! com
[Download RAW message or body]

Hi Christoffer

Thanks for taking the time to look into this. Don’t think it is related to units, but \
I did notice that whenever I use a fop font (e.g. by making sure the font resolution \
fails and a default is used) as opposed to a macos one, it does seem to work.

So, seems font file/processing related

Peter

> On 19 Apr 2015, at 13:25, Christoffer Bruun <cdbruun@flyingpigs.dk> wrote:
> 
> Forgot to cc you directly
> 
> 
> -------- Videresendt meddelelse --------
> Subject:	Re: Rendering svg instream foreign object to pdf gives wrong result when \
>                 svg contains dy on text
> Date:	Sun, 19 Apr 2015 13:19:35 +0200
> From:	Christoffer Bruun <cdbruun@flyingpigs.dk> <mailto:cdbruun@flyingpigs.dk>
> To:	fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org>
> 
> Hi Peter,
> 
> Could it be some sort of unit confusion?
> 
> You are using unit-less x and y attributes, but dy is given in px
> 
> /Christoffer
> 
> 
> 
> Den 15-04-2015 kl. 22:14 skrev Peter Coppens:
> > Hello 
> > 
> > I have a svg that has a text element positioned with a dy attribute. When the svg \
> > is displayed in the browser or rendered to a png using batik, the dy is taken \
> > into account, but when using fop to render to pdf it is not. 
> > Attached the fo file, the resulting pdf and the png as rendered by batik.
> > 
> > Is there something wrong with the fo input or is the pdf transcoder not support \
> > the dy attribute? 
> > All tips welcomed!
> > 
> > Tx
> > 
> > Peter
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org \
> > <mailto:fop-users-unsubscribe@xmlgraphics.apache.org> For additional commands, \
> > e-mail: fop-users-help@xmlgraphics.apache.org \
> > <mailto:fop-users-help@xmlgraphics.apache.org>
> 
> 


[Attachment #3 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html \
charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: \
space; -webkit-line-break: after-white-space;" class="">Hi Christoffer<div \
class=""><br class=""></div><div class="">Thanks for taking the time to look into \
this. Don’t think it is related to units, but I did notice that whenever I use a fop \
font (e.g. by making sure the font resolution fails and a default is used) as opposed \
to a macos one, it does seem to work.</div><div class=""><br class=""></div><div \
class="">So, seems font file/processing related</div><div class=""><br \
class=""></div><div class="">Peter</div><div class=""><br class=""><div><blockquote \
type="cite" class=""><div class="">On 19 Apr 2015, at 13:25, Christoffer Bruun &lt;<a \
href="mailto:cdbruun@flyingpigs.dk" class="">cdbruun@flyingpigs.dk</a>&gt; \
wrote:</div><br class="Apple-interchange-newline"><div class="">  

    <meta http-equiv="content-type" content="text/html; charset=windows-1252" \
class="">  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    Forgot to cc you directly<br class="">
    <div class="moz-forward-container"><br class="">
      <br class="">
      -------- Videresendt meddelelse --------
      <table class="moz-email-headers-table" border="0" cellpadding="0" \
cellspacing="0">  <tbody class="">
          <tr class="">
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE" class="">Subject:
            </th>
            <td class="">Re: Rendering svg instream foreign object to pdf gives
              wrong result when svg contains dy on text</td>
          </tr>
          <tr class="">
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE" class="">Date: </th>
            <td class="">Sun, 19 Apr 2015 13:19:35 +0200</td>
          </tr>
          <tr class="">
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE" class="">From: </th>
            <td class="">Christoffer Bruun <a class="moz-txt-link-rfc2396E" \
href="mailto:cdbruun@flyingpigs.dk">&lt;cdbruun@flyingpigs.dk&gt;</a></td>  </tr>
          <tr class="">
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE" class="">To: </th>
            <td class=""><a class="moz-txt-link-abbreviated" \
href="mailto:fop-users@xmlgraphics.apache.org">fop-users@xmlgraphics.apache.org</a></td>
  </tr>
        </tbody>
      </table>
      <br class="">
      <br class="">
      <meta content="text/html; charset=windows-1252" http-equiv="Content-Type" \
class="">  <div class="moz-cite-prefix">Hi Peter,<br class="">
        <br class="">
        Could it be some sort of unit confusion?<br class="">
        <br class="">
        You are using unit-less x and y attributes, but dy is given in
        px<br class="">
        <br class="">
        /Christoffer<br class="">
        <br class="">
        <br class="">
        <br class="">
        Den 15-04-2015 kl. 22:14 skrev Peter Coppens:<br class="">
      </div>
      <blockquote cite="mid:CFC74257-EB87-47EE-98D9-852D488F685A@gmail.com" \
type="cite" class="">  <pre wrap="" class="">Hello 

I have a svg that has a text element positioned with a dy attribute. When the svg is \
displayed in the browser or rendered to a png using batik, the dy is taken into \
account, but when using fop to render to pdf it is not.

Attached the fo file, the resulting pdf and the png as rendered by batik.

Is there something wrong with the fo input or is the pdf transcoder not support the \
dy attribute?

All tips welcomed!

Tx

Peter



</pre>
        <br class="">
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br class="">
        <pre wrap="" class=""></pre>
        <br class="">
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br class="">
        <pre wrap="" \
class="">--------------------------------------------------------------------- To \
unsubscribe, e-mail: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" \
href="mailto:fop-users-unsubscribe@xmlgraphics.apache.org">fop-users-unsubscribe@xmlgraphics.apache.org</a>
 For additional commands, e-mail: <a moz-do-not-send="true" \
class="moz-txt-link-abbreviated" \
href="mailto:fop-users-help@xmlgraphics.apache.org">fop-users-help@xmlgraphics.apache.org</a></pre>
  </blockquote>
      <br class="">
      <br class="">
    </div>
    <br class="">
  </div>

</div></blockquote></div><br class=""></div></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic