It doesn't seem that requesting the PDF twice should affect the contents of the PDF.

Like we've said before, we really need some sample code to help you out. If you're not comfortable sending it to the list you can send it directly to me.



km wrote:
Hello

I found (propably) why I have a problem with pictures by pdf. The problem is by fo2pdf.

Can some tell me, if it is normal, that bei fo2pdf my matcher is twice called?

In Logs from httpwatch I found this:

00:00:00.000 0.803 492 3395 GET 200 text/html;charset=UTF-8 http://localhost:8080/performer/product/showPdfInfo;jsessionid=89BFD3AC418F5259F345314E30344E56?prod_id=12281&mp_id=13001&mpsession_id=7C0C2BC77B22014842AC9FEE8E0799E6&pdfContent=103336&cmid=1 <http://localhost:8080/performer/product/showPdfInfo;jsessionid=89BFD3AC418F5259F345314E30344E56?prod_id=12281&mp_id=13001&mpsession_id=7C0C2BC77B22014842AC9FEE8E0799E6&pdfContent=103336&cmid=1>
 00:00:00.822 0.013 576 3819 GET 200 text/css 
http://localhost:8080/performer/product/style/popup/popupColorDefault.css
 00:00:00.825 0.002 0 0 GET (Cache) image/gif 
http://localhost:8080/performer/product/spacer.gif
00:00:00.957 1.777 655 78107 GET 200 application/pdf http://localhost:8080/performer/product/getPdfContent;jsessionid=89BFD3AC418F5259F345314E30344E56?prod_id=12281&pdfContent=103336&cmid=1&mp_id=13001&mpsession_id=7C0C2BC77B22014842AC9FEE8E0799E6 <http://localhost:8080/performer/product/getPdfContent;jsessionid=89BFD3AC418F5259F345314E30344E56?prod_id=12281&pdfContent=103336&cmid=1&mp_id=13001&mpsession_id=7C0C2BC77B22014842AC9FEE8E0799E6> 00:00:03.139 0.657 473 78107 GET 200 application/pdf http://localhost:8080/performer/product/getPdfContent;jsessionid=89BFD3AC418F5259F345314E30344E56?prod_id=12281&pdfContent=103336&cmid=1&mp_id=13001&mpsession_id=7C0C2BC77B22014842AC9FEE8E0799E6 <http://localhost:8080/performer/product/getPdfContent;jsessionid=89BFD3AC418F5259F345314E30344E56?prod_id=12281&pdfContent=103336&cmid=1&mp_id=13001&mpsession_id=7C0C2BC77B22014842AC9FEE8E0799E6>

getPdfContent is my matcher for a webservice that have the content of pdf document.

When I change my serilize from fo2pdf to xml, this is called only once. By fo2pdf - twice.

I guess, that that why I call the pictures twice.

Can someone confirm this?

km


    Hello

    Thank you for the answer.

    The pictures are in database and they are called as a webservice.
    when I do a static file (document.fo) and put this file on
    generator, no transform, only with  fo2pdf serializer, then pictures
    are called twice too.

    I use a standard serializer from cocoon 2.1.

    kris





        Kris


        Probably best to post some "test case" code so
        others

        can try and reproduce your error (esp. if it happens

        with static files as well).



         >>> km <[EMAIL PROTECTED]> 2007/02/04 05:15:19 PM
         >>>

        Hello

        I use Apache and Cocoon 2.1 to create a PDF Document.

        I use to do it webservices - one for a content and picture_id, and
        the next one to call pictures from database. Everything work almost
        perfectly - I have only one problem when I call a picture. Every
        picture is twice called, I don't know why, becouse in my
        xsl-fo.xsl it is only a one structure to get the picture. It is
        undepent from the source - the same problem is when I use the
        document from a static file (not from Webservice from database).

        Can someone help me? I can not explain why it do so.

        Please and thanks
        Kris


        --
        ****************************
        kmConsulting
        Krzysztof Murmylo

        Mobil: +49 179 31 53 791
        eMail: [EMAIL PROTECTED]
        http://www.kmconsulting.org <http://www.kmconsulting.org/>
        ****************************

        ---------------------------------------------------------------------
        To unsubscrib! e, e-mail: [EMAIL PROTECTED]
        For additional commands, e-mail: [EMAIL PROTECTED]


        --
        This message is subject to the CSIR's copyright, terms and
        conditions and e-mail legal notice.
        Views expressed herein do not necessarily represent the views of
        the CSIR.

        *CSIR E-mail Legal Notice*
        <http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html>

        *CSIR Copyright, Terms and Conditions*
        <http://mail.csir.co.za/CSIR_Copyright.html>

        For electronic copies of the CSIR Copyright, Terms and Conditions
        and the CSIR Legal Notice
        send a blank message with "REQUEST LEGAL" in the subject
        line to CSIR CallCentre <mailto:[EMAIL PROTECTED]>


        This message has been scanned for viruses and dangerous content
        by *MailScanner* <http://www.mailscanner.info/>,
        and is believed to be clean.



    --
    ****************************
    kmConsulting
    Krzysztof Murmylo

    Mobil: +49 179 31 53 791
    eMail: [EMAIL PROTECTED]
    http://www.kmconsulting.org
    ****************************



--
****************************
kmConsulting
Krzysztof Murmylo
Mobil: +49 179 31 53 791
eMail: [EMAIL PROTECTED]
http://www.kmconsulting.org
****************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to