M
mtp
I can't print on my pdf writer using Java.
CUPS pdf writer CUPS Real printer (EPSON)
Mozilla/Dia OK OK
Java app (JEdit/...) KO OK
I followed the tutorial here:
http://www.novell.com/coolsolutions/feature/17636.html
I've modified the pdf-writer to save its input. Here is an example:
=========================================
%PDF-1.2
%Çì~O¢
5 0 obj
<</Length 6 0 R/Filter /FlateDecode>>
stream
x~\+T0Ð34R0^@A^X#9~W+~P^K^@>è^DÉendstream
endobj
6 0 obj
24
endobj
4 0 obj
<</Type/Page/MediaBox [0 0 612 792]
/Parent 3 0 R
/Resources<</ProcSet[/PDF]endobj
3 0 obj
<< /Type /Pages /Kids [
4 0 R
] /Count 1endobj
1 0 obj
<</Type /Catalog /Pages 3 0 Rendobj
2 0 obj
<</Producer(ESP Ghostscript 815.01)
/CreationDate(D:20060824103114)
/ModDate(D:20060824103114)>>endobj
xref
0 7
0000000000 65535 f
0000000300 00000 n
0000000348 00000 n
0000000241 00000 n
0000000127 00000 n
0000000015 00000 n
0000000109 00000 n
trailer
<< /Size 7 /Root 1 0 R /Info 2 0 R
/ID [(¶zxbmÇ°>~A\\ñ~L^FŠc~G)(¶zxbmÇ°>~A\\ñ~L^FŠc~G)]startxref
459
%%EOF
==========================================
Is the input empty? It has an empty Bounding box:
$ gs last_input
ESP Ghostscript 815.01 (2005-09-22)
Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1
%%BoundingBox: 0 0 0 0
%%HiResBoundingBox: 0.000000 0.000000 0.000000 0.000000
GS>
Here is the log from ps2pdf in pdf-writer:
==> last_log.err <==
ESP Ghostscript 815.01: Unrecoverable error, exit code 1
==> last_log.out <==
Error: /configurationerror in --setpagedevice--
Additional information: [/ManualFeed false]
Operand stack:
--dict:3/3(L)--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1 3 %oparray_pop
1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop
..runexec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval-- 1 3 %oparray_pop --nostringval--
--nostringval-- --nostringval-- --dict:1/2(L)-- --nostringval--
2 %dict_continue
Dictionary stack:
--dict:1117/1686(ro)(G)-- --dict:0/20(G)-- --dict:106/200(L)--
Current allocation mode is local
Last OS error: 2
Thanks for any help
CUPS pdf writer CUPS Real printer (EPSON)
Mozilla/Dia OK OK
Java app (JEdit/...) KO OK
I followed the tutorial here:
http://www.novell.com/coolsolutions/feature/17636.html
I've modified the pdf-writer to save its input. Here is an example:
=========================================
%PDF-1.2
%Çì~O¢
5 0 obj
<</Length 6 0 R/Filter /FlateDecode>>
stream
x~\+T0Ð34R0^@A^X#9~W+~P^K^@>è^DÉendstream
endobj
6 0 obj
24
endobj
4 0 obj
<</Type/Page/MediaBox [0 0 612 792]
/Parent 3 0 R
/Resources<</ProcSet[/PDF]endobj
3 0 obj
<< /Type /Pages /Kids [
4 0 R
] /Count 1endobj
1 0 obj
<</Type /Catalog /Pages 3 0 Rendobj
2 0 obj
<</Producer(ESP Ghostscript 815.01)
/CreationDate(D:20060824103114)
/ModDate(D:20060824103114)>>endobj
xref
0 7
0000000000 65535 f
0000000300 00000 n
0000000348 00000 n
0000000241 00000 n
0000000127 00000 n
0000000015 00000 n
0000000109 00000 n
trailer
<< /Size 7 /Root 1 0 R /Info 2 0 R
/ID [(¶zxbmÇ°>~A\\ñ~L^FŠc~G)(¶zxbmÇ°>~A\\ñ~L^FŠc~G)]startxref
459
%%EOF
==========================================
Is the input empty? It has an empty Bounding box:
$ gs last_input
ESP Ghostscript 815.01 (2005-09-22)
Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1
%%BoundingBox: 0 0 0 0
%%HiResBoundingBox: 0.000000 0.000000 0.000000 0.000000
GS>
Here is the log from ps2pdf in pdf-writer:
==> last_log.err <==
ESP Ghostscript 815.01: Unrecoverable error, exit code 1
==> last_log.out <==
Error: /configurationerror in --setpagedevice--
Additional information: [/ManualFeed false]
Operand stack:
--dict:3/3(L)--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1 3 %oparray_pop
1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop
..runexec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval-- 1 3 %oparray_pop --nostringval--
--nostringval-- --nostringval-- --dict:1/2(L)-- --nostringval--
2 %dict_continue
Dictionary stack:
--dict:1117/1686(ro)(G)-- --dict:0/20(G)-- --dict:106/200(L)--
Current allocation mode is local
Last OS error: 2
Thanks for any help