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
Pragya.ax1553Pragya.ax1553 

How to generate a pdf file using word doc attached on a custom object as an attachment?

I have a requirement where using word document attached on a custom object.. we have to generate a pdf document?

can anybody help me on this ... how this can be implemeneted in Salesforce?

 

Thanks!

Pragya

Axaykumar VaruAxaykumar Varu

Hi Prgya,

 

You can generate pdf from page for that you have to set rendereas attribute as pdf,

you have word doc as attachment with custom object, is this as BLOB type?

if it is than you convert blob to string and then take content of string on page and than render content as pdf

 

this may helps you,

http://www.salesforce.com/us/developer/docs/pages/Content/pages_quick_start_renderas_pdf.htm

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_blob.htm

 

Thanks,

Akshay