function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Help to remove underline in PDF



        I am generating PDF using Visualforce for costom object. My custom object contains many lookup fields.

I have a page which has one or more lookup fields of the object. I am using outputField tag of apex to display the value of the lookup fields. The page is getting rendered with values in PDF but the hyperlink is also rendered.

i need the help to supress the underline. But  in HTML using stylesheet, I can supress underline but for PDF I am not able to supress. Is there any way to remove the underline for Lookup fields in PDF?


Any kind of help would be greatly appreciated. Please let me know your thoughts.


Thanks in advance.


im having this problem too.

anyone know how to remove the underline?


I am having the same problem as well. apexoutputtext will only rennder a code and not the value of the field.


I figured out how to remove this underlline. In your SOQL query lookup the realtionship table using "" rather than __c. This will allow you to display the field without the link.