How to merge PDF and html using vba

I've successfuly implemented code to merge multiple PDFs.  However when pointing to an HTML file, my code seems to leave it out and continue to merge the rest of the PDF files.  What am I doing wrong with my code?
Dim objCAcroPDDocDestination As acrobat.AcroPDDoc
Dim objCAcroPDDocSource As acrobat.AcroPDDoc
dateFormat = Format(Now, "mmddyy")
dateformat2 = Format(Now, "mm-dd-yyyy")
Dim sourcefile As String
'Initialize the objects
Set objCAcroPDDocDestination = CreateObject("AcroExch.PDDoc")
Set objCAcroPDDocSource = CreateObject("AcroExch.PDDoc")
'Open Destination, all other documents will be added to this and saved with
'a new filename
objCAcroPDDocDestination.Open ("location\Daily.pdf")
'Do your loop here to open subsequent documents that you want to add
'Do
  'Open the source document that will be added to the destination
   'objCAcroPDDocSource.Open (location & "07-" & "032613" & ".pdf")
  For count = 2 To 13
    If count < 10 And count <> 5 Then
        objCAcroPDDocSource.Open (location & "0" & count & "-" & dateFormat & ".pdf")
    Else
        objCAcroPDDocSource.Open (location & count & "-" & dateFormat & ".pdf")
    End If
    If count = 5 Then
        objCAcroPDDocSource.Open (location & "0" & count & "-" & dateFormat & ".html")
    End If
    If objCAcroPDDocDestination.InsertPages(objCAcroPDDocDestination.GetNumPages - 1, objCAcroPDDocSource, 0, objCAcroPDDocSource.GetNumPages, 0) Then
    Else
        '0 problem
    End If
    objCAcroPDDocSource.Close
  Next count
'loop
objCAcroPDDocDestination.Save 1, location & dateformat2 & "-Daily.pdf"
objCAcroPDDocDestination.Close
Set objCAcroPDDocSource = Nothing
Set objCAcroPDDocDestination = Nothing

Since I could open an .html file using Abode Acrobat 9 Pro, I thought I'd be able to pass .html to the .open() method. Am I going about this the wrong way? I have the option to select all files in a particular folder and combine them (.html and .pdf).  Does anyone know what method is called when I do this?  I have an option to "Combine Supported Files in Acrobat" when I right click on a group of files.

Similar Messages

  • How to create pdf and html usin oracle policy automation with steps.

    Hi,
    I tried to create pdf report.But they have some problem for while creating xslt.
    Pls provide more steps or simple example creating xslt and which xml use for that also.

    Below is a working (OPA 10.1) example, which I found earlier in this forum. You can call it from a document control on the summary screen. The xml is provided by the server containing all attributes with a public name.
    <?xml version="1.0" encoding="iso-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    xmlns:fo="http://www.w3.org/1999/XSL/Format"
                    xmlns:fn="http://www.w3.org/2005/xpath-functions">
    <xsl:output method="xml" indent="yes" encoding="utf-8"/>
    <xsl:template match="/">
    <fo:root>
      <fo:layout-master-set>
        <fo:simple-page-master master-name="my-page">
          <fo:region-body margin="1in"/>
        </fo:simple-page-master>
      </fo:layout-master-set>
      <fo:page-sequence master-reference="my-page">
        <fo:flow flow-name="xsl-region-body">
          <fo:block margin-top=".5cm" margin-left=".1cm" border-start-style="solid">
            <xsl:apply-templates mode="dump" select="/session"/>
          </fo:block>
        </fo:flow>
      </fo:page-sequence>
    </fo:root>
    </xsl:template>
    <xsl:template match="*" mode="dump" priority="100">
                <fo:block margin-top=".5cm" margin-left=".1cm" border-start-style="solid">
                    Node:
                    <xsl:value-of select="name()"/>
                    <xsl:if test="count(@*) &gt; 0">
                        <fo:block margin-left="1cm">
                            Attributes:
                            <xsl:for-each select="@*">
                                <fo:block><xsl:value-of select="name()"/>=<xsl:value-of select="."/></fo:block>
                            </xsl:for-each>
                        </fo:block>
                    </xsl:if>
                    <xsl:if test="string-length(normalize-space(text())) > 0">
                        <fo:block>Text Value: "<xsl:value-of select="text()"/>"</fo:block>
                    </xsl:if>
                    <xsl:apply-templates mode="dump" select="*"/>
                </fo:block>
        </xsl:template>
    </xsl:stylesheet>

  • Generate pdf and html(urgent)

    can anybody tell how to generate pdf and html from a single report,
    thanks in adv

    From a single report, you can generate outputs to html, htmlcss, pdf, rtf, XML and text formats.
    If you use rwclient, rwrun or rwservlet methods, specify desformat=pdf/html and the destination file name in desname command line parameters.
    If you use Reports Builder, open a report, select File->Generate to file and select html/pdf. Then give the file name.
    For more details, Refer to Reports Tutorial / Publishing Reports document from this site.
    http://otn.oracle.com/docs/products/reports/content.html
    Thanks,
    The Oracle Reports team

  • How to read text from PDF and HTML

    I have got solution to read text form .txt file but did'nt get code for PDF and HTML.
    I dont want to convert PDF to txt.
    Please help me ...

    reading from a file is always the same. using the same strategy used for a .txt will allow you to read a .pdf file.
    Offcourse in itself it will be useless becuase pdf files have a special internal structure.
    html files are identical to txt files.
    What are you trying to accomplisch with the files you are reading ?

  • How to read data from PDF and HTML  file

    I have got solution to read text form .txt file but did'nt get code for PDF and HTML.
    I dont want to convert PDF to txt.
    Please help me ...

    ah crap i could have guessed there would be a crosspost only the forum in where the crosspost is made is abit funny
    To OP: DO NOT CROSSPOST
    http://forum.java.sun.com/thread.jspa?threadID=5267875&tstart=0

  • A working method to load local PDF and HTML files on iOS

    I had a lot of trouble getting this to work, and I'm hoping this post saves someone time. Some of the information that's been posted in other locations is either wrong, incomplete, or might only work on Android. By the time you read this message the information here may no longer be accurate, so here's the testing environment:
    Window 7
    Flash CS 5.5.0
    AIR 2.7.0.19530, which was compiled on June 28, 2011
    iPad 1, version 4.3.5 of iOS
    Let's get started.
    On iOS, you load external PDF and HTML files using the StageWebView class.
    On Windows, StageWebView works but the HTMLLoader class is a better choice if you're creating a desktop app.
    You can also load HTML files by reading in the file's text. The information in this post is only for loading external HTML files.
    StageWebView will not load a file that's in File.applicationDirectory. All files bundled in your app are placed in File.applicationDirectory, which means you'll have to copy any external file you wish to load with StageWebView to another directory.
    So where can you copy your file? File.applicationStorageDirectory won't work. File.documentsDirectory does work.
    Several people have recommended copying to a temporary file using File.createTempFile(). This works, but there's a catch: it seems that, like Windows, StageWebView relies on a file's extension when determining how to load it. When you create a temporary file on iOS using File.createTempFile(), the file will have no extension (and on Windows, File.createTempFile() creates a file with the extension .tmp, which is equally problematic).
    The solution to the file extension problem is to rename the temporary file by appending the original file's extension. AIR currently does not have a <file>.rename() function, so you'll have to do it using <tempFile>.moveTo().
    Here's some code I've successfully tested several times on both iOS and Windows. The file is copied to the temp directory. The file's extension is restored by just slapping the original file name to the end of the temp file.
            private function loadExternalFile():void
                var webView = new StageWebView();
                webView.stage = this.stage;
                webView.viewPort = new Rectangle( 0, 0, 1024, 555 );
                // Works with either html or pdf files.
                // These are stored in the root of the application directory.
                var fileName:String = "euei.pdf";
                //var fileName:String = "euei.htm";
                var sourceFile = File.applicationDirectory.resolvePath( fileName );
                var workingFile = File.createTempFile();
                try
                    sourceFile.copyTo( workingFile, true );
                    // You have to rename the temp file
                    var renamedTempFile:File = workingFile.resolvePath(workingFile.nativePath + fileName);
                    workingFile.moveTo(renamedTempFile, true);
                    webView.loadURL( renamedTempFile.url );
                catch (err:Error) { }

    I tried this with Flash CS5.5 and AIR 4.0 SDK. Any pdf loaded simply fills the viewPort with black. Also tested with a png version of the pdf and that displayed just fine.
    What's the purpose of copying to a temp work file? I found that webView.loadURL( sourceFile.url ); gave me the exact same results.
    Any ideas?
    Thanks!

  • I am in the process of expanding a database of chemistry journal articles.  These materials are ideally acquired in two formats when both are available-- PDF and HTML.  To oversimplify, PDFs are for the user to read, and derivatives of the HTML versions a

    I am in the process of expanding a database of chemistry journal articles.  These materials are ideally acquired in two formats when both are available-- PDF and HTML.  To oversimplify, PDFs are for the user to read, and derivatives of the HTML versions are for the computer to read.  Both formats are, of course, readily recognized and indexed by Spotlight.  Journal articles have two essential components with regards to a database:  the topical content of the article itself, and the cited references to other scientific literature.  While a PDF merely lists these references, the HTML version has, in addition, links to the cited items.  Each link URL contains the digital object identifier (doi) for the item it points to. A doi is a unique string that points to one and only one object, and can be quite useful if rendered in a manner that enables indexing by Spotlight.  Embedded URL's are, of course, ignored by Spotlight.  As a result, HTML-formatted articles must be processed so that URL's are openly displayed as readable text before Spotlight will recognize them.  Conversion to DOC format using MS Word, followed by conversion to RTF using Text Edit accomplishes this, but is quite labor intensive.
      In the last few months, I have added about 3,500 articles to this collection, which means that any procedure for rendering URL's must be automated and able to process large batches of documents with minimal user oversight.  This procedure needs to generate a separate file for each HTML document processed. Trials using Automator's "Get Specified Finder Items" and "Get Selected Finder Items", as well as "Ask For Finder Items"  (along with "Get URLs From Web Pages") give unsatisfactory results.  When provided with multiple input documents, these three commands generate output in which the URLs from multiple input items are merged into a single block, which yields a single file using "Create New Word Document" as the subsequent step.  A one-to-one, input file to output file result can be obtained by processing one file at a time, but this requires manual selection of each item and one-at-a-time processing. What I need is a command that accepts multiple input documents, but processes them one at a time, generating a separate output for each file processed.  Is there a way for Automator to do this?

    Hi,
    With the project all done, i'm preparing for the presentation. Managed to get my hands on a HD beamer for the night (Epason TW2000) and planning to do the presentation in HD.
    That of course managed to bring up some problems. I posted a thread which i'll repost here . Sorry for the repost, i normally do not intend to do this, but since this thread is actually about the same thing, i'd like to ask the same question to you. The end version is in AfterEffects, but that actually doesn't alter the question. It's about export:
    "I want to export my AE project of approx 30 min containing several HD files to a Blu Ray disc. The end goal is to project the video in HD quality using the Epson  EMP-TW2000 projector. This projector is HD compatible.
    To project the video I need to connect the beamer to a computer capable of playing a heavy HD file (1), OR burn the project to a BRD (2) and play it using a BRplayer.
    I prefer option 2, so my question is: which would be the preferred export preset?
    Project specs:
                        - 1920x1080 sq pix  (16:9)
                        - 25 fps
                        - my imported video files (Prem.Pro sequences) are also 25 fps and are Progressive (!)
    To export to a BRD compatible format, do i not encounter a big problem: my projectfiles are 25 fps and progressive, and I believe that the only Bluray preset dispaying 1920x1080 with 25 fps requests an INTERLACED video  (I viewed the presets found on this forum, this thread)... There is also a Progr. format, BUT then you need 30 fps (29,...).
    So, is there one dimension that can be changed without changing the content of the video, and if yes which one (either the interlacing or the fps).
    I'm not very familiar with the whole Blu-ray thing, I hope that someone can help me out."
    Please give it a look.
    Thanks,
    Jef

  • How to download & how to merge pdfs into one pdf file?

    Hello everyone!
    I hope someone can help me, because I am SO frustrated right now! I want to create an electronic document of a 40-page thesis I wrote. I no
    longer have the original computer files, so I took digital photos of each page.
    Then I converted all the jpegs into pdf files.
    Now I want to merge these 40 jpegs into one pdf file.
    I read that this is possible with Adobe Acrobat 8 or 9. So, yesterday I downloaded the trial version of what I thought was Adobe Acrobat 9. Well,
    two whole hours later, all I could find on my computer was Adobe Reader 9, which would not allow me to merge any pdfs.
    So, today, I again reinstalled the Adobe Acrobat 9. Now, after waiting another two hours, there is NOTHING on my computer--no Adobe Reader, no Adobe Acrobat, no desktop icons, nothing in the "All Programs" list when I press the Start menu, etc.
    What happened? How could something that took so damned long to download be totally invisible on my computer now? I do see Arcsoft, but that is for photographs. Is it possible to merge pdfs together using Arcsoft?
    I have SO much other work to do, and I am so disgusted that I have lost two days on this project, just trying to merge pdfs together! Please, if
    you have any suggestions as to how to get Adobe Acrobat 9 as a trial version an/or how to merge pdfs, please answer this post!
    Thank you very much for your help.
    Courtney

    Hi. Yes, that is the link from which I downloaded Acrobat 9. I now have this file on my computer: AcroPro90_efg.exe
    Yes, I did install it, but one of the times it hanged at 99.96%. Do you know what that means?
    Thanks in advance.
    Courtney

  • Convert xml file into .pdf and .html

    hi all,
    can any one let me know how can i show xml file values into pdf and html by using java
    thanks in advance

    sreeks27 wrote:
    hi all,
    can any one let me know how can i show xml file values into pdf and html by using java
    thanks in advanceTake a look at Apache FOP:
    http://xmlgraphics.apache.org/fop/

  • How to merge cells in excel using X++ in AX 2009

     Hi all,
     How to merge cells in excel using X++ in AX 2009?
     for example i have 3 cells (A3:C3) i need to merge this 3 cells using X++
    can any one sujjest please
    Thanks in advance

    Hi,
    WinForm technology does not support X++ related cases.
    I just checked this link
    http://msdn.microsoft.com/en-us/library/aa867122.aspx and haven't found a related forum.
    I'll move your case to where is the forum for so that you may get some help about this.
    Regards,
    Barry Wang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I download and start using Premiere?

    How do I downlod and start using Premiere?

    Hi Philip2204,
    Welcome to Adobe Forums.
    Please use the below link to download Premiere Pro
    http://prodesigntools.com/adobe-cc-direct-download-links.html
    Please make sure to complete the very important instructions prior to clicking on the link.
    Thanks

  • I have downloaded the 30 day free trial using Adobe Download Assistant but I do not know how to open it and start using it.

    I have downloaded the 30 day free trial using Adobe Download Assistant but I do not know how to open it and start using it.

    This was so annoying!! It took me a good couple of hours but i figured it out, you need to do the following: Go to the folder where you saved the download (in my case i saved it in My Downloads) -> click on 'Adobe Photoshop Elements 12' -> click on 'PSE 12' -> click on 'Setup' (select the icon which is a box with a shield) -> follow instructions and....voila! You will need to restart when it suggests so save anything else first, then when it reboots you should see the icon on your desktop....hpe this helps!

  • How can my wife and I use our two iTunes account on one iPad

    How can my wife and I use our two iTunes accounts on one IPad

    Unfortunately it will be difficult. iPads are personal devices like phones and done have credentials. You can of course log out of and into the app store to download purchased apps but the iPad will then have all the apps of both your wife and you (though you could put these into folders I guess).
    /H

  • How do my wife and i use the same ipad?

    How do my wife and i use the same ipad?

    Nothing keeps you from handing it "back and forth" to share. I do this all the time on our couch with my Wife's iPad...
    I think your quesiton revolves around having your own bookmarks and other data/info on the device. 
    The iPad is meant to be a "single user device"; there isn't a login/logout to differenciate one user from another.  "The iPad isn't a computer"..  ;-)
    But, that being said, there are lots of ways to share the iPad/iOS environment.  Many apps, such as Facebook, let you login and out..  so, while you share the same app, each of your login is different.
    For bookmarks and notepad it is a little trickier..  You can each use a different browser (so all of your bookmarks are complerety seperate.)
    In some cases I would sugest a couple get a $900 Macbook Air rather than an iPad if this sharing won't work.  "Why can't I log in and out of and iPad?".  I think that the fact that it doesn't gives the iPad many adantages over a computer.
    If you have more specific questions pleaser ask away.  Just like you share the kitchen table and many other things around your household, there are many ways to make this work!  ;-)
    Matt

  • Photosmart C6180 prints too many copies of PDFs and HTML-documents

    Hi,
    My Photosmart C6180 prints multiple copies of documents even if I haven't asked for it. This seems to only apply to PDFs and HTML-documents, I haven't seen it happen with Word/Excel. It's not consistent, it happens most of the time but now always for these documents. When I look at the console, when it has started printing I see shortly the status "Printing - Restarting". That's probably when it starts the 2nd copy. Sometimes it stops by itself, other times it seems to be looping and I have to turn the printer off and delete the document from the queue.
    HP solution center SW is updated, I run Vista with latest service packs on a Thinkpad T400s.
    Any ideas?
    Thanks!

    My C6180 printed multiple copies of any document from my Vista OS laptop ( wireless connection ), but not from my
    XP OS desktop ( USB connection), even though I selected 1 copy on the print menu. Unchecking "Enable bidirectional support" in the Properties / Ports dialog box solved the problem. Hope this helps someone too.

Maybe you are looking for

  • Can i edit other files while encore is building a DVD?

    I'm in the process of creating several DVDs in encore CS6 and I would like to be able to work on the menus and timeline of a file while I am waiting for a DVD to build. It seems like encore will not let me open multiple instances of itself and nothin

  • TS1398 iPod touch shows router connection but tick box to connect does not appear

    Although it shows the wifi as connected the tick box doesn't appear just the 'spinning circle' showing it is trying to connect.  I've re-set router, network settings, restored ipod and I have other apple devices happily connected.  Model is brand new

  • LR4/Bridge CS5/InDesign CS4

    I understand why LR 4 will not allow Drag & Drop from Lightroom to InDesign. Prior to purchasing LR, I was quite happy using the ability to drag and drop photos from Bridge, right into my InDesign document. Since I do not have that luxury any longer,

  • Extended logs for Office 365 repair operation ?

    Hello, I am deploying Office 365 in parallel of an Altiris Software virtualization solution. Office 365 is deployed as a physical program but every time Visio starts, it makes a repair that is due to the virtualization packages that lie around. Is th

  • My next laptop...

    Hi guys (and girls), I'm starting college soon in multimedia and I need a computer for homeworks. At school, we'll use both Windows PCs and Mac (not sure yet about which models). So I taught I'd be better buying a Mac so I can run both OS X and Windo