You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Tim Cavanagh <ti...@tafe.sa.edu.au> on 2002/09/10 05:50:42 UTC

Regions and external-graphic

Hi,

Sorry if this has been covered b4. I have tried to find an answer!

I am using cocoon 2.x and can serialize pdfs without any trouble. However I
would like to add an image to the side of main body and so far I have not
been able to do this without getting pdf errors (on the output not cocoon).

I am defining a region using <fo:region-start /> in my
<fo:simple-page-master> I am then adding the following to my
<fo:page-sequence master-reference="basicPSM">

<!-- side image -->
        <fo:static-content flow-name="xsl-region-start">
            <fo:block>
              <fo:external-graphic
src="http://xxx.yyy.com/resources/print_side_bar.jpg"/>
            </fo:block>
         </fo:static-content>

This does not work but if I put the same block into my body region it comes
out fine???

Any ideas would be appreciated.

PS I have just joined the list ans started using fop its cool!

Regards

Tim Cavanagh


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Regions and external-graphic

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Tim Cavanagh wrote:
> PS I am also desperate for some help with keeping blocks together on the
> same page if they are in the same region... I cant seem to get them to keep
> together at all!!! Maybe that is another post?

This is a VFAQ. The keep-with-* and keep-together properties
work only on table rows. basically, put the blocks which
should be kept together in a blind table for this purpose.
The archive has a lot of examples and details, search it.

J.Pietschmann



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Regions and external-graphic

Posted by Tim Cavanagh <ti...@tafe.sa.edu.au>.
Kieron,

The viewer I am using is ADOBE Acrobat V5.05 and the error is "the file is
damaged and could not be repaired" and sometimes I get an unknown operator
being returned. I know the graphic is being parsed into the pdf because the
file size of the output goes up. Basically it seems that the parser is
screwing up the encoding but it is fine if it is in the xsl-region-body.

Many thanks for your help

PS I am also desperate for some help with keeping blocks together on the
same page if they are in the same region... I cant seem to get them to keep
together at all!!! Maybe that is another post?

Regards

Tim Cavanagh



on 10/9/02 5:06 PM, Keiron Liddle at keiron@aftexsw.com wrote:

> On Tue, 2002-09-10 at 05:50, Tim Cavanagh wrote:
>> Hi,
>> 
>> Sorry if this has been covered b4. I have tried to find an answer!
>> 
>> I am using cocoon 2.x and can serialize pdfs without any trouble. However I
>> would like to add an image to the side of main body and so far I have not
>> been able to do this without getting pdf errors (on the output not cocoon).
> 
> Do you mean when viewing the pdf document the viewer reports an error.
> What is the error message (or is it the helpful - there was an
> error...).
> 
> 
>> I am defining a region using <fo:region-start /> in my
>> <fo:simple-page-master> I am then adding the following to my
>> <fo:page-sequence master-reference="basicPSM">
>> 
>> <!-- side image -->
>>         <fo:static-content flow-name="xsl-region-start">
>>             <fo:block>
>>               <fo:external-graphic
>> src="http://xxx.yyy.com/resources/print_side_bar.jpg"/>
>>             </fo:block>
>>          </fo:static-content>
>> 
>> This does not work but if I put the same block into my body region it comes
>> out fine???
> 
> Does text work in the static region.
> If you put text before and after the image does it work.
> 
>> Any ideas would be appreciated.
> 
> Could be just some sort of pdf markup error, ending text when text was
> not started or something like that.
> 
>> PS I have just joined the list ans started using fop its cool!
> 
> Cool!
> 
>> Regards
>> 
>> Tim Cavanagh
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Regions and external-graphic

Posted by Keiron Liddle <ke...@aftexsw.com>.
On Tue, 2002-09-10 at 05:50, Tim Cavanagh wrote:
> Hi,
> 
> Sorry if this has been covered b4. I have tried to find an answer!
> 
> I am using cocoon 2.x and can serialize pdfs without any trouble. However I
> would like to add an image to the side of main body and so far I have not
> been able to do this without getting pdf errors (on the output not cocoon).

Do you mean when viewing the pdf document the viewer reports an error.
What is the error message (or is it the helpful - there was an
error...).


> I am defining a region using <fo:region-start /> in my
> <fo:simple-page-master> I am then adding the following to my
> <fo:page-sequence master-reference="basicPSM">
> 
> <!-- side image -->
>         <fo:static-content flow-name="xsl-region-start">
>             <fo:block>
>               <fo:external-graphic
> src="http://xxx.yyy.com/resources/print_side_bar.jpg"/>
>             </fo:block>
>          </fo:static-content>
> 
> This does not work but if I put the same block into my body region it comes
> out fine???

Does text work in the static region.
If you put text before and after the image does it work.

> Any ideas would be appreciated.

Could be just some sort of pdf markup error, ending text when text was
not started or something like that.

> PS I have just joined the list ans started using fop its cool!

Cool!

> Regards
> 
> Tim Cavanagh



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org