How to merge multiple PDFs and display in a new window
Hi,
I'm trying to merge multiple PDFs into one PDF and display the output in a new window using PeopleCode. I have a button on a page, which when clicked should open a new window with the merged PDFs. I am able to succussfully merge the PDFs using the PDFmerger class (mergePDFs) but unable to display the result in a new window.
Please help.
Thanks.
I also found this piece of code very helpful.
Local PSXP_RPTDEFNMANAGER:Utility &oUtil;
Local boolean &bRtn;
/* send the output to client */
/* &sFileName = the file path /file_name.extension */
&oUtil = create PSXP_RPTDEFNMANAGER:Utility();
&bRtn = &oUtil.zipAndViewAttachment(&sFileName);
Edited by: user8260115 on Sep 9, 2009 4:57 PM
Similar Messages
-
HI Forum
I am a newbie to both Acrobat and VB,
Basically a perl Developer,
I have created a application to Merge multiple PDF's into a Single PDF, but the problem I am facing is some pages are missed during Merging
For Example
I have 4 pdf's (1.pdf, 2.pdf, 3.pdf, 4.pdf), each PDF has 2 pages, totally 8 pages,
When i merge using my application, it is getting collapsed and then merged
Here is my Code
<code>
Imports System.IO
Imports Acrobat
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MergePDF()
End Sub
Sub MergePDF()
Dim gPDDoc1 As AcroPDDoc
Dim gPDDoc2 As AcroPDDoc
Dim gPDDoc3 As AcroPDDoc
Dim gPDDoc4 As AcroPDDoc
gPDDoc1 = CreateObject("AcroExch.PDDoc")
gPDDoc2 = CreateObject("AcroExch.PDDoc")
gPDDoc3 = CreateObject("AcroExch.PDDoc")
gPDDoc4 = CreateObject("AcroExch.PDDoc")
Dim chk1 = gPDDoc1.Open("D:\sathish\1.pdf")
Dim chk2 = gPDDoc2.Open("D:\sathish\2.pdf")
Dim chk3 = gPDDoc3.Open("D:\sathish\3.pdf")
Dim chk4 = gPDDoc4.Open("D:\sathish\4.pdf")
Dim mergefile As Boolean
Dim numpg1, numpg2, numpg3, numpg4
numpg1 = gPDDoc1.GetNumPages()
numpg2 = gPDDoc2.GetNumPages()
numpg3 = gPDDoc3.GetNumPages()
numpg4 = gPDDoc4.GetNumPages()
MsgBox(numpg1 & numpg2 & numpg3 & numpg4)
mergefile = gPDDoc1.InsertPages(numpg1 - 1, gPDDoc2, 0, 1, 0)
mergefile = gPDDoc1.InsertPages(numpg2 - 1, gPDDoc3, 0, 1, 0)
mergefile = gPDDoc1.InsertPages(numpg3 - 1, gPDDoc4, 0, 1, 0)
Dim savemergefile As Boolean
savemergefile = gPDDoc1.Save(1, "D:\sathish\merged.pdf")
End Sub
End Class
</code>
I Dont know how to give the correct page end to merge,
Thanks in Advance for your Kind replies,
Thanks & Regards
Sathish V.Great idea. do you have example code? I found some code but it its contingent upon the pages having a page number on them. the pdfs im dealing with have no page numbers on the pages. also this code deletes pages in a range. I need to delete all other pages except for the page numbers on the range. thanks! Option Explicit Sub Delete_PDF_Pages() ' Adobe code based on http://vbcity.com/forums/t/51200.aspx Dim xMsg As String Dim xInput As String Dim xOutput As String Dim xResponse As Long Dim xLast_Row As Long Dim xErrors As Long Dim xDeleted As Long Dim i As Long Dim j As Long Dim AcroApp As CAcroApp Dim AcroPDDoc As CAcroPDDoc Dim AcroHiliteList As CAcroHiliteList Dim AcroTextSelect As CAcroPDTextSelect Dim xarray() As Variant Dim PageNumber As Variant Dim PageContent As Variant Dim xContent As Variant xInput = "C:\Users\jaime\Desktop\Granado LLC\test\TestPages.pdf" xOutput = "C:\Users\jaime\Desktop\Granado LLC\test\TestPages_Output.pdf" xLast_Row = [A1].SpecialCells(xlLastCell).Row ReDim xarray(xLast_Row) xResponse = MsgBox("About to delete all pages which contain values from the range A1:A" & xLast_Row & Chr(10) _ & Chr(10) & "Input:" & Chr(9) & xInput _ & Chr(10) & "Output:" & Chr(9) & xOutput _ & Chr(10) & Chr(10) & "('OK' to continue, 'Cancel' to quit.)", vbOKCancel, "Delete Pages") If xResponse = 2 Then MsgBox "User chose not to continue. Run terminated." Exit Sub End If ' Files and data OK? If Dir(xInput) = "" Then xMsg = "Input file not found - " & xInput & Chr(10) If Dir(xOutput) <> "" Then xMsg = "Output file exists - " & xOutput & Chr(10) xarray = Application.Transpose(Range("A1:A" & xLast_Row)) For i = 1 To xLast_Row If Not IsNumeric(xarray(i)) Or xarray(i) = "" Then xMsg = "Non-numeric ""Delete"" value of """ & xarray(i) & """ found on row " & i & Chr(10) Exit For End If Next If xMsg <> "" Then MsgBox (xMsg & Chr(10) & "Run cancelled.") Exit Sub End If ' Open the PDF... Set AcroApp = CreateObject("AcroExch.App") Set AcroPDDoc = CreateObject("AcroExch.PDDoc") If AcroPDDoc.Open(xInput) <> True Then MsgBox (xInput & " couldn't be opened - run cancelled.") Exit Sub End If ' Read each page... For i = AcroPDDoc.GetNumPages - 1 To 0 Step -1 Set PageNumber = AcroPDDoc.AcquirePage(i) Set PageContent = CreateObject("AcroExch.HiliteList") 'Get up to 9,999 words from page... If PageContent.Add(0, 9999) <> True Then Debug.Print "Add Error on Page " & i + 1 xErrors = xErrors + 1 Else Set AcroTextSelect = PageNumber.CreatePageHilite(PageContent) If Not AcroTextSelect Is Nothing Then xContent = "" For j = 0 To AcroTextSelect.GetNumText - 1 xContent = xContent & AcroTextSelect.GetText(j) Next j For j = 1 To xLast_Row If InStr(1, xContent, xarray(j)) > 0 Then Debug.Print "Page " & i + 1 & " contains " & xarray(j) & " - " & xContent ' To avoid problems with the delete... Set AcroTextSelect = Nothing Set PageContent = Nothing Set PageNumber = Nothing If AcroPDDoc.DeletePages(i, i) = False Then MsgBox ("Error deleting page " & i + 1 & " - run cancelled.") Exit Sub End If xDeleted = xDeleted + 1 Exit For End If Next End If End If Next i If AcroPDDoc.Save(PDSaveFull, xOutput) = False Then MsgBox "Cannot save the modified document" Exit Sub Else MsgBox (xDeleted & " pages deleted. (" & xErrors & " errors.)") End If AcroPDDoc.Close AcroApp.Exit End Sub
-
How to merge multiple PDF files with its corresponding review comments and stamps, which has stored as FDF files in WebDAV server?
Bring each FDF file into a corresponding PDF.
Use Acrobat to merge the PDF files into a new, separate PDF.
Be well... -
Merge multiple pdf files into single pdf
How to merge multiple pdf files into single pdf file through any programmatic languages? Kindly share with me.
ThanksEasy PDF
http://www.macupdate.com/app/mac/38090/easy-pdf
How To: Combine multiple PDFs in Preview
http://macenstein.com/default/2011/12/how-to-combine-multiple-pdfs-in-preview/
How to merge pdf files in OSX
http://macintoshhowto.com/leopard/how-to-merge-pdf-files-with-preview-in-leopard .html
How to Combine Multiple PDFs Using Preview
http://www.macobserver.com/tmo/article/how_to_combine_multiple_pdfs_using_previe w/ -
How do I merge multiple pdf documents into 1 with my iPad ?
How do I merge multiple pdf documents into 1 with my iPad ? We are required by our customer 1 document that includes 4 different documents from different departments. Currently with our PC we can merge PDF files, excel or word files in to 1 PDF document. How can I do the same with our iPads and iPad minis using adobe?
blogs.adobe.com We are excited to announce that Adobe CreatePDF application is now available on iOS. With this, Adobe brings rich, high-fidelity and Acrobat-like PDF creation to the iOS devices. You can now convert all your documents on iPad, iPhone & iPod touch devices to PDF for reliable, secure sharing and viewing across PCs, tablets & Smartphones.
Robert Monsalve
[signature removed by host] -
How do you merge multiple pdf's into one document?
How do you merge multiple pdf's into one document?
Hi pharmovative,
You can use the Combine PDF feature of Adobe PDF pack to combine multiple PDF files into one document. (Or, if you have the full version of Acrobat, you an do it there as well by choosing Create > Combine Files into a Single PDF.)
Please let us know if you need further assistance.
Best,
Sara -
I'd like to how to disable 'Enable JavaScript' and 'Display PDF in browser' in Adobe Reader 9.1 msi.
Any help would be appreciated.NeoChang:
You can modify the installation package using the Adobe Customization Wizard to toggle the "Display PDF in Browser" but I have not found a setting to disable JavaScript from the Wizard. I have created a script which makes the changes, but it has to be run for every user since that info is stored in the User hive of the Windows registry.
Disable JavaScript:
REG ADD "HKCU\SOFTWARE\Adobe\Acrobat Reader\9.0\JSPrefs" /v bEnableJS /d 0 /t REG_DWORD /f
Disable Browser Integration:
REG ADD "HKCU\Software\Adobe\Acrobat Reader\9.0\Originals" /v bBrowserIntegration /d 0 /t REG_DWORD /f
Michael
~Simplicity of Character is a Natural Result of Profound Thought~ -
I'm trying to organize my PDFs in iBooks on my ipad2 and can't figure out how to combine multiple PDFs into one. Any thoughts?
I'm trying to organize my PDFs in iBooks on my ipad2 and can't figure out how to combine multiple PDFs into one. Any thoughts?
-
Photoshop: How to save as a pdf and display description?
The only other Photoshop I ever used was CS3, and when I clicked "print" it saved as a pdf first, and I could choose to make it display different metadata. That feature has been removed for all newer versions for some reason, and I have no idea how to do what I want to do.
I need to save it as a pdf, and display the description/subject metadata under the photo. I can't find anything online on how to do this.BlazeHeatnix,
Due to the current unavailability of clairvoyants and mind-readers in the forum, we respectfully request you supply sensible, complete details.
Please understand that "CS5" does not clear up the issue of what version of Photoshop you are using. "Photoshop CS5 12.0.1" would.
A screen capture would be very helpful.
Also, have you trued the Print command, then Save As PDF?
BOILERPLATE TEXT:
Note that this is boilerplate text.
If you give complete and detailed information about your setup and the issue at hand,
such as your platform (Mac or Win),
exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
your settings in Photoshop > Preference > Performance
the type of file you were working on,
machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
what troubleshooting steps you have taken so far,
what error message(s) you receive,
if having issues opening raw files also the exact camera make and model that generated them,
if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
etc.,
someone may be able to help you (not necessarily this poster, who is not a Windows user).
a screen shot of your settings or of the image could be very helpful too.
Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
http://forums.adobe.com/thread/419981?tstart=0
Thanks! -
How do I print multiple PDFs AND fit them to my paper size?
Hi,
I'm using a 24 inch wide plotter with roll paper. I want to be able to print multiple PDFs AND fit them to a specified paper size. I can print one page and fit it to the paper, but I can't do it with multiple PDFs.
For example, I have two PDFs that are only 8x8 inches. I want to print them side by side on a 24 inch x 12 inch page size and fit them to size and then FIT them to the page size so the end result will be 2 PDFs printing at 12 x 12 side by side.
I can't seem to be able to do this. I'm sure I was able to do this using earlier versions. As it is, I have to print one at a time and waste half of my roll paper size.
Any help?
Adobe Acrobat Pro, Windows 7 Proffesional, HP Designjet 111 roll fed plotter.
ThanksNote this illustration is Based on Mac version of HP Print Driver standard inkjet. However Control should be smilar Layouts and titles may be different:
Adjust items shown according to pages desired -
How to Merge 1 PDF file to 50 PDF together not one by one. Using Acrobat 9 Windows xp.
Hi, How to Merge 1 PDF file to 50 PDF together not one by one. Using Acrobat 9 Windows xp.
Depending on just what you are trying to do, you can also use DOCUMENT>Insert Pages to add multiple documents or simply drag and drop the documents into the current document (OK, I have not tried this one).
-
Text issues merging multiple pdfs into one pdf
Hello, when I merge multiple pdfs into one pdf document my text is missing or garbled. I spent hours yesterday trying to figure this out, from insuring the text was embedded and print setting were correct. Please help!!
Using Adobe Pro 9.0
Thanks,
FaithAcrobat Pro is the application you use for working with PDFs, making minor edits, combining multiple PDFs into a single file, extracting or replacing pages, doing fancier form work than ID has the ability to produce, and even creating PDF from a number of other file formats. I'm not sure your question about maintaining the quality of your photos is really applicable -- it would depend on how youare getting from the photo to PDF to begin with. The use of Acrobat in and of itself won't be the determiner.
That said, I couldn't live without Acrobat Pro in my workflow. Since you are on CS5.5 you have a couple of options. You could purchase a subscription to Creative Cloud (at a discount for the first year), which would give you access not only to Acrobat, but all of the other programs and tools included in the suite, but you pay a monthly or yearly fee, or you can buy a standalone perpetual license to either Acrobat Pro or Acrobat Standard (I didn't realize Standard was still an option, and you might not need all the features of Pro -- you can compare at http://www.adobe.com/products/acrobatpro/buying-guide.html). -
When merging multiple pdf into one all pages are blank
I am currently using Adobe Acrobat Version 10.1.13. When I try to merge multiple pdf's into one all pages are blank. I ran the Repair Adobe Installation and this did not fix the problem.
Please provide me with any help/suggestions you may have.
thank you in advance for your time.Hey tricon5757,
Could you please let me know how have you tried merging PDFs.
Also, try choosing 'Document > Insert Pages' option and combine PDF one after the other.
Let me know if this works.
Regards,
Anubha -
Merging Multiple PDF Files in C# using Acrobat 7.0
I'm trying to merge multiple pdf files into one pdf file. Does anyone have sample or psuedo code for this?
Basicly, there has not much changed since version 5 so you can use also vers. 8 SDK / IAC section.
The command you to use is "insert", where the first page has to be opened and the other pages will be inserted.
If you google for PdDoc.insert you may get tons of examples and maybe also in C.
If you use Acro-Javascript via IAC you may find an example direct in the AcroJs helpfile.
HTH, Reinhard -
I have a paid subscription, but am no longer able to merger multiple pdf documents into one pdf. What's up?
Pat:
Below is a copy of an 8/7/2013 email from adobe. I prepaid a one-year subscription, and, until I recently upgraded to Windows 8, I was able to make several dozens of merged pdf documents. I seem to be no longer able to use the merge feature that I had successfully and repeated used. When I search for the merge feature I end up with a request that I pay for an upgrade monthly subscription to use the merge feature.
Tom
=================================here follows my subscription email====================================================
Welcome to Adobe ExportPDF
2 messages
[email protected] <[email protected]>
Wed, Aug 7, 2013 at 1:01 PM
Reply-To: [email protected]
To: [email protected]
Dear Thomas Corr,
Thank you for purchasing a subscription for Adobe ExportPDF.
Sign-in to export a PDF Now >>
With your subscription you can:
Enjoy unlimited online conversions from PDF to Word (DOCX).
Make scanned text editable.
Maintain page, paragraph, and font attributes.
Preserve tables, images, and multi-column text.
Export PDF comments to Word.
Help and feedback
Get help from Adobe on the Support Center.
The Adobe ExportPDF Team
Maybe you are looking for
-
How to delete a particula record from InfoObject
Dear All, I got some problem situations and would like some suggestions from any of you. <b>Problem detail</b>- one process chain was failed due to could not activate an ODS-A - ODS-A and ODS-B contained InfoObject-0BP_GUID - errors were found and re
-
Possibility to use new Mac mini with an USB-DAC?
Anybody knowing anything about the possibility to use the new Mac mini with an USB-DAC. My reason for the question is that I've heard that USB3 doesn't handle sound. I'm thinking about to buy a mac mini and use it as an HTPC and signalsource together
-
Hello All, I am trying to figure out how can a material be purchased in association with a sales order. In other way, I have a purchased part that I sell to a customer. When the part is recieved, I should inventory it first as a E stock (Sales Order
-
ECC-QA holding Data, need to go into BW-QA
Hi All, I have a situation where I see some data in ECC-QA which is destined for BW-QA (checked in sm13). For all the other functions I see excecution mode is V1/V2 but for this particular one (MCEX_XXXX_XX.)Excecution mode is collective run and upd
-
Are regular expressions limited
hey I tried this public class Main public static void main(String[] args) String string = "ksjdfjk_kjsdfjk_jkfsdjkf"; boolean match = string.contains("_.+_"); if(match == true) System.out.println("wor