EvoPdf convert large Html table use too much RAM - evopdf

I have a Html file which is roughly 4.3MB contains a table with 6 columns and 10k rows. Each cell contains 1-10 characters, has only "class" attribute for its style which is very simple (font family, font size, text color and cell color).
I converted this file to Pdf but EvoPdf used almost 11GB RAM (I built my project to run on 64bit) and crashed my IIS but didn't return any result. I tried with fewer row (5k) and EvoPdf did return result but still use a lot memory. And the result is almost 150MB.
I don't know I did anything wrong there.
And for my settings, I use repeat table header and embed font.
Can someone help me?
Thank you.

Related

How can I manage display and spacing on a Crystal Report where I have to display images between the text field?

I have a field that I'm displaying on a report that is a combination of text and codes that represent an image. Some of those icons have ascii symbols that I've used a replace formula to display them as their ascii version. For two or three of the images, I have no luck and have to display a mini picture for the representation.
The codes being sent are something like:
^he^ = ♥ ^st^ = ⭐ ^cl^ = 🍀 etc...
So for the clover leaf, there is no emoji support in my version of Crystal for clover leaves, and the ascii icon I found online for it just shows the empty square icon when an emoji isn't supported.
My workaround for this is to have a formula that converts all my icons to the appropriate ascii where supported, and to leave two blank spaces for the unsupported icons.
>stringvar gift_msg;
>gift_msg:= {DataTable1.gift_field};
>gift_msg := replace(gift_msg,"^CL^"," ");
>gift_msg := replace(gift_msg,"^HE^","♥");
>gift_msg := replace(gift_msg,"^ST^","★");
>gift_msg
I then put a suppression formula on each image that looks like this:
>mid({DataTable1.gift_field},2,4)<>"^CL^"
So I duplicated the image along the length of the field and increment the mid formula to match the field. I also set the font to Consolas so that it's fixed width to remove any surprises in spacing. My issue is that this still creates very strange spacing, and I'm almost certain there's a much easier way to do this.
One option is to use a free service such as Calligraphr.com to convert your image to a font.
Given that your image relies on several colors, the font option might not work.
Another option is to build the expression as html with image source directives where you need them. You would then need a create or use a 3rd-party UFL to convert the full expression to an image that you can load on the fly using the Graphic Location expression. At least one of the UFLs listed by Ken Hamady here provides such a function.

Table Rows are to high when converting with Docx4j

i am currently trying to convert XHTML to Docx with Docx4j.
I figured everything out but the table-row-height or the spacing of it is not ok - it always get spacing after the text. At the moment this also only happens for the first line so this is really strange
We tried to set the trHeight globally but it did not work as we wanted.
Has anyone got an Idea what to do (maybe in HTML / CSS) or what can cause this Problems of to much space between?

change height of query result rows - Oracle SQL Developer

I would like to increase the row height of the rows in the query results. I like big fonts and at some point the font becomes too big for the row.
Example: Everything is fine with font size 19:
But with font size 22, which is what I like, the underscore disappears:
Any suggestions on how to achieve this? Or other ideas to have the results (and the code, as this uses the same font size setting) in a big font? Searching google and the preferences of Oracle SQL Developer didn't help.
The best I can offer you is to leave the grid and print to the script output area. There's no restriction of line width height there.

Are cross-platform PNG-in-OTF fonts possible efficiently?

The most recent version of the Opentype font format (1.8 as of late 2016) standardizes two different tables to embed PNG bitmap data: Google’s CBDT (together with CBLC) and Apple’s sbix. Furthermore, the SVGs in Mozilla’s SVG  table can also embed or reference PNGs.
Is it possible to embed the PNG chunks once and use them in at least two tables to make cross-platform emoji font files that are not bigger than necessary?
Side question: can PNG chunks be reused for multiple glyphs, e.g. indexed color palettes?
PS: I know that Apple’s operating systems override emojis with those from a font which has the PS name AppleColorEmoji.
You can't share images across tables, e.g. use PNG images in the sbix table in the cbdt table. But if you use the exact same image files they might be "deduped" in a compressed WOFF.
Weird thing is that the CBDT/CBLC spec says a glyf table shouldn't be present, while the other formats require it. So you can't put cbdt alongside an sbix or svg table in a font. But you could combine the latter two to get relatively good support on Windows and OSX.

Apache fop : Unable to handle if single Word in text is larger than the containing block

I am new to fop , will be greatful if i get help from someone...,
I am not using XSLT tranformation but creating XSLFO file directly using Java code. Everything works fine but the problem comes when particular word(long text without space) is inserted into a cell of a table-column . That bigger word is overlapping the successive block.
I have an fo:block element in fo:table-cell which is in fo:table-row of a fo:table. This table has 6 columns, obviously column width is small. Now, when a Word in the block is larger than the block it is overlapping the next block. Give me some attribute value or any other solution to change my XSLFO file ,so that the bigger word breaks into the new line at end of the column.
Thanks in advance...
The things you need to look into are:
For the fo:table-cell: number-columns-spanned="3"
For setting the width of fo:table-column: column-width="proportional-column-width(1.5)"
The number-columns-spanned is used as attribute of and provides you with a means to select a bigger area where your fo:block fits.
The column-width makes it easy to define absolute width or, when using proportional-column-width, a width relative to the other columns.
I don't know of a way that lets FOP break words into multiple parts when they don't fit.