You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by vic51 <vi...@qualitri.com> on 2012/10/17 01:10:44 UTC

Adobe reader doesn't display graphic data

Hi all,

I generate a PDF file with Fop-1.1.rc1 using PDFDocumentGraphics2D
PDFDocumentGraphics2D g2d;

In this pdf I write some html :
JEditorPane htmlComp = new JEditorPane();
htmlComp.setContentType("text/html");
htmlComp.read(new StringReader(html), null);
htmlComp.printAll(g2d);

And 3 charts using JFreeChart-1.0.14
JFreeChart chart = ChartFactory.createXYLineChart(...)
chart.draw(g2d, new Rectangle(l,h));

The problem :
The pdf file is OK when I read it with default pdf reader on ubuntu and osx
but when I use Adobe reader there is an error message : "There is an error
in this page ...". The chart's data is not displayed.

I join one pdf result example.

Maybe I'm doing something wrong or there is another way to do it well.
Please any advice will be appreciate.

Graph2D2PDF.pdf
<http://apache-fop.1065347.n5.nabble.com/file/n37057/Graph2D2PDF.pdf>  


Thanks in advance,

Victor



--
View this message in context: http://apache-fop.1065347.n5.nabble.com/Adobe-reader-doesn-t-display-graphic-data-tp37057.html
Sent from the FOP - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Adobe reader doesn't display graphic data

Posted by Pascal Sancho <ps...@gmail.com>.
No problem, Victor;

One can help you if you supply information and material witch can help
to reproduce issue.
As other projects, FOP website proposes a starter kit. See [1].
If you encounter some problem when running FOP, this list is the right
place where to ask.
FOP website gives an overview on how to get help: here [2].

[1] http://xmlgraphics.apache.org/fop/quickstartguide.html
[2] http://xmlgraphics.apache.org/fop/gethelp.html

2012/10/17 vic51 <vi...@qualitri.com>:
> Hi,
>
> Thanks Pascal for your answer.
>
> I am new to FOP and I my implementation was inspired by
> examples.embedding.java.embedding.ExampleJava2D2PDF.java
>
> I understand that this implémentation doesn't match with this list input.
>
> Victor


-- 
pascal

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Adobe reader doesn't display graphic data

Posted by Luis Bernardo <lm...@gmail.com>.
You are not the first one to try to use FOP in a non conventional way. 
But the fact that a PDF generated by FOP gives an error with Adobe 
Reader deserves some investigation. Can you provide your example source?

On 10/17/12 3:32 PM, vic51 wrote:
> Hi,
>
> Thanks Pascal for your answer.
>
> I am new to FOP and I my implementation was inspired by
> examples.embedding.java.embedding.ExampleJava2D2PDF.java
>
> I understand that this implémentation doesn't match with this list input.
>
> Victor
>
>
>
>
>
> --
> View this message in context: http://apache-fop.1065347.n5.nabble.com/Adobe-reader-doesn-t-display-graphic-data-tp37057p37070.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Adobe reader doesn't display graphic data

Posted by vic51 <vi...@qualitri.com>.
Hi,

Thanks Pascal for your answer.

I am new to FOP and I my implementation was inspired by
examples.embedding.java.embedding.ExampleJava2D2PDF.java 

I understand that this implémentation doesn't match with this list input.

Victor





--
View this message in context: http://apache-fop.1065347.n5.nabble.com/Adobe-reader-doesn-t-display-graphic-data-tp37057p37070.html
Sent from the FOP - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Adobe reader doesn't display graphic data

Posted by Pascal Sancho <ps...@gmail.com>.
Hi,
Please, you may feed this list with XSL-FO input, plus the image that
causes the issue.
This is the actual input for FOP, whatever the version.

2012/10/17 vic51 <vi...@qualitri.com>:
> Hi all,
>
> I generate a PDF file with Fop-1.1.rc1 using PDFDocumentGraphics2D
> PDFDocumentGraphics2D g2d;
>
> In this pdf I write some html :
> JEditorPane htmlComp = new JEditorPane();
> htmlComp.setContentType("text/html");
> htmlComp.read(new StringReader(html), null);
> htmlComp.printAll(g2d);
>
> And 3 charts using JFreeChart-1.0.14
> JFreeChart chart = ChartFactory.createXYLineChart(...)
> chart.draw(g2d, new Rectangle(l,h));
>
> The problem :
> The pdf file is OK when I read it with default pdf reader on ubuntu and osx
> but when I use Adobe reader there is an error message : "There is an error
> in this page ...". The chart's data is not displayed.
>
> I join one pdf result example.
>
> Maybe I'm doing something wrong or there is another way to do it well.
> Please any advice will be appreciate.
>
> Graph2D2PDF.pdf
> <http://apache-fop.1065347.n5.nabble.com/file/n37057/Graph2D2PDF.pdf>
>
>
> Thanks in advance,
>
> Victor
>
>
>
> --
> View this message in context: http://apache-fop.1065347.n5.nabble.com/Adobe-reader-doesn-t-display-graphic-data-tp37057.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>



-- 
pascal

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org