icepdf english font dislocation overlap - icepdf

icepdf PDF to image, appear english font dislocation overlap, look the image
I Used jar version :
<artifactId>icepdf.core</artifactId>
version>4.3.4.1</version>
<artifactId>icepdf.viewer</artifactId>
<version>4.3.4</version>
I want get result
help appreciated

Related

How to set font size and font family at the same p

Can you give me a sample code on how to make a paragraph/text with text size and font, I only know the code that uses different sizes without font, and the code with the font but without resizing, here is my code: <p style="font-family:arcade classic", "font-size:40px">Use the arrow keys (on your keyboard) to move your frog, avoid cars, jump on logs (flowing on the water), and jump on turtles (note that every few seconds, they swim underwater, then go back on the water's surface again, if you are on top of that turtle and it sinks, you die)</p>
use CSS like
p{font-family:"poppins", sans-serif; font-size:2em;}
/* do not forget to import Poppins from google font */
You must use one single string in your style attribute
<p style="font-family:arcade classic; font-size:40px"></p>
You had a syntax problem. You should have used a semicolon where you used a comma as #farshid-mousavi said.

svg mat-icon doesn't render correctely

I have a simple div where i display three different icons that have different colors.
Acctualy icons are displayed, but it shows all the time the same icons either attention-warning or attention-error icon, knowing that the html code contains different icons depending on the condition.
Here i have an example where the second icon should be an attention-warning icon (yellow) but it display an attention-error icon (red) instead.
I have tested my code in both browsers, Chrome and Edge and i get same result (all red or all yellow).
Bellow code generated.
Any help please to fix this problem.
Here is my code in stackblitz
The icons should be in this color
The problem comes from my SVG, they have same ids
after changing those ids the icons displayed perfectely as expected.
Before:
After :

display text as square symbols instead of letters

Is there a simple css way to display text with every letter replaced with a filled square?
My idea was to find a font-family that has squares for all letters, but I didn't find anything like that existing. Google is no friend as it gives hits of posted issues with boxes that appear when fonts fail in some way.
Letters should be displayed as squares, not replaced with squares. Also, I need to be able to control the square fill color with the usual html/css.
I'm fine to use font-face, but am trying to avoid the learning curve for creating my own font.
Update: here is an example:
div.innerHTML = "some arbitrary text".
Should be displayed like this:
"■■■■ ■■■■■■■■■ ■■■■".
#NoobEditor is right although. Many online font editors available (e.g.: http://fontark.net/farkwp/ ), you can create such font family in few minutes and can embed with your app.
Get a square font, define it in your we page style, asign it to an object, a div must work, put your text there. Voila.

Strange difference between HTML and SVG span rendering in Safari

This question is a little specific and I am hoping someone here can shed some light on a potential solution for me.
All of the following points are important:
I am writing some HTML pages that are going to be read on a third party hand-held device.
In order to fit the requirements of this device each word must be in a separate span, this is for an upcoming feature of the device that I am not allowed to go into, but it has to be formatted like this.
This HTML is being converted from SVG, the SVG is created from Adobe Illustrator documents.
The only place I have any control of the creation of the HTML is in the conversion from SVG to HTML.
My problem is this, in SVG text is broken down into "text" nodes and tspan nodes. Look at this simple SVG, note how I am changing the Y coord on the first tspan.
<text><tspan y="50">Hello</tspan><tspan> World</tspan></text>
When this renders in a webkit based browser, like safari, the sentence "Hello World" is displayed with the word "World" right next to the word "Hello".
In my converted HTML example:
<div><span style="position:absolute;top:50px;">Hello</span><span> World</span></div>
"Hello" is displayed with a y offset of 50, however "World" is displayed in the top left corner origin of the page.
This is frustrating as I do not have the coords of where the "World" span should be placed in the SVG (as Illustrator does not need this coord to render it correctly). Also, there may be one or more tspans in the SVG with altered positions which will prevent me from applying the style to the div.
In short, does anyone know if there is an attribute I can set to place the second span directly after the first?
Thanks
You could style the div instead of the span
<div style="position:absolute;top=50px;"><span>Hello</span><span> World</span></div>
That would keep text-chunks together and positioned relative to each other, but you could still have a span for every single word
Have figured this out after trying a bunch of different things.
It is actually very straightforward, however I didn't realise spans could be nested so I am going to let myself off.
<div><span style="position:absolute;top:50px;"><span>Hello</span><span> World</span></span></div>
The trick is to wrap all the words that need to be grouped together in a span. Hopefully this helps anyone who is stuck on a similar issue.

I have done slicing with photoshop set the back ground in HTML and want to enter some text on the slice for text how do I do that?

I have sliced an image making an HTML file with tables. I centered it with tag and then I put the background image which repeats which I want it to repeat. and now I want to put some text on the field which I had specified for putting text.( I want to put text on an image which is there in table format) I don't know how to put text on that text field(table)with image. Please answer in detail as much as possible as I am new to the technology.
Thanks for reading and replying.
Are you looking to have your text be embedded in the image or keep it as html text that can be selected and spidered?
If it's the latter, I've always exported my sliced up image and html then opened it up in dreamweaver. I then go to the section I want text to appear and I set the image occupying the space as the background image for that table cell (<td background="/path/to/myslice_1.jpg">some text</td>). You can then put whatever you like inside the cell such as text. You just have to keep in mind the size and amount of text you want to fill the space as your slicing up the image, because anything that takes up more space than you've allowed will break your slices apart.
Hope that helps.
You might want to add some STYLE to your table cell(s), because html works with css just fine.
AsWuLongTi mentioned above, you can write:
<td>text</td>
and then use css option 'style' on it:
<td style ="background: red;">text</td>
then in place of 'red' set path to your image:
<td style="background-image: url("/path/to/myslice.jpg");">text</td>