Sorry, images attached.

2009/3/4 Antonio Manuel Muñiz <amunizmar...@gmail.com>

> Hello Alexis,
>
> The image is not added although it is in my file system. For example:
>
> public void imageTest() throws MalformedURLException, IOException,
> DocumentException {
>     Document document = new Document(PageSize.A4, 50, 50, 110, 50);
>     PdfWriter.getInstance(document, new
> FileOutputStream("image-test.pdf"));
>     document.open();
>     URL resource1 =
> this.getClass().getClassLoader().getResource("sonar-large.png");
>     Image image1 = Image.getInstance(resource1);
>     URL resource2 =
> this.getClass().getClassLoader().getResource("-2-black.png");
>     Image image2 = Image.getInstance(resource2);
>     document.add(image1);
>     document.add(image2);
>     document.close();
>   }
>
> I attach the images: sonar-large.png (is added correctly) and -2-black.png
> (is not added).
>
> I hope your help.
> Thanks,
> Antonio.
>
> 2009/3/3 Alexis Pigeon <pigeon.ale...@gmail.com>
>
>> Hi Antonio,
>>
>>
>> 2009/3/3 Antonio Manuel Muñiz <amunizmar...@gmail.com>
>>
>>> Hello,
>>>
>>> I have access to internet, Firefox resolve this URL and download the
>>> image without problem.
>>> The router is fully opened.
>>>
>>> ¿Any suggestion?
>>>
>>
>> I'll quote myself, from my previous post:
>> "Have you tried with the same images, but stored on your local
>> filesystem?"
>>
>> Then, if the behaviour's still the same, please provide a small stand
>> example that would help us reproduce the error. It would help us too if you
>> could also attach the faulty PDF files.
>>
>> Cheers,
>> alexis
>>
>>
>> ------------------------------------------------------------------------------
>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
>> CA
>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>> Enterprise
>> -Strategies to boost innovation and cut costs with open source
>> participation
>> -Receive a $600 discount off the registration fee with the source code:
>> SFAD
>> http://p.sf.net/sfu/XcvMzF8H
>> _______________________________________________
>> iText-questions mailing list
>> iText-questions@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>> Buy the iText book: http://www.1t3xt.com/docs/book.php
>>
>
>
>
> --
> * Antonio Manuel Muñiz
> * amunizmartin.wordpress.com
> * amunizmar...@gmail.com
>



-- 
* Antonio Manuel Muñiz
* amunizmartin.wordpress.com
* amunizmar...@gmail.com

<<attachment: -2-black.png>>

<<attachment: sonar-large.png>>

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to