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
siddik s 6siddik s 6 

any way to convert pdf to visualforce page coding

Lokesh KumarLokesh Kumar
Yes, you can salesforce has capability for this.

please go through these links.

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_output_pdf_render_in_apex.htm

https://developer.salesforce.com/page/Creating_Professional_PDF_Documents_with_CSS_and_Visualforce.

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_quick_start_renderas_pdf.htm

Happy to help please mark it best if it solved your query.
siddik s 6siddik s 6
hey you wrongly understand my qus??

i have pdf i just insert that pdf automatically vf code will be generated....then i save that codeinto a vf page ..if i run it will be give same pdf with out changing any alingnment


have any way??? 
Coding-With-The-ForceCoding-With-The-Force
I know this question is pretty old now, but through a managed package that I have produced you can now convert a pdf to visualforce page with the click of a button. The PDF is turned into images that are then stored in your local files and references in a visualforce page that my code automatically assembles for you: https://github.com/BigIVIO/PDF-to-Visualforce-Page-Converter
Amita Ranade 8Amita Ranade 8
@Coding-With-The-Force
I followed all instructions given on github but, still getting this error-
" Creating the content documents and pdf pages failed due to the following error: The workspace library could not be found. Please check the PDFtoVFP settings custom setting and make sure thatyou have the correct content library name listed there. Also ensure that you (the current user) has access to that library All changes have been rolled back."

Library name which I have mentioned in the PDFtoVFP custom setting record is correct. Is there any way to fix this issue?
 
Amardeep ChauhanAmardeep Chauhan
I am gettig same..
"
Creating the content documents and pdf pages failed due to the following error: The workspace library could not be found. Please check the PDFtoVFP settings custom setting and make sure thatyou have the correct content library name listed there. Also ensure that you (the current user) has access to that library All changes have been rolled back.
Cancel"

Do we have any update or solution ? 
Amardeep ChauhanAmardeep Chauhan
I have resloved that we need to put Name (which is coming by SOQL ) for library not Label. however i think , this app is not converting in to VF code. it is taking picture from PDF and those images store in Salesforce and showing images on VF by code.