Part of Html which I try to export is: <br />
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAQCAYAAAAvf+5AAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAEZ0FNQQAAsY58+1GTAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAARwQAAEcEBPn1jhwAAALtJREFUeNqt0TELAUAYxvELScpoN1CKTexGKcliUGaTweIb2PkQBpuSSCzIYlEmg5iUTYks+F/d8KbuGDz1q/fqqbveU+rHeMWcRAVBHPGyFR8oo40DNq7iDiWE0ZVFz8dTTugji4SreMUQAeRdRZ01tih+K54xQsZswlqMIGfmqq0YxRR1rOT1shjHAg3MMEAMaVnUb1miY9aj08MdNX3wIYWxWUtL3LDHBAX49c88cUPTzDJzhHBRf88bmvkkzNERKWoAAAAASUVORK5CYII=" style="page-break-inside: avoid;width: 1.355ex; height: 2.176ex; vertical-align: -0.338ex;" data-source="lambda"/><br />
Browsers render the image correctly – it is a “lambda” letter and it is vertically aligned with the text around. When I create a PDF from this code, vertical alignment does not work and “lambda” is rendered a bit higher.
Is the a support for it in 3.9.0 version? Or is there any workaround?
We have tried the proposed workaround with position: relative; top: , unfortunately it did not work. We have tried to modify values of top manually so they would result in a good result in PDF, but did not find any rule or algorithm or coefficients that could be generally used to adjust the vertical alignment in PDF correctly.
It would be great if you could help us solve this problem, as in the current state exported document is almost not usable.
I am attaching the link to a sample HTML document (original with vertical-align) that we are trying to export: https://drive.google.com/file/d/18EWWqF7Ij_t-qQ6bf8VOY9ESTMZrQumO/view?usp=sharing. I can also provide documents with vertical-align changed to position: relative; top: … if that could help.