Hi Mehdi,

Thanks for your reply - tried the sample on windows with the "file:/path"
notation. It worked - good tip !

Brgds
Erik


mehdi houshmand wrote:
> 
> Hi,
> 
> Sorry, my bad, looks like I could learn a thing or two about file paths:
> 
> http://en.wikipedia.org/wiki/File_URI_scheme
> 
> Though curiously in the format "file:/path" FOP worked for me... hmmm...
> 
> Mehdi
> 
> On 2 November 2010 10:15, mehdi houshmand <[email protected]> wrote:
>> Hi,
>>
>> Just to add to Peter's notes, the file path for Windows users is
>> slightly different and should be:
>> <fo:external-graphic src="file:/<INSERT FILE PATH>"/>
>>
>> e.g.
>> <fo:external-graphic src="file:/c:/tmp/pdf-image/overlay.pdf"/>
>>
>> rather than for Unix users:
>> <fo:external-graphic src="file:///tmp/pdf-image/overlay.pdf"/>
>>
>> Just in case that causes any confusion.
>>
>> Thanks
>>
>> Mehdi
>>
>> On 2 November 2010 10:07, Peter Hancock <[email protected]> wrote:
>>> Whoops - the attachment!
>>>
>>> On Tue, Nov 2, 2010 at 10:06 AM, Peter Hancock <[email protected]>
>>> wrote:
>>>> Hi Erik,
>>>>
>>>> I am not sure if my solution is the most elegant but for ideas have a
>>>> look at the files in the attached zip.
>>>> in.fo is  for the final document- you will have to change the path to
>>>> the generated overlay.pdf.
>>>> overlay.fo was used to create overlay.pdf.
>>>> out.pdf is the final result.
>>>>
>>>> For busy readers who do not have time to look at the attacmnet the
>>>> relavent fo snippet is
>>>>
>>>> <fo:block-container>
>>>>    <fo:block-container position="absolute">
>>>>      <fo:block font-size="20pt">
>>>>      Apache FOP (Formatting Objects Processor) is a print formatter
>>>> driven by
>>>>      XSL formatting objects (XSL-FO) and an output independent
>>>> formatter.
>>>>      It is a Java application that reads a formatting object (FO) tree
>>>> and rend
>>>>      Output formats currently supported include
>>>>      PDF, PS, PCL, AFP, XML (area tree representation), Print,
>>>>      AWT and PNG, and to a lesser extent, RTF and TXT.
>>>>      The primary output target is PDF </fo:block>
>>>>    </fo:block-container>
>>>>
>>>>    <fo:block-container position="absolute">
>>>>        <fo:block>
>>>>            <fo:external-graphic
>>>> src="file:///tmp/pdf-image/overlay.pdf"/>
>>>>        </fo:block>
>>>>    </fo:block-container>
>>>> </fo:block-container>
>>>>
>>>> I hope this helps.
>>>>
>>>> pete
>>>> On Tue, Nov 2, 2010 at 1:25 AM, erik pepermans <[email protected]> wrote:
>>>>> Hi,
>>>>>
>>>>>
>>>>>
>>>>> I tried to combine fop-pdf-images-2.0.0 with fop-1.0
>>>>>
>>>>> So far so good. How can I use the pdf document from the
>>>>>  fo:external-graphic
>>>>> command as an overlay for subsequent blocks ?
>>>>>
>>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>>
>>>>> Brgds
>>>>>
>>>>> Erik
>>>>>
>>>>> --
>>>>> This message has been scanned for viruses and
>>>>> dangerous content by MailScanner, and is
>>>>> believed to be clean.
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/using-an-existing-pdf-as-overlay-tp30110093p30119104.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to