Jump to content
IGNORED

Rendering Epson emulated printer output to PDF on #FujiNet. Thoughts?


Recommended Posts

I have been digging through this compendium, getting ready to implement a tiny C implementation of PDF that will be enough to output "Epson MX80" compatible output to PDF.

https://blog.idrsolutions.com/2013/01/understanding-the-pdf-file-format-overview/

 

And based on my previous experience with emitting PostScript, I am understanding PDF well enough...

 

am just curious though,

 

Given that Line printer output is..output...a line at a time, What is a feasible delimiter for triggering a re-rendering of the print buffer?

 

Given how the OS P: handler works, rendering on close is something a bit bizarre, as functions like LPRINT literally do a CIO OPEN, write out the string, and immediately close...

 

Am wondering if it's feasible to just have a page cursor, and when the P: device is closed, do a re-render? Since I am running this on an ESP32 (or an ESP8266), I have to _REALLY_ be aware of the amount of working RAM (on the 8266 I have 80K of RAM, on the ESP32, I have approximately 256K of working RAM realistically), this doesn't count essentially using the flash RAM (SPIFFS) as an intermediary cache.

 

Am wondering if I can literally squeeze a single page of data into 80KB, and flush the other pages out to SPIFFS cache, to be reconstituted and streamed out when asked (via URL to the embedded web server.)...

 

hmmm

 

Thoughts?

 

-Thom

  • Like 1
Link to comment
Share on other sites

Currently I’m writing a single page PDF. I can keep adding lines that are received from P:. There’s no change needed on the Atari side, although I imagine there are features that could be desirable. Like @jedimatt42, I was also thinking a formfeed would close out the file. Or running out of lines. Or accessing the PDF over http. Or maybe there’s an http printer control panel.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...