• kisore poc
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 1
    Replies
hi all,
i need to translate pdf attachment to english,. i couldnt find any app exchange product or third party app with salesforce integration ,. kindly help,. 
i have lines of code in java which splits the pdf attachement ,. how to use this in salesforce,. 
below is the set of java code.
import org.apache.pdfbox.multipdf.Splitter; 
import org.apache.pdfbox.pdmodel.PDDocument;

import java.io.File; 
import java.io.IOException; 
import java.util.List; 
import java.util.Iterator;
  
public class SplitPages {
   public static void main(String[] args) throws IOException {

      //Loading an existing PDF document
      File file = new File("C:/PdfBox_Examples/sample.pdf");
      PDDocument document = PDDocument.load(file); 

      //Instantiating Splitter class
      Splitter splitter = new Splitter();

      //splitting the pages of a PDF document
      List<PDDocument> Pages = splitter.split(document);

      //Creating an iterator 
      Iterator<PDDocument> iterator = Pages.listIterator();

      //Saving each page as an individual document
      int i = 1;
      while(iterator.hasNext()) {
         PDDocument pd = iterator.next();
         pd.save("C:/PdfBox_Examples/sample"+ i++ +".pdf");
      }
      System.out.println("Multiple PDF’s created");
      document.close();
   }
}
how to split a pdf attachment ,. is there any code or integration products!?
hi , 
 how to display images and pdf in a lightning component from attachemnts,. where img src tag dosent allow pdf it supports only images
hi all,
i need to translate pdf attachment to english,. i couldnt find any app exchange product or third party app with salesforce integration ,. kindly help,.