• sophian smiths
  • NEWBIE
  • -2 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 24
    Replies
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,
    It's too hard to find the solution. Is there any other to merge pdf file.
Hello All, 

Have anybody worked on how to merge two PDF's into a single PDF in Vf page? 

Adv Thanks, 
VSK98
  • March 03, 2018
  • Like
  • 0
Hi !
I need to merge multiple PDF files.
Is there any way to do that within Salesforce ?  I found some post on that but they are pretty old : 2011, 2009...

Thank you for your help !
Download the smart PDF Recovery software which uses the advance technique to recover all the important data such as- text, images, links, comments, bookmarks, document properties, cells, tables, animation and diagram as well the Unicode characters from the corrupt PDF file in few minutes. This PDF repair tool automatically search corrupt PDF files from the system directory and repairs the corrupted PDF files which was created by all versions of Adobe Acrobat tool.

Learn here the steps of PDF Recovery Tool:  Best PDF recovery solution
 

I have a for loop that iterates over a list of Accounts and creates a PDF document for each account from an Email Template. These Attachments are inserted afterwards and the Id is saved into a field in the Account. 

Is there a way to create one PDF document with all the documents created combined? Whether at the time the documents are created or afterwards via the list of Ids. 

I am in a need to export PST to PDF and thus searching for a tool to export Outlook .PST files into Adobe PDF files. 

Can anyone suggest any good tool to export PST to PDF files? 
Hi All,

How to put password protection for pdf in atttachment.

Thanks,
Surya
Hi, i have this watermark added to my visualforce PDF but it actually override all my text.
<img src="{!URLFOR($Resource.tran_watermark)}" width="100%" height="100%" style="position:fixed; background-repeat:repeat; left:0cm; top:0cm; z-index:0; display:{!IF(quote.status == 'approved', 'none', '')}"/>


How can i push the watermark (png file) to the back?
Hi all,

I have a requirement to send set of PDF pages to a user as a single pdf.Can anybody help me to get an apex code to combine multiple PDF (Visualforce render as PDF) into one?


Thanks in advance.
  • January 05, 2016
  • Like
  • 0
Hi I am trying to merge two or more pdfs in one pdf in Salesforce, I looked into many things and searched allot but didn't got anything.
If anybody have done any POC on this thing do let me know.

Thanks
Hi,

When i render my VF page as PDF the image inside is not getting displayed from Static Resource. 
I tried using image and apex tags both did not work.

<img src="{!URLFOR($Resource.Name)}" width="100px;"/> 
<apex:image value="data:image;base64,{!$Resource.Name}"/>

The same is getting displayed from VF page. Any idea ?

I also tried searching and tried to implement the below solution which did not work for me properly.

<style>

@page {
    margin : 70pt .5in .5in .5in;
    @top-center {
        content : "My Header";
     }
    @bottom-left {
        content : "My Footer on Left Side";
        font-size : 10 px;
        color : #808080;
    }
    @bottom-center {
        content : "My Footer in center" ;
        font-size : 10 px;
        color : #808080;
    }

    @top-center {
            content : element(header);
         }
    
    div.header {
        position : running(header) ;
        background-image:url(https://myURL);
    }
    
}
</style>

<div class="header">
    <center><img src="{!$Resource.Name}" width="25%"/></center>
</div>   

 
My current application generates a pdf. I have to convert the pdf to image.
Could anyone please suggest a solution.
Hello !

I want to Split an Existing Attachment on Account into several PDF files.

What I want is to be able to click a button on Accountet that loads an apex page where you select a PDF and click "Split PDF" that saves down result in multiple PDF files at Accountet.

I would be very grateful if anyone out there has knowledge of this and can give input to how this can be resolved!

Existing pdf : attachments 1.pdf

Result:
attachments 1.pdf
attachments 2.pdf
attachments 3.pdf
Have already upload a PDF file to Salesforce, added a link in the custom page, click on the link to download the PDF file, at the same time the login name in the form of watermark is added to the PDF, my problem is I don't know how to add watermark into PDF

Hi we have requirement where we have to generate COF using visual force page  and attach/merge  documents attached under Notes/Attachment (Solution  Defenition document) section of opportunity . Here i want to know do we have any functionality in VF where we can attach PDFs to  COF PDF generated using visual force page

Hello everyone,

 

 

We already do PDF's with Salesforce, but now we want to protect those PDF's with a Password.

 

Is It possible?

 

Thanks in advance

  • October 10, 2011
  • Like
  • 0

There is a requirement that instead of generating more pdf files for all customer, can we combine all the files into a single PDF files or a zip file using Apex code

Hi there. I'm wondering if anybody in the past has merged 2 or more pdf files using the getContent()

method or something similar? Is this possible?

Thanks

  • February 24, 2009
  • Like
  • 0