Hi again.
I have gone deeper into the MigraDoc waters, so I can explain those aspects of my problem even closer:
When you create MigraDoc table, you have to render it, for what you have 2 options: 1st: using DocumentRenderer.RenderObject(,,,,) and 2nd: using PdfDocumentRenderer.RenderPages(,,,) -> ( yes, I did this:" PdfDocumentRenderer renderer = new PdfDocumentRenderer(true); renderer.Document = MG_document " (while MG_document is MigraDoc document).)
The difference is, that RenderObject(,,,,) is the one it keeps PDF file(in this case table) small(probably due to some "object compression")(and the one I'm currently using). But this Method puts away those 2 chars: Č,č. Second method works with Č,č but it makes pdf file so much bigger. For example, with RenderObject(,,,,) size of a table is about 3 KB(contains max 70 chars), while with PdfDocumentRenderer.RenderPages is 30 KB atleast. Lets assume I have to create 4 Tables on same PDFpage, and that PDFfile must not exceed 50 KB. This is what I am streaming for, but not many solutions so far.
I'm still hoping just to make RenderObject to accept Č,č and no other modifications needed. Looking forward to hear from you
|