Embedding PDF in PDF

Hello,
I am attempting to embed a page from one PDF into the content of a new PDF, much in the same way an EPS is embedd in a PostScript document.
Only one page from the source PDF can be embedded and it needs to be placed into a bounded location as an element on a new page.
My initial though/attempt is to use a reference xObject to do this.
Is this the best, simplest, most efficent or only method to achive this?
I have tried the xObject method without success but proabbly because I have not created the object correctly. Attached is a really simple example VC project (based on the original "hello world" code), maybe someone can see a simple(silly) mistake I have made.  Am I on the right track?
TIA,
Stirling.

OK - so Postscript and EPS are programming languages while PDF is not.  So it's not the same thing.   But I understand the concept.
An XObject is correct - but a Form XObject NOT a reference XObject.  If this is for Acrobat, and you want to do this the quick and easy way, then call over to the addWatermark() method in JavaScript and let it do all the heavy lifting for you.  Or, for native plugin code in Acrobat, there is the AFPDFormFromPage() API that will also do the work of creating the necessary CosObj for you.
For PDFLibrary, you will need to do the work yourself as there isn't a high level API call.

Similar Messages

  • IWeb • How Do I Make Links in an Embedded PDF Document Open in New Page?

    On this page http://ostyn-newman.com/Gov_Downloads.html I have a PDF document that is embedded.  I tried an IFrame, but everything seemed to work better for me with the "Embed" code.  I am open to changing this if it would be better.  Here's my problem.  I can get the PDF document to display fine, but when I click on the links in the PDF document, the destination page opens in the embedded window.  I want the links to open the destination in a new window.
    I created the part of the document with most of the links (Pages 8.5 - 56) in Numbers and cut and pasted the table into a Pages document to create the completed document on our site.  I exported the docuemnt from Pages as a PDF file which is what you see.  There is also a link to download the file on the same page which works just fine.
    I have tried to insert the target="_blank" code but have not been able to get it to open the destination pages in a new window.  I am inserting the code by using the Insert/Widget/HTML Snippet Feature in IWeb.  Here is the code I am using.
    <embed src=
    "http://ostyn-newman.com/Media/GS27F0026XTextfile.pdf"
    style="width:850px; height:1000px;
    border-width:0px;
    border-color:#FFCC66;
    border-style:solid;"
    scrolling="auto" >
    </embed>
    I am not a coder and have just used Google to find the code to cut and paste and have played around with it to get to the place I am.  If anybody can tweak the code I have or offer some totally new code for me to insert that will get this to work would be greatly appreciated.
    Please keep in mind that most of the people who visit and use this page are government employees and are almost exclusivey using Explorer. 

    Thank you Jeff,
    I tried your original suggestion and now my inserted html widget reads
    <embed src=
    "http://ostyn-newman.com/Media/GS27F0026XTextfile.pdf"
    style="width:850px; height:1000px;
    border-width:0px;
    border-color:#FFCC66;
    border-style:solid;"
    scrolling="auto" target="_blank">
    </embed>
    It is live on my site.  You can see that the embedded document still opens the destination links in the embedded window.
    As for your other two suggestions, thank you as well.  I am aware of those techniques and did not use them because that is not how I want the other PDF links on the page to behave.  The catalog and autocad blocks downloads in the box at the top should simply download (or behave however the client's browser is configured to handle downloaded PDF documents or zip files.)  I don't intend to force those to open a new window.  I could also have our client click on a link to the PDF document and open it in a new page (like in your second suggestion) but I was hoping to embed the PDF and have it automatically viewable on our Download • Terms • Prices Page with all of the PDF search functions intact as well as the links be active.  My only complaint at this point is that the links in the embedded PDF document open the destination page in the embed window instead of a new window.  I only want to force a new window because the destination window doesn't behave properly when it opens in my embed window and it is difficult to figure out how to go back to the my PDF document when a destination window gets opened in the embed window.  The code you sent didn't do the trick.  Or maybe I didn't get it exactly right.  That is why I included it above.  Thanks for trying though.  I appreciate the effort.
    I would be willing to bypass the imbed/iFrame route altogether if I could just somehow drop the Pages document into the IWeb page and retain the search and link features, but I've not been able to figure out how to do that.  When I was exploring how to directly drop a Pages document into an IWeb page is when I stumbled on the method of embedding a PDF document into an IWeb page to retain the important search and link features.

  • When I try to open an embedded PDF file I get an error "The program used to create this object is AcroExch.exe.

    When I try to open an embedded PDF file (Word doc) I get an error "The program used to create this object is AcroExch.exe. That program is either not installed on your computer, or is corrupt..."  I've tried  about everything from unchecking
    protected mode at startup to removing & reinstalling Adobe.  Nothing seems to fix this issue.  Any other ideas?
    This is happening on Adobe reader 9, 10 & 11 with MS Word 2010 & 2013.  I've uninstalled, cleaned & reinstalled Reader 9, 10 & 11, as well as Acrobat 10 Pro & 11 Standard.  Removed "Protected mode at startup, and changed
    the default program for viewing from reader to Acrobat.  This will not go away.  It is affecting production at our company.

    " Help > Troubleshooting Information > Profile Directory: Open Containing Folder" . i can't find open containing folder in profile directory. it does give me the option to open the places.sqlite file using graphic converter. when i try that, graphic converter gives me a window saying that it can't be opened because it is corrupted or is not a file type supported by graphic converter.
    i appreciate your help with a workaround to get the old bookmarks. that works. however, the problem has morphed from that concern to why adobe reader [the default app.] won't open firefox .sqlite files. is the problem in adobe reader or firefox? also, how can i tell if the places.sqlite file is corrupt?
    i'm getting in over my head here and do appreciate your help.

  • Can I open embedded PDF documents in a PDF file on an iPad or Android?

    Not sure if first post got through, the forum required me to change password ...
    So I'm trying to open embedded PDF documents in a "parent" PDF document on an iPad. 
    On a PC the file opens fine.
    On an iPad 2 with Adobe's Reader the same file says it's corrupted.
    On PDF Pro the file opens, I can see the listing of embedded PDF documents but when I click on them nothing happens.
    Is there a way for a PDF file with embedded hyperlinked PDF documents to be displayed on an iPad or Android?

    pages on the iOS has access only to the camera roll to embedd pictures , but no external files.
    Content from other documents like pdf can be copied and pasted by using Adobe Reader for iOS or the iBooks.app, open the pdf , copy text , then go to pages.app and paste text into the document there.

  • Problem with printing multiple Embedded PDF in HTML page

    I have a list of embedded pdf in a html page to be printed in particular order. Using following java script i am trying silently print the pdf one by one. <br /><br />var objectList=document.getElementsByTagName("object");<br /><br />for(i=0;i<objectList.length;i++){<br />   priobj=document.getElementById(objectList[i].id);<br />   priobj.printAll();<br />}<br /><br />Actually the order of call to the printAll methods works correctly.  But the printing of PDF are not is correct order of call. <br /><br />Any Inputs or directions or workarounds on this issue will be really appreciated.<br /><br />Thanks a lot<br /><br />Prem

    HI,
    wat i understand is u r trying to loop at a variable window .but tht is not suggestable.
    write a loop in program lines. read the values in to different variables and the try printing them as text elements that will solve the problem.
    or else in other way use a template and that can also solve the problem.

  • Word files with embedded pdf's

    How does one convert a word doc with embedded pdf's to pdf and preserve the embedded files as active files using Acorbat 8 Pro?

    Cannot be done.

  • Embedded PDF won't open in IOS 7

    For months i create EPUB books with embedded PDF files. This way i created product documentation with a french and Dutch extended information file. So when a customer calls i could easily give advise for my products. This worked with a charm till IOS 6.1 and Ibooks.
    After my boss updated his iPad to IOS 7 in stead of opening the embedded PDF files iBooks opens a screen with weird text just like would happen as you open a pdf file with notepad....
    Is the reason that there were changes in linking to open embedded files.
    JPG files open as in the past using an embedded picture viewer i think...
    Can there something be done so iBooks will use an internal PDF reader and read the pdf without opening it leaving ibooks which takes to much time.
    Thanks in advance for the help
    Danny

    The plugin is where I said it was. You're looking in the wrong place. Let's try again.
    In the Finder, select Go ▹ Go to Folder... from the menu bar, copy the line of text below into the box that opens, and press return:
    /Library/Internet Plug-ins/AdobePDFViewer.plugin
    A Finder window will open with that item selected. Delete it, then quit and relaunch Safari.

  • Internet Explorer 8 with Adobe Reader 11 in one package - embedded PDF problem

    Hello,
    I am trying to package Internet Explorer 8 together with Adobe Reader 11 in ThinApp 5 for Windows 7. I am capturing on clean Windows XP with IE6. Of course, I am using "IEShims.dll" for IE8 in order to make it work in ThinApp.
    From the first look everything is ok, both application could be launched, but there are several issues:
    1) When I try to open embedded PDF file, IE hangs and loses response. I have found workaround for this: Adobe Reader should be opened at least 1 time before opening embedded PDF files. But I have found 2nd issue.
    2) Print button does not work. When I try to print embedded PDF from Adobe Reader instance, it does not work. Documents could be printed from virtual IE8 and from separate instance of Adobe Reader.
    What could you advise me? Are there any "small" tricks and tweaks that may help me with this?
    Thank you in advance!

    Have you tried capturing these application in separate packages?  I have been successful in capturing IE8 in one package and Adobe Reader XI in another package and then using the OptionalAppLinks option in the IE8 package to point to the Adobe Reader dat file.  Just make sure that both packages work outside of the applinking.  Also, you can try to install Adobe to the native machine and see if the embedded pdfs work in the virtual IE package. 
    These are just the troubleshooting steps that I would take to narrow down what is causing the issue you are seeing.
    Lance

  • Adobe Reader will not open embedded PDFs in Safari with Yosemite

    Adobe Reader will not open embedded PDFs in Safari with Yosemite installed

    That looks like a perfectly good PDF, but since it's trying to open in Microsoft Word, that means your file association for .pdf files is incorrect.  You should change it to point to Adobe Reader instead of Word.
    If you are on Windows, see http://windows.microsoft.com/en-us/windows/change-file-open-program#1TC=windows-7

  • Cannot Save or Print Embedded PDFs From IE9

    I have a machine that is having difficulty saving or printing embedded PDF’s from web pages. Embedded meaning that the PDF is displayed in a reader window, within a web page. I am able to view the PDF without any problem however if I try and click the Save button, nothing happens. If I try to print the PDF, the browser crashes.
    This is a Windows 7 32-bit machine with IE 9 installed. I am also using Acrobat Pro 10.1.2. I have tried repairing Acrobat without any success, as well as uninstalling/reinstalling without any success. I am able to open PDF documents stored locally as files without any problem, and I am also able to open PDF documents from other websites that are simply links without any problem. I have tried disabling the Display PDF is Browser setting, but that only produces a red X in the placeholder for the embedded PDF. I get the same results if I log into this computer as another user. I have other computers with identical software installed that are working just fine without a problem.
    Anyone else having problems saving embedded PDF documents from websites? I am stumped as to why this happens or how to fix it.

    I am having a similar issue only with ADP pay statements that are embedded.  I have tried to uninstall, reinstall, installed Adobe XI, installed an older version.  When we click print first the reader crashes and then IE9 crashes.  Any help would be greatly appreciated.

  • How to keep embedded PDF's in an MS Word 2010 document during export to PDF with PDFmaker

    Hi,
    I am preparing in MS Word 2010 a Software Manual with embedded PDF's
    When I double click in MS Word on the inserted PDF, Acrobat opens the embedded PDF (these are A0 CAD Drawings).
    I want this functionality also after I have converted the MS Word file to a PDF with the PDFMaker add-in (Acrobat X Pro)
    Is this possible?
    Greetzzz,
    Gerben

    No. PDF files cannot be embedded within the pages of other PDF files.
    What you could do is attach the other files after the PDF has been created, then manually link to those attachments in Acrobat.

  • Word 2010 Document with embedded pdf objects

    Is it possible to convert a word 2010 document with embedded pdf object into a PDF without loosing the functiuonality of double clicking on the Acrobat icon and opening the (embedded) document?
    Thank you for your help.

    Pretty sure that the PDF will contain exactly what you'd get if you printed the Word document. There is no promise or expectation that objects will be "live".

  • To read embedded PDF objects in .xlsx file

    Hello,
    We have a requirement to read the embedded PDF objects in excel 2007 file (.xlsx).
    We tried doing this with the ZIP approach and found that the contents of embedded objects are saved in oleObject1.bin.
    Now this .bin file is of compound file binary format and we don't know how to read contents from this file.
    Does any one knows anything about this or is there any other approach to read the pdf.
    Regards,
    Mandeep

    We are able to extract the PDF file data from OleObject1.bin file.
    Below is the code to extract the PDF file.
    DATA: lv_h type xstring,
               lv_object type xstring,
               lv_pdf     type xstring,
               lv_len type i.
    lv_h = '255044462D'.  " where this value is binary representation of '%PDF".
    FIND FIRST OCCURRENCE OF lv_h IN lv_object  IN BYTE MODE MATCH OFFSET lv_len.
    lv_pdf = lv_object+lv_len.
    Now LV_PDF will contain PDF data in XSTRING format.
    Regards,
    Mandeep

  • Unable to save changes to embedded PDF inside Excel 2007

    I'm using Excel 2007 & opening a document (in xls format).  I embed an Acrobat 9 Pro PDF file into it.  I right-click on the embedded PDF & choose Open, then make changes to it & try to save but I get "The document could not be saved.  Cannot write to this file.  Please save the document with a different name or in a different folder" error.  How do you edit embedded PDF documents inside Excel 2007?  Note: I can save the PDF externally, then edit it and put it back inside the Excel workbook.  Thanks in advance for any help.

    Hi Amita
    actually when i tried to modify the XDP file, i found that for all DCs in that particular track no XDP file has been generated. also that the templateSource property of the InteractiveForm UI Element is blank while as it should point to the template on file system.
      i checked the SAPNote 822198 as suggested on this thread Link: [Adobe Document Server issues - cannot save metadata of interactive form UI; but it has not solved my issue.
    can you please suggest wat the issue might be??
    Regards,
    Deepak Salokhe

  • Adobe Error when opening embedded PDF on IE (Sequenced with App-V 5 SP2)

    Hi,
    Lately we have packaged Adobe Reader XI with App-V 5 SP2 but we are getting an error on some users when they are trying to open embedded PDF on Internet Explorer. 
    The below screenshot is the error that is currently popping up when users try to open embedded PDF
    Any help would be greatly appreciated 
    Thanks

    Hi ant_merc,
    What happens when you try to open Adobe Reader XI in non-protected mode?
    For more information check:
    http://support.microsoft.com/kb/2900929
    http://www.appvirtguru.com/viewtopic.php?f=9&t=5043

  • Embedded pdf files will not open

    Dell Laptop Windows XP up to date, Firefox 4.0, Adobe Reader 10.0.1
    Since updating to Firefox 4.0 certain embedded pdf files will not open forcing me to use my Internet Explorer browser to access these files. Tried all of the FAQ suggestions with no relief.
    NOTE: I can open previously opened files (Firefox 3.___) but not a new one.

    Thank you for the response. I insereted several .pdf files into my MS Word document where they show as Acobat icons. When in MS Word, I am able to double-click on the icons and the files open in Acrobat. I then converted the MS Word document to a .pdf. These icons now only show as pictures and do not open the original inserted .pdf documents.

Maybe you are looking for

  • Call forwarding on qsig

    Hi I am having a problem with forwarding a phone to voice mail over leased line.I have 2 2600's each with qsig connection to pbx.when a phone is forwarded over the leased line from one end to the other it only works 50% of the time ie. when it doesn'

  • Error 2000 - The server is not compatible with this deployment client

    I'm getting an error trying to deploy a composite. It works for everyone else on the team, and our configurations are the same (as far as we can tell). We've compared JDev version info. Any idea what I can try? Thank you. [12:57:48 PM] ---- Deploymen

  • Are there any tutorials or books for an acoustic project ?

    I've been through the Martin Sitter book and so much of it is for "Loopers" . I was just at the macProVideo site http://www.macprovideo.com/tutorial/logicEnvironment and these also seem interesting but I really need just the audio info . I would love

  • Can we define different session time-outs for different user types in the DD?

    Hello, Do you know a way to specify different session time-outs in deployment descriptor for different users/roles? For example: Role-A should be invalidated after 10 minutes Role-B should be invalidated after 100 minutes Shortly, I would be grateful

  • SendScenarioEvent throwing exception while doing AddToCart

    Hi I am getting the following exception while doing an addToCart. 21:03:53,678 ERROR [CartFormHandler] CAUGHT AT: CONTAINER:atg.commerce.CommerceException: error adding to order; SOURCE:CONTAINER:atg.service.pipeline.RunProcessException: An exception