<div dir="ltr"><div dir="ltr"><div dir="ltr">Thanks Lloyd for your detailed explanation on what has been done, and your vision for the library. However we are already using ErlGuten in one of our production systems, and the issues is mainly with the images.</div><div dir="ltr"><br></div><div dir="ltr">I will definitely keep an eye on the development of erlpress_core in the future, as you seem enthusiastic about making it a lively library.<br><div><br></div><div>The issues we have are: </div><div><br></div><div>** When some JPEG image is embedded into the PDF, it turns out dark in the generated PDF file</div><div>** When some PNG file is embedded, it takes too long (unto 5 minutes) to generate the PDF file. Debugging shows that the delay is on <span style="color:rgb(0,0,0);font-family:Menlo;font-size:9pt">defilter(</span><span style="font-family:Menlo;font-size:9pt;color:rgb(102,14,122)">Method</span><span style="color:rgb(0,0,0);font-family:Menlo;font-size:9pt">, </span><span style="font-family:Menlo;font-size:9pt;color:rgb(102,14,122)">Line1</span><span style="color:rgb(0,0,0);font-family:Menlo;font-size:9pt">, </span><span style="font-family:Menlo;font-size:9pt;color:rgb(102,14,122)">Line2</span><span style="color:rgb(0,0,0);font-family:Menlo;font-size:9pt">, </span><span style="font-family:Menlo;font-size:9pt;color:rgb(102,14,122)">Offset</span><span style="color:rgb(0,0,0);font-family:Menlo;font-size:9pt">, </span><span style="font-family:Menlo;font-size:9pt;color:rgb(102,14,122)">Width</span><span style="color:rgb(0,0,0);font-family:Menlo;font-size:9pt">, </span><span style="font-family:Menlo;font-size:9pt;color:rgb(102,14,122)">Iter</span><span style="color:rgb(0,0,0);font-family:Menlo;font-size:9pt">) of eg_pdf_image module.</span></div><div><span style="color:rgb(0,0,0);font-family:Menlo;font-size:9pt"><br></span></div><div><font color="#000000" face="Menlo"><span style="font-size:9pt">Did you </span><span style="font-size:12px">come acrsoss</span><span style="font-size:9pt"> this?</span></font></div><div><font color="#000000" face="Menlo"><span style="font-size:9pt"><br></span></font></div><div><font color="#000000" face="Menlo"><span style="font-size:9pt">Best,</span></font></div><div><font color="#000000" face="Menlo"><span style="font-size:9pt">Theepan</span></font></div><div><font color="#000000" face="Menlo"><span style="font-size:9pt"><br></span></font></div><div><font color="#000000" face="Menlo"><span style="font-size:9pt"><br></span></font></div><div><span style="color:rgb(0,0,0);font-family:Menlo;font-size:9pt"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Menlo;font-size:9pt"><br></span></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 25, 2018 at 2:56 AM <<a href="mailto:lloyd@writersglen.com">lloyd@writersglen.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Theepan,<br>
<br>
1. If you look at ErlGuten source, you'll see that function documentation is fairly minimal and many parameters have single character names with little to no documentation. This makes maintenance and revision very difficult. I consider the core ErlGuten modules diamonds-in-the-rough.<br>
<br>
I also found the high-level page make-up functions provided by Hugh and Carl limited with respect to professional page make-up and, to me at least, a bit confusing. <br>
<br>
But erlpress_core owes a deep debt and much gratitude to the ErlGuten lineage. <br>
<br>
erlpress_core is based on Joe's font-handling, justification, and XML parsing code with few if any changes. But it provides map structures to represent nearly all of the PDF objects represented in eg_pdf_op.erl. These map structures incorporate many default parameters so generating PDF documents is syntactically simple and consistent without sacrificing expressive flexibility. You can easily customize display by instantiating map parameters with your own values. <br>
<br>
You can see most of the PDF objects currently supported by erlpress_core, including boxed text, justification options, and various line and text objects, demonstrated in ep_show_n_tell.pdf and the source in ep_show_n_tell.erl.<br>
<br>
If you look at the map definitions of the various PDF objects, you'll see how to customize display.<br>
<br>
At some point if would be good to re-write the base Erlguten modules with more explicit function and parameter documentation, but I'm not up to that at this point. But, anyone looking for a challenge is free to jump in.<br>
<br>
I'm currently working on tables and text flow across pages (think reports and book chapters). Hope to deliver these features plus much code polishing in the next release coming "real soon now."<br>
<br>
High on my wish/to-do list are:<br>
<br>
-- Easy-to_use page-grid design functions<br>
-- Imposition (printing multiple page impressions on a single sheet of paper stock)<br>
-- Articles and beads (think text jumping across columns and pages)<br>
-- Easy-to-use and expressive page make-up functions<br>
-- Example templates for various print formats<br>
-- Markdown input<br>
-- Support of TTF and OTF fonts<br>
<br>
Joe Armstrong expressed the following goal when he first announced ErlGuten: <br>
<br>
"Better than TeX." <br>
<br>
That's a tall order, yet to be realized. My hope is that erlpress will move the ball further down the field.<br>
<br>
2. I haven't done anything with image formats beyond what you'll find in eg_pdf_image.erl. I'd welcome work in that direction.<br>
<br>
3. erlpress_core is still at Version 0.01. It's just out. I'm working toward sufficient functionality and stability to support a web application that we have currently under development. <br>
<br>
4. I developed erlpress_core on Erlang/OTP 19. It does require support for maps.<br>
<br>
I see the erlpress_core library as a valuable library for embedding PDF generation into Erlang applications and as the basis for many exciting Erlang-based print production tools.<br>
<br>
So, Treepan, I appreciate your interest and would welcome your involvement in testing and feature development. <br>
<br>
I would jump for joy if some Erlang guru were to step forward take on the TTF/OTF support issue. I've done some research and have a few ideas on how expanded font support might be accomplished, but have too little time over the next several months to dig into it.<br>
<br>
Incidentally, in my previous post my iPad decided it was smarter than me and erroneously corrected my GitHUb <a href="http://address.it" rel="noreferrer" target="_blank">address.it</a> should be writersglen/erlPress_core. <br>
<br>
My intention is to bag the camel case in my next release with luck in a week or two so it should look like writersglen/erlpress_core.<br>
<br>
All the best,<br>
<br>
Lloyd<br>
<br>
<br>
-----Original Message-----<br>
From: "Theepan" <<a href="mailto:vasdeveloper@gmail.com" target="_blank">vasdeveloper@gmail.com</a>><br>
Sent: Monday, September 24, 2018 3:59pm<br>
To: <a href="mailto:lloyd@writersglen.com" target="_blank">lloyd@writersglen.com</a><br>
Cc: "Erlang Questions Mailing List" <<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>>, "Joe Armstrong" <<a href="mailto:erlang@gmail.com" target="_blank">erlang@gmail.com</a>><br>
Subject: Re: [erlang-questions] ErlGuten<br>
<br>
Hi Lloyd,<br>
<br>
Thank you for your response. I have some quick clarifications --<br>
<br>
* What are the major improvements made on the source ErlGuten? Did you<br>
improve support to different image formats? Any critical bugs fixed?<br>
* Is erlPress_core used in commercial applications, specifically of high<br>
throughput types?<br>
* What is the minimum erlang/OTP version required?<br>
<br>
Best,<br>
Theepan<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Mon, Sep 24, 2018 at 6:36 AM Lloyd R. Prentice <<a href="mailto:lloyd@writersglen.com" target="_blank">lloyd@writersglen.com</a>><br>
wrote:<br>
<br>
> Hi Thepan,<br>
><br>
> I’ve undertaken a major revision of ErlGuten called erlPress_core—<br>
> announced it on Erlang questions several weeks ago. It’s available from<br>
> GitHub as Writersglen/erlPress_core. I think you’ll find it much more<br>
> accessible than the ErlGutens.<br>
><br>
> I’ve since been polishing up the code and adding a few new features. After<br>
> the launch I learned that camel case is not conventional usage when it<br>
> comes to the names of Erlang applications and libraries. So I plan to<br>
> release the updated version as erlpress_core. With smooth sailing I hope to<br>
> release sometime this week or next.<br>
><br>
> All the best,<br>
><br>
> Lloyd<br>
><br>
> Sent from my iPad<br>
><br>
> On Sep 23, 2018, at 8:30 PM, Theepan <<a href="mailto:vasdeveloper@gmail.com" target="_blank">vasdeveloper@gmail.com</a>> wrote:<br>
><br>
><br>
> Hi Team,<br>
><br>
> I see many forks of ErlGuten. Which one is the latest, most stable and<br>
> widely used?<br>
><br>
> <a href="https://github.com/richcarl/erlguten" rel="noreferrer" target="_blank">https://github.com/richcarl/erlguten</a><br>
> <a href="https://github.com/CarlWright/NGerlguten" rel="noreferrer" target="_blank">https://github.com/CarlWright/NGerlguten</a><br>
> <a href="https://github.com/hwatkins/erlguten/commits/master" rel="noreferrer" target="_blank">https://github.com/hwatkins/erlguten/commits/master</a><br>
><br>
> Best,<br>
> Theepan<br>
><br>
><br>
> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
><br>
><br>
<br>
<br>
</blockquote></div>