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
Rakesh ERakesh E 

Unable to view PDF content in salesforce Dev org.

Hi,

 

i am inserting a PDF document in "Document" object. i will get the body of the pdf from an API call. the document is getting inserted correctly in the documents. but when i try to view the file its just displaying "Empty PDF" without any content.

 

where as the in other sandbox i am able to view the pdf content correctly. the code which i am using to store the document is same in both the orgs.

 

one thing i observed is the same pdf document has varying sizes in two orgs.

 

please let mw know what could be the probelm for this. i have delivery today and suddenly came aross this issue, earlier i didnt face this issue.

 

is it anything related to "Document Content Searchable" check box whih i am seeing in document detail page. 

it is checked by defalult in the sandbox where i am able to view the pdf correctly, but unchecked in the org wher i am unable to view the pdf.

 

any help will be appreciated.

 

Regards,

Rakesh