You need to sign in to do that
Don't have an account?
Heidi Apa
Visualforce page:
Thank you!!!
How to show PDF content in iframe in visualforce
Hi!
I am trying to show a PDF content in a Visualforce for rendering this one as a PDF with more content. I am trying this but not working...
Controller:
ContentDocument contDoc; ContentVersion cv; contDoc = [SELECT Id,Title FROM ContentDocument WHERE Title ='Document]; cv = [SELECT VersionData FROM ContentVersion WHERE ContentDocumentId = :contDoc.Id AND IsLatest = true]; String contenidoPDF = EncodingUtil.base64Encode(cv.VersionData); }
Visualforce page:
<iframe src="data:application/pdf;base64,{!contenidoPDF}" height="100%" width="100%" ></iframe>
Thank you!!!
Still not working