Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to load/attach/insert a PDF file to Salesforce libraries???

Hi All,
I have been assigned to one task. where i have to load the PDFs into Salesforce libraries.
but in Salesforce and ETL tool there is no object called Libraries.So, how do i load the Pdfs to Salesforce Libraries.
if anybody has any idea please let me know ASAP.

Thanking in advance,
Amaresh
Labels (3)
2 Replies
Anonymous
Not applicable
Author

Hi,
In Talend open studio, we provide the component-tSaleforceInput and tSaleforceOutput.
Function: tSalesforceInput connects to an object of a Salesforce database via the relevant Web service and allows to extract data from a Salesforce DB based on a query.
Function: tSalesforceoutput writes in an object of a Salesforce database via the relevant Web service and allows to write data into a Salesforce DB.
Hope that is what you need.
Best regards
Sabrina
Anonymous
Not applicable
Author

Hello
For loading pdf files ,i know there is a pdf SDK which supports to detailed tutorial,and here is the code to
load pdf file.you can have a try.Or you can just visit the pdf SDK:
Hope to help you.
public static string FolderName = "c:/";
private void button1_Click(object sender, EventArgs e)
{
string fileName = FolderName + "Sample.pdf";
REDocument doc = REFile.OpenDocumentFile(fileName, new PDFDecoder());//use PDFDecoder open a pdf file
BasePage aPage = doc.GetPage(0);//get page from REDocument
REImage img = (REImage)aPage.ToImage();//translate page to image
}