Converting ESC/P2 output for modern printing
-
- RWAP Master
- Posts: 2893
- Joined: Sun Nov 28, 2010 4:51 pm
- Location: Stone, United Kingdom
- Contact:
Re: Raspberry Pi - A commercial use?
Ah - thanks - that might explain why the one user gets a green background to the converted images (although I don't). It might be the different versions of gcc.
As an aside - what is the difference?
As an aside - what is the difference?
Rich Mellor
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module - add a USB printer to your QL
Also Involved in:
Icephorm
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module - add a USB printer to your QL
Also Involved in:
Icephorm
- XorA
- Site Admin
- Posts: 1628
- Joined: Thu Jun 02, 2011 11:31 am
- Location: Shotts, North Lanarkshire, Scotland, UK
Re: Raspberry Pi - A commercial use?
The first return true when any bits left of the checked bit is set. (1100 >> 1) = 110 which is still true.RWAP wrote:Ah - thanks - that might explain why the one user gets a green background to the converted images (although I don't). It might be the different versions of gcc.
As an aside - what is the difference?
The second masks out all bits to the left of checked bit. (1100 >> 1) & 1 = 0 which is false.
-
- RWAP Master
- Posts: 2893
- Joined: Sun Nov 28, 2010 4:51 pm
- Location: Stone, United Kingdom
- Contact:
Re: Raspberry Pi - A commercial use?
One of the main sticking points is the time taken to generate the final files... In particular, the PNG generation takes a while, and using ImageMagick to convert the PNG to PDF is quite slow.
I have just come across libharu which seems to include an example routine to convert PNG to PDF. Does anyone have any experience of this sort of thing?
http://libharu.org/demo/png_demo.c
I have just come across libharu which seems to include an example routine to convert PNG to PDF. Does anyone have any experience of this sort of thing?
http://libharu.org/demo/png_demo.c
Rich Mellor
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module - add a USB printer to your QL
Also Involved in:
Icephorm
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module - add a USB printer to your QL
Also Involved in:
Icephorm
-
- RWAP Master
- Posts: 2893
- Joined: Sun Nov 28, 2010 4:51 pm
- Location: Stone, United Kingdom
- Contact:
Re: Raspberry Pi - A commercial use?
Ah yes I see nowXorA wrote: The first return true when any bits left of the checked bit is set. (1100 >> 1) = 110 which is still true.
The second masks out all bits to the left of checked bit. (1100 >> 1) & 1 = 0 which is false.

Rich Mellor
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module - add a USB printer to your QL
Also Involved in:
Icephorm
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module - add a USB printer to your QL
Also Involved in:
Icephorm
Re: Raspberry Pi - A commercial use?
Thanks for this info. WIll save me the time to complete a QDOS port, which would then be way too slow.RWAP wrote:One of the main sticking points is the time taken to generate the final files... In particular, the PNG generation takes a while, and using ImageMagick to convert the PNG to PDF is quite slow.
Why are we discussing Raspberry PI software in the QL hardware section?

-
- RWAP Master
- Posts: 2893
- Joined: Sun Nov 28, 2010 4:51 pm
- Location: Stone, United Kingdom
- Contact:
Re: Raspberry Pi - A commercial use?
Is there a general hardware section then? Remember this is linked to the development of the Retro-Printer - a module which will allow the QL to print to modern USB and network GUI printersPeter wrote: Why are we discussing Raspberry PI software in the QL hardware section?

I have at least now successfully got the 720dpi ESC.3 mode (Delta Row compression) which is what I use for printing in 720dpi from the ProWeSs colour drivers. I always wanted to implement 1440dpi (and even 2880dpi), but there are no details on the web anywhere...
By the way - I had a real issue with a simple division routine in C and am at a loss as to why it didn't work.
I expected:
Code: Select all
bytePointer = seedrowStart + (xpos / 8);
bitOffset = 7 - (xpos & 8)
I had to replace this with:
Code: Select all
bytePointer = seedrowStart + (xpos / 8);
bitOffset = 7 - (xpos - (8 * (xpos /8)));
SuperBASIC is so much easier to develop in than C !
Rich Mellor
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module - add a USB printer to your QL
Also Involved in:
Icephorm
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module - add a USB printer to your QL
Also Involved in:
Icephorm
Re: Raspberry Pi - A commercial use?
Hardware? This is a pure software discussion lately.RWAP wrote:Is there a general hardware section then? Remember this is linked to the development of the Retro-Printer - a module which will allow the QL to print to modern USB and network GUI printersPeter wrote:Why are we discussing Raspberry PI software in the QL hardware section?
Re: Raspberry Pi - A commercial use?
Ain't there any books from Epson? When I bought my Epson EPL 5200 Laser, I also ordered the GQ Language Book from them for PROGS (but they did not succeed).RWAP wrote:I have at least now successfully got the 720dpi ESC.3 mode (Delta Row compression) which is what I use for printing in 720dpi from the ProWeSs colour drivers. I always wanted to implement 1440dpi (and even 2880dpi), but there are no details on the web anywhere...
Or try to ask Jochen, he was very clever in using the GQ language (even from SuperBASIC), so maybe he was lucky in using the DPI modes you need.
-
- RWAP Master
- Posts: 2893
- Joined: Sun Nov 28, 2010 4:51 pm
- Location: Stone, United Kingdom
- Contact:
Re: Raspberry Pi - A commercial use?
Peter wrote:& is the bitwise AND operation. Remainder is %.

Rich Mellor
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module - add a USB printer to your QL
Also Involved in:
Icephorm
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module - add a USB printer to your QL
Also Involved in:
Icephorm