tschak909 Posted December 23, 2019 Share Posted December 23, 2019 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 1 Quote Link to comment Share on other sites More sharing options...
+jedimatt42 Posted December 30, 2019 Share Posted December 30, 2019 How about formfeed? Or was it not commonly used? -M@ Quote Link to comment Share on other sites More sharing options...
tschak909 Posted December 30, 2019 Author Share Posted December 30, 2019 @jeffpiep has taken this on, and is in the middle of writing the ESP side of #FujiNet's printer emulation. @jedimatt42 this may be helpful to you guys on the TIPI, as well. https://github.com/FujiNetWIFI/atariwifi/tree/master/pdf -Thom 2 Quote Link to comment Share on other sites More sharing options...
jeffpiep Posted December 30, 2019 Share Posted December 30, 2019 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. Quote Link to comment Share on other sites More sharing options...
jeffpiep Posted December 30, 2019 Share Posted December 30, 2019 Oh, and Epson CTRL codes could be interpret by the ESP. Need to research using an Epson with 850 or XEP 80 to understand what we need on the Atari side. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.