Hello, can you help me please, how to get LPD data file from my capture file? I know hot to get data file from IPP protocol, but I have problems with LPD (data file is divided into more frames - IPP data file is in one frame so I can just export it easily). Here is my printcap file: http://speedy.sh/9ZEV7/LPDtext.pcapng Thank you! :) asked 10 Dec '13, 15:05 Andyn |
One Answer:
Right click on any of the LDP frames and choose "Follow TCP Stream". In the pop-up window that appears, de-select 'Entire conversation' from the drop down box and choose the data direction that shows the string "%!PS-Adobe-3.0". Then select everything between %!PS-Adobe-3.0 and %%EOF (including those two). Press CTRL-C (Copy) and paste it into a Text Editor. Then save it as test.ps (PostScript file). UPDATE Unfortunately copy-paste to an editor does not work, as there are some binary characters the will get lost. So, please use the following method:
GSview shows the following content for your document:
Regards answered 11 Dec '13, 05:54 Kurt Knochner ♦ edited 12 Dec '13, 00:09 showing 5 of 8 show 3 more comments |
Thank you for your reply. I tried it but it doesn't work. I print from Mac OS X 10.9 to Ubuntu 13.04. When I save these lines to pdf on my MAC, content of the new PDF file is the same like before (%!PS-Adobe-3.0...%%EOF). When I try it on Ubuntu, the opened PDF file is loading its content infinitely. But output of my printer (CUPS PDF virtual printer) is correct.
sorry, my fault. It's a PostScript file not a PDF file. I simply chose the wrong extension and I've corrected my answer.
If you want to view that file, you'll need a PostScript viewer, like GSview or Adobe Acrobat Reader.
Thank you, but it didn't help. I think there is a problem in that data file. Structure of the PDF file looks strange. Or not? Maybe there is a problem with Mac...
I sent another file with IPP from Mac -> Ubuntu and I have the same problem (but I had sent it with IPP from Ubuntu -> Mac without problems).
It's not a PDF file. It's Postscript!
BTW: Do you think you will get the original document (PDF, word, etc.) if you extract IPP or LPR/LPD data? You won't. It's either PCL, Postscript, GDI or any other 'printer language'. In your case it is Postscript.
see the UPDATE in my answer.
It works now. Thank you very much!!! :)
Good.
Hint: If a supplied answer resolves your question can you please "accept" it by clicking the checkmark icon next to it. This highlights good answers for the benefit of subsequent users with the same or similar questions.