I want to create an PDF Editor. Following is my requirement 1- Create a visual force page which can edit PDF lets call it is as an PDFEditor. 2- I am having another VF page called ContractPage which is rendered as PDF.  My functionality is to get all the content of “ContractPage” to PDFEditor where I can change / add or delete the content. And on save this changes should be saved to VF PDF page.   I want to edit content of PDF without using any 3 rd party software. Thanks, Swapnil
123018
I want to edit a PDF file in the Salesforce Document folder to add some text or background image to it, and then save the changes in a new PDF document.  I tried to include the PDF in a Visualforce page using  and render this page as PDF. But that didn't work, because renderAs="PDF" didn't display the iframe in the output PDF. Clearly, PDF generation in Visualforce only works with some components.  Do you have any idea how to achieve PDF manipulation in Apex/Visualforce? I thought of using a Heroku service for which I can send the PDF file to do the PDF manipulation (In Java, Ruby on any other language). Is that a viable option? Do you know any ready-to-use Heroku services that can do the job?  Thanks in advance for your help. Riadh.
46585
I have a output view page, and i want to insert a edit command button. when user click on edit button it will enable them to type on output field and save. Can anybody tell me how to do that? Thanks  &lt;apex:page standardController="Product_Brief__c" sidebar="true" showHeader="true" extensions="gibco" &gt;&lt;br/&gt; &lt;apex:form &gt;&lt;br/&gt;             &lt;apex:pageBlock mode="inlineEdit"&gt;&lt;br/&gt;             &lt;apex:pageBlockSection collapsible="false" title="Section 1: Custom Media Information (Required)"&gt;&lt;br/&gt;                 &lt;apex:outputField value="{!Product_Brief__c.Opportunity__r.Account.Name}"  Label="Company Name"/&gt;&lt;br/&gt;                 &lt;apex:outputField value="{!Product_Brief__c.Customer_Number__c}" label="Customer Number"/&gt;&lt;br/&gt;                 &lt;apex:outputField value="{!Product_Brief__c.Billing_Address__c}" /&gt;&lt;br/&gt;                 &lt;apex:outputField value="{!Product_Brief__c.CreatedBy.Name}"  Label="Contact Name"/&gt;&lt;br/&gt;                 &lt;apex:outputField value="{!Product_Brief__c.Shipping_Address__c}"/&gt;             &lt;/apex:pageBlockSection&gt;&lt;br/&gt;  &lt;apex:pageblockButtons &gt;&lt;br/&gt;                 &lt;apex:commandButton action="{!save&amp;view}" value="SAVE"/&gt;&lt;br/&gt;                 &lt;apex:commandButton value="PRINT" onclick="window.print();"/&gt;&lt;br/&gt;                 &lt;apex:commandButton value="Cancel" action="{!Cancel}"/&gt;&lt;br/&gt;             &lt;/apex:pageblockButtons&gt;&lt;br/&gt; &lt;/apex:form&gt;
110329
I need to save each layer of my psd document as a page in a multi-page PDF file (or as a single-page PDF file each as I can combine them later). File->save as->PDF works for 1 layer at a time, but I don't fancy doing this for all 150 pages of the document.   I also tried the File->Scripts->Export layers to files, but it runs incredibly slowly (actually slower than me doing it manually) and I also have to output them to images, then re-import them in acrobat which doesn't allow me (or I haven't found the option anyway) to save the document in the PDF/X-1a:2001 format I require (which is an option from the photoshop file->save as dialog).  Is there a better way? Even recommendations for another program are welcome, but obviously I would prefer Photoshop solutions.
97208
Is it possible to generate a PDF of figures and tables of a paper from LaTeX itself?  I saw Journals and Conferences asking for a separate file of tables and figures.  In  question, questioner proposed a method that uses \usepackage{endfloat} to push all the figures and tables to the last pages and then use a PDF editor to cut the last pages of PDF. This is a solution but not a good one. LaTeX should be able to do this by its own.  What I have in mind is to compile the LaTeX file and it generates a complete PDF output and beside that a separate file that contains all the figures and tables of former PDF.
55930
I know that there is a very similar question, but I'm not interested in highlighting. What I'm looking for is some tool in Linux to edit pdf files. I've tried pdfedit which did the work for me, but if freezes after a few edits. I've tried this tool under Ubuntu 9.10 and under KDE Fedora 14 and the same thing happens. I've tried Okular but the notations are too big to fill out exercises from pdf workbooks.    Is there any tool that suits this job? I don't care whether it is open source or I have to pay a reasonable price for it.
112757
I want to use Blob.toPDF() method to create attachment body, currently using:  attachmentPDF.Name = account.Name + '.pdf';  attachmentPDF.body = Blob.toPDF(pdfContent);`   Inside pdfContent I want to incorporate image and some text in this way pdfContent=EncodingUtil.base64Decode(call.Signature__c) and some text fileds too pdfContent=pdfContent+ call.Account__c. Please suggest some technical solutions using the  Blob.toPDF() method
17459
How to make Table of Contents for a set of PDF files?  Here's my code!  \documentclass{book} \usepackage{pdfpages} \usepackage[pdfauthor={&lt;somename&gt;},pdftitle={&lt;sometitle&gt;},pdftex]{hyperref} \usepackage{fancyhdr} \usepackage{tocloft} \usepackage[margin=0.5in,bottom=0.75in,top=0.75in]{geometry}   \pagestyle{fancy} \renewcommand{\headrulewidth}{0.4pt} \fancyhead[L]{X Y Z} \fancyhead[R]{} \begin{document}  \tableofcontents \newpage  \clearpage \phantomsection \includepdfset{pages=-,pagecommand=\thispagestyle{fancy}} \addcontentsline{toc}{chapter}{SAMPLE PDF 1\\ \textit{description}} \includepdf[pages=-]{template1.pdf}  \clearpage \phantomsection \addcontentsline{toc}{chapter}{SAMPLE PDF 2\\ \textit{description}} \includepdf[pages=-]{template2.pdf}  \clearpage \phantomsection \addcontentsline{toc}{chapter}{SAMPLE PDF 3\\ \textit{description}} \includepdf[pages=-]{template3.pdf}  \clearpage \phantomsection \addcontentsline{toc}{chapter}{SAMPLE PDF 4\\ \textit{description}} \includepdf[pages=-]{template4.pdf}  \clearpage \phantomsection \addcontentsline{toc}{chapter}{SAMPLE PDF 5\\ \textit{description}} \includepdf[pages=-]{template5.pdf}  \end{document}   Here's the output.    My problem is that the page number is not aligned with the title, it is aligned with the description. Also I'd like to put dots.   My desired output looks like this:
25935
I want to combine two pages in pdf file into single page.  Consider I have a pdf file in which there are two pages, now I want to combine two pages into (single) one, No-matter for (how-long) page-size!  How to do that?  Note: This question is not about combine two pdf files or merging pdf files or adding pages in pdf files.  Also visit .
37366
Is it possible that a Visualforce page rendered as pdf can be password protected?  I am using Messaging.SingleEmailMessage to send mail with attachment, but I need the attachment password protected.
111642
Consider this scenario:  I have a report to write and I want to write all mathematical formulas in a separate file and then add them in the main report file on demand (i.e. include/import/add/call a certain formula in specific part of my report).  Please note that I'm not talking about referencing or citation (\ref or \cir) to that formula. What I want, is to have the formula itself in the generated pdf. Somehow like a function call in programming languages!  Is this possible?
79277
Is  post still valid as a solution to download a pdf from third-party site, then displaying it in a Visualforce page?   This is what I'm doing in my code:  Visualforce page  &lt;apex:page controller="pdfDownloadController" sidebar="false" showHeader="false" contentType="application/pdf"&gt;     &lt;script&gt;         window.location.href = "data:application/pdf;base64,{!pdf}";     &lt;/script&gt; &lt;/apex:page&gt;   Apex Class  public class pdfDownloadController {      public String getPdf() {         HttpRequest req = new HttpRequest();         req.setEndpoint('https://www.irs.gov/pub/irs-pdf/fw4.pdf');         req.setMethod('GET');                                    // Make call         Http client = new Http();         HttpResponse rsp = client.send(req);          return rsp.getBody();      }  }   This is what loads when I go to this Visualforce page in lightning:    It doesn't appear to work when I go to classic either.  UPDATE:  As suggested by sfdcfox suggested, I used his method to display the pdf. That didn't work, but I did see these errors in the web console (Firefox):    I tried Chrome got a different browser response:    This what I get in the debug log from the response body. It looks like a pdf:
120820
I want to make Master PDF Editor (MPE) the default for opening PDF files. I right-clicked a PDF file, chose Properties > Open With. MPE was not listed. I clicked Show Other Applications but MPE was still not on the list. I tried opening the PDF file with MPE, editing, and then closing it. MPE still did not show up.  So how do I make MPE the default program, or at least appear on the Other Programs or Show Other Programs?
28181
What is the recommended way to embed PDF in HTML?   iFrame?  Object?  Embed?   What does Adobe say itself about it?  In my case, the PDF is generated on the fly, so it can't be uploaded to a third-party solution prior to flushing it.
42980
I would like to merge 4 pdfs, pdf1.pdf, pdf2.pdf, pdf3.pdf pdf4.pdf together so that the pdfs are spliced, i.e. the first page will be the first page of pdf1, the second the first of pdf2, the third the first of pdf3, etc.  The pdf files are with plain images, no table of contents.  How would I accomplish this? It would be nice to do it from Terminal as well.
39915
I am using (plain) TeX (not LaTeX or any other ...TeX). I want a pdf file made from my TeX-source/output that is able to have acrobat reader shown logical page numbers. My document’s preface page numbering should be displayed like “vi (6 of 123)” and the main part like “2 (12 of 123)” in acrobat reader’s tool bar.  How do i achieve that? Do I have to use \special, pdfTeX, dvipdfm(x)? How do I specify the roman numeral page numbers in the TeX source? Is there a (TeX) macro package for that?  Thanks to all TeX Wizards for your answers!
5170
I typically have two needs:  Scenario A. Change a single PDF page.  In this case I have a PDF but not the original source file used to create the PDF. I don't want to try to recreate the document from scratch. I'd like to open the PDF and change a few things. A good example of this scenario: I was responsible for planning a big event at a campground site, I had a PDF of the site. I wanted to start with that document, highlight some parts, add some labels, remove some parts that weren't relevant.   or   Scenario B. Combine PDFs or extract page(s) from a PDF  This scenario usually arises because I want a single PDF deliverable that is made up of parts that are best created in different programs. In this case I have the source files for all the documents but they don't play well enough together to easily create a single PDF deliverable. For part of it, I may want to use Libre Office Writer. For another page I may want to use Gimp. Still another page I may use Libre Office Calc. I could use Writer as the master document and embed images or the Calc object into that, but for ultimate control, you can't beat separate PDF documents that are then combined.  What are the best tools / processes for editing PDFs in Ubuntu?
100957
I've got a PDF that is automatically generated from a certain piece of software, that I want to include in the report I'm writing. I'm using pdfpages which gets the job done elegantly, but the problem is, the PDF has a lot of white space around the actual content (which is a graphics) and I always have to do some tedious post-processing of the automatically generated document so that it fits well in my report. Changing the output of the software to eliminate the white space is not an option (or at least, would be much more trouble than it's worth).  I checked the pdfpages , but wasn't able to find an option that does that. Ideally, I'd like to be able to set margins from each direction, and the PDF is then cropped accordingly and included.  What other options do I have to control what portion of the included PDF is visible in the final document?