0

I am getting this Issues in Vf Page when rendered as PDF

"To" is Taking Spaces

This is my HTML Tag

<b>To,</b><br/>
<b>ABC XYZ Ltd</b>

enter image description here

when I Use the <br/> Tag I Am Facing this Issues

  • 1
    You could try rendering the page as HTML so that you can inspect the element to see what is being outputted. – BarCotter Oct 24 '14 at 12:24
  • @BarCotter In HTML Page it is coming Properly – user40138 Oct 24 '14 at 12:35
  • 1
    Adding more of your code will help other figure out the problem. Especially if you have any custom styling in place. The code snippet you provided does not replicate the problem for me. – BarCotter Oct 24 '14 at 13:03
2

OK. I think I found the issue there was a Div with alingn="justify"

some code

Once I removed the "justify" it is working properly

1

If i create the following page, i cannot see any problem:

<apex:page renderAs="pdf">
    <b>To,</b><br/>
    <b>ABC XYZ Ltd</b>
</apex:page>

enter image description here

There seems to be some strange acting CSS on your side.

You could render the page as HTML and inspect the styles, which are getting applied.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.