Murat AKSU
Programmer
I want to send pdf bytes to the printer in my Android project. I watched tcp packages of an application that did this before. Does exactly that:
1-) Sending paper size, page size, margins with PLC commands.
2-) It then sends the PDF bytes. (I marked it for you)
Sends bytes like this
.*b20W....................
This is an example of how bytes are sent. (20 Bytes after W)
If I try to send a pdf created with Adobe, the bytes look like this:
This is not working for me. Because it sends a byte array that is different from the above and contains many unnecessary things.
My question is exactly this: How do I get pdf bytes like above? Will iText help me with this?
This is my pdf file (I used the same file for both tcp-packages):
NOTE: My printer is HP Deskjet 2630
1-) Sending paper size, page size, margins with PLC commands.
2-) It then sends the PDF bytes. (I marked it for you)
Sends bytes like this
.*b20W....................
This is an example of how bytes are sent. (20 Bytes after W)
If I try to send a pdf created with Adobe, the bytes look like this:
This is not working for me. Because it sends a byte array that is different from the above and contains many unnecessary things.
My question is exactly this: How do I get pdf bytes like above? Will iText help me with this?
This is my pdf file (I used the same file for both tcp-packages):
NOTE: My printer is HP Deskjet 2630