|
Rank: Member Groups: Member
Joined: 10/10/2011 Posts: 19
|
Hi!
I'm currently creating boxes in html and convert them to pdf with it's contents justified. It increases the line width as expected but after a closer look I started to notice that it increases character spacing in an uniform way and not only the white spaces! It is barely noticed in some cases but I started to have specific situations where it was really evident. I checked with some webkit browsers (maybe I'm wrong but I had the idea that this library use webkit) and they only stretched the white spaces.
Is this a feature or a bug? If it's a feature is there a way to avoid it?
Thanks for your time,
Ricardo Mendes
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
I am not sure if I understand what you meant exactly. Can you post a small piece of test HTML so that we can compare the result rendered with our converter as well as with the browser?
Thanks!
|
|
Rank: Member Groups: Member
Joined: 10/10/2011 Posts: 19
|
Here's one example:
Code: HTML/ASPX
<div style="BORDER-BOTTOM: black 1px solid; TEXT-ALIGN: justify; BORDER-LEFT: black 1px solid; PADDING-BOTTOM: 5px; PAGE-BREAK-INSIDE: avoid; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; MARGIN-BOTTOM: 12px; BORDER-TOP: black 1px solid; BORDER-RIGHT: black 1px solid; PADDING-TOP: 5px">
<strong>1. Requerente </strong>
<p>Nome: XXXXXXX XXXXXXXX XXXXXX na qualidade de Proprietário NIF (n.º de identificação fiscal): XXXXXXXXX, Residência/ Sede: _____________ Localidade _____________ Código Postal _____________ Telefone/ Telemóvel: _____________ Fax: _____________ E-mail: _____________</p>
</div>
<div style="BORDER-BOTTOM: black 1px solid; TEXT-ALIGN: justify; BORDER-LEFT: black 1px solid; PADDING-BOTTOM: 5px; PAGE-BREAK-INSIDE: avoid; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; MARGIN-BOTTOM: 12px; BORDER-TOP: black 1px solid; BORDER-RIGHT: black 1px solid; PADDING-TOP: 5px">
<strong>2. Exposição do Pedido</strong>
<p>Requer a V. Exa., nos termos previstos no Regulamento de Publicidade, obtenção da licença para afixação ou inscrição de mensagens publicitárias de acordo com o seguinte: Suporte publicitário: _____________ Dimensões: _____________, Dizeres: _____________, Localização: _____________ </p>
<p>Período de licença: Anual, de _____________ a _____________ </p>
<p>Relativamente ao pedido, esclarece ainda que _____________ </p>
</div>
<p>
</p><p>Assinatura:_______________________________________________<br/>Data: 2011/12/02</p>
Here's the output: Look at the line: "S u p o r t e p u b l i c i t á r i o : _ _ _ _ _ _ _ _ _ _ _ _ _ D i m e n s õ e s : _ _ _ _ _ _ _ _ _ _ _ _ _ , D i z e r e s :". It´s so wide that even after copying it to here it inserted whitespaces in the middle! lol EDIT: But when selecting on the pdf it doesn't seem to have white spaces since I can't select them alone.
|
|
Rank: Member Groups: Member
Joined: 10/10/2011 Posts: 19
|
Just found out that there really are whitespaces in the text in the resulting pdf. In chrome pdf viewer (uses foxit reader) I can't select the whitespaces but in Adobe reader I can. So the problem really is when the text is very streached to justify it inserts whitespaces.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We have posted a new build (build .92) that should address this problem. Please see your private message for the download location.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 10/10/2011 Posts: 19
|
eo_support wrote:Hi,
We have posted a new build (build .92) that should address this problem. Please see your private message for the download location.
Thanks! It worked like a charm :) Huge thanks for the quick support! Ricardo Mendes
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
You are very welcome. Thank you very much for comfirming the fix!
|
|