Launch PDF from HTML and execute search

Is it possible using JavaScript in an HTML doc to launch a PDF and execute a search.query with a passed-in search parameter? TIA

Hello, George, thanks for following up.  I went into Advanced->Document Processing->Document JavaScripts and put the code at the top of the file outside of the dummy function declaration I had to insert to activate the edit button.  It looks like this:
// Split the file path into an array
var aPath = this.path.split("/");
// Remove the last element, which is the file name
aPath.pop();
// Join the path elements back together and add the index file
var cIdxPath = aPath.join("/") + "/Support Documents/SupDocs.pdx";
search.query ("Enhanced Tactical Automated Security System (eTASS)", "Index", cIdxPath);
function Search()
It runs fine when I launch the PDF directly into the reader by double-clicking in file explorer in the folder above "Support Documents".  When I load the PDF from an HTML file in the same folder, however, the script does not run.  I set the reader preferences to force loading in the reader even when launched from a browser, and the script still will not execute.  I tried adding a button to the PDF and attaching the search script to it.  Again, it runs when launching directly but not from the HTML document.  Otherwise, the PDF is empty, and I'm using a relative URL and JS to load it from the HTML doc, such as:
document.location = "mySearch.PDF"
or
window.open("mySearch.PDF", "searchwin");
Neither one works.  This product has to run from a CD-ROM, so I haven't bothered to test it via http service.  Any suggestions?  Thanks again!
Jon Camp
Senior Computer Scientist
Applied Research Associates, Inc.
North Florida Division
Training Solutions Group
430 W 5th Street Suite 700
Panama City, FL  32401
comm: 850-914-3188 x203
fax: 850-914-3189
email: [email protected]

Similar Messages

  • Can't pinch and zoom pdfs from HTML Resources anymore

    After Folio Viewer Update there is no pinch and zoom in pdf from HTML-Resources.
    Before the Update everything works fine in my Folios. Has anybody the same problem?
    I rebuild a Folio V32, Only vertical, Standard PDF - same Problem. (iOS8.0.2. Ipad)
    Is there a solution?
    Thanks

    Yes. I am having the same problem. I cannot pinch and zoom into pdfs from HTMLResources.zip, which is making them unusable in my app for the phone version.

  • Table Header not Recurring - when Generate PDF from HTML with tables

    Hello,  It is not working as expected...and I'm not sure if the functionality is supported.  Want to create PDF from html document. The html document contains a html table that typically contains a large number of rows.  To make reading easier the html table used thead and tbody elements, and their children, so that when the table extends across pages when printed the header element recurs on each page.  However, the header element is not recurring in the generated PDF document (it only occurs in the first row of the table).  Just wondering if you have tried or used this functionality (created PDF from html with table with headers and the PDF included the table with recurring table header.  And if so, did you do anything special to make it work.  Thanks for any insight.

    If there's a problem with that package, I suggest you speak to the developer of that package and ask them to investigate.  It's not an Oracle supplied package so you are wrong to look for help here.

  • I'm attempting to create a pdf from InDesign and the Illustrator image does not appear properly.

    I'm attempting to create a pdf from InDesign and the Illustrator logo does not appear properly. The logo has a light blue color background with a black to white gradiant over it with a multiply designation set at 100%.  I flattened the logo in illustrator before importing into InDesign. When the pdf is created, the blue background of the logo drops out and the only thing showing is the graduated screen of black. PLEASE HELP!!!!!!

    Thanks for your reply Peter,
    I'm on Mac OSX (10.5.8) using Acrobat 7 Professional and Acrobat 
    Reader 9 to view the pdf. I created it by exporting. Attached is a 
    screen capture of the letterhead. Since I posted, I sent a test pdf to 
    my partner's computer eventhough it didn't look right on my system and 
    she said it looked fine to her. I've restarted my computer and tried 
    again and still get the same results.
    Thanks for your help,
    Pat Boullion
    Boullion Graphics
    281 444-5749
    Fax: 281 444-6507
    CONFIDENTIALITY NOTICE
    The information in this email may be confidential and/or privileged. 
    This email is intended to be reviewed by only the individual or 
    organization named above.
    If you are not the intended recipient or an authorized representative 
    of the intended recipient, you are hereby notified that any review, 
    dissemination or copying of this email and its attachments, if any, or 
    the information contained herein is prohibited. If you have received 
    this email in error, please immediately notify the sender by return 
    email and delete this email from your system.

  • Combining PDFs from MACs and PCs

    Is there a way to effortless combine fairly large pdfs created on MACs and on PCs (usually containing images and tables)? We have had terrible problems with this, including image  and caption distortion, etc. Sometimes, we are unable to create pdfs on a PC if we are sent a Word document created on a MAC.
    Any advise could be greatly appreciated.
    Thanks.
    Steve

    If I print to PDF, nothing at all happens.
    If I try to do a Save As, I get the following message:
    “The export failed. The document could not be prepared for exporting.”
    If I right click on the file name and use Convert to Adobe PDF, it will start the process and then stop and return to the Word document.
    Re: Combining PDFs from MACs and PCs
    created by Test Screen Name <http://forums.adobe.com/people/TestScreenName>  in Creating, Editing & Exporting PDFs - View the full discussion <http://forums.adobe.com/message/4710976#4710976

  • Can I take a PDF from iBooks and make it a numbers document?

    Can I take a PDF from iBooks and make it a numbers document?

    To do this on your phone, copy and paste them into your document (tap and hold on the photo to copy it).  If you need to import it to your computer to do this, save it to the camera roll by tapping Edit, tap the photos you want to import, tap Share, tap Save to Camera Roll.  You can then import them to your computer using your usb cable (see http://support.apple.com/kb/HT4083).  Alternatively, attach them 3-4 at a time emails and send them to yourself.

  • Protect PDF from add and delete with rights to add comments

    Hi,
    Can anybody help me to protect my PDF (created Using Acrobat 7) without any rights to add or delete text, but I or others should have the rights to add sticky comments.
    Thanks,
    KDLS

    Hi,
    Thanks for your intention to give solution.
    I got a solution, now I can add comments with protecting the PDF from adding and deleting the text.
    Thanks,
    KDLS

  • While creating pdf from html, the alignment is not proper

    Hi,
    In my application, I am creating a pdf report from html using (using Generate pdf 1.1 - HTML URL To PDF activity) which contains certain images and descriptions.
    But, while generating pdf the alignment is not proper. In the HTML there is no paging, but in the output pdf the image div is getting broken when new pages are generated.
    Some blank areas are coming the report.
    Actually I need an exact replica of the HTML as a pdf, with paging.
    Thank you in advance.

    What is the LiveCycle version?
    Is it possible for you to share an example(somewhere on public file sharing sites)?

  • PDF from html

    I have a large volume of html (currently PDF'ing to around 250 pages) that is generated dynamically.
    My question is a simple one but it's driving me to distraction.
    How can I control the formtting in the resulting PDF. I'm not asking for anything complex here. I want 12pt body text and everything else relative sized based on em size.
    I've tried setting font-size:12pt in body and in a content wrapper div. I've tried it in embedded style sheets and in style attributes.
    I've tried create from html in Acrobat 11 pro, print to pdf, save as pdf in chrome and webkit html2pdf on the server. in each case the font is resized to whatever Acrobat thinks is the best fit.
    So, yesterday my output was at 11.5pt today it's 12.5 although both are rendered identically on screen and firebug and chrome dev tools both show the text to be set to 12pt prior to output.
    I suspect that the culprit here are images and that acrobat 'for my convenience' is automagically resizing to get what it thinks (wrongly) is best fit
    Any ideas?

    I get what you are saying, but I have no choice over source. The info is an export from a Content Mangement System - several hundred individual web pages that are consolidated into a single lump of html. The native CMS export to word and export to PDF are both very poor for anything other than single pages.
    I was hoping to avoid XSL, but accept that it may be my only option - it's years since I've wrestled with that particular nightmare - hopefully there are some tools to make it easier now and I have never created a pdf from xsl formatted xml.
    On your second point, yes, once a pdf is created then its font size is fixed, no problem there. The issue is that I can't see any way to fix the size at the point of creation and really, that's the crux of this request - I just want to be able to say to Acrobat that the base font size for this document is 12pt.
    Practical example - I run an export yesterday - the body font size is set to something like 11.5pt by Acrobat (despite iit being set to 12pt in the css) but I can live with that as long as it's consistent. Tomorrow, I run it again. A user has added a new image (or any width-settable element) to a page that is maybe 60pixels wider than the pervious largest and the body text throughout the pdf is now 10.5pt.
    I understand that this is Acrobat trying to be clever and scaling the text to accommodate the largest element, but I'd much rather tell it to respect the css and truncate or scale the element that doesn't fit - that would be so much easier to troubleshoot

  • Create accessible pdf from html pages dynamically

    Hello,
    I am trying to create a 508 compliant Pdf from a simple HTML page using the HTML to Pdf feature in Livecycle ES4 server. I was able to configure the service to generate tabbed Pdf, but the created Pdf has multiple accessibility issues.
    Some of the issues encountered are:  incorrect tab order,  some links are not tabbable while others are,  link text is being read “Blank”,  some text is skipped while tabbing,  missing alt text for images,  page being rendered in the responsive(mobile) view,  etc.
    I have tried both the available approaches, of 1) providing a URL to create the PDF, and 2) to send the html document as a zipped file, with same results.
    Attached is a sample PDF generated from a simple HTML page I created for demo.
    My questions are:
    Is it possible to generate 508 compliant (accessible) Pdf documents using Html to Pdf service from Pdf Generator? If yes, which settings might I be missing?
    Is there any other service provided by Adobe Livecycle Server that can generate 508 compliant Pdf documents from a 508 compliant HTML page?
    Your help is much appreciated.
    Thanks,
    Anup

    I created a tool that does just that (only you will need to enter the page numbers as text, it does not work by selecting them):
    Acrobat -- Extract Non-Sequential Pages: http://try67.blogspot.com/2011/04/acrobat-extract-non-sequential-pages.html

  • Create accessible pdf from html page

    Hello,
    I am trying to create a 508 compliant Pdf from a simple HTML page using the HTML to Pdf feature in Livecycle ES4 server. I was able to configure the service to generate tabbed Pdf, but the created Pdf has multiple accessibility issues.
    Some of the issues encountered are:  incorrect tab order,  some links are not tabbable while others are,  link text is being read “Blank”,  some text is skipped while tabbing,  missing alt text for images,  page being rendered in the responsive(mobile) view,  etc.
    I have tried both the available approaches, of 1) providing a URL to create the PDF, and 2) to send the html document as a zipped file, with same results.
    Attached is a sample PDF generated from a simple HTML page I created for demo.
    My questions are:
    Is it possible to generate 508 compliant (accessible) Pdf documents using Html to Pdf service from Pdf Generator? If yes, which settings might I be missing?
    Is there any other service provided by Adobe Livecycle Server that can generate 508 compliant Pdf documents from a 508 compliant HTML page?
    Your help is much appreciated.
    Thanks,
    Anup

    I don't think it's possible to do this using a standard JavaScript script in Acrobat, since the newDoc function doesn't work with URLs.
    The only option I can think of is to use an external automator that will call the Create PDF From Web Page dialog, paste the address from a file, and after the PDF file is created will continue to the next line.
    I might be able to create such a tool for you. If you're interested, contact me by email (click my username for the address) or PM.

  • Create pdf from html, how to adjust page size

    I have a large html file that I need to convert to a pdf. I am able to open the html in acrobat and save as pdf, but I cannot find where to adjust the page size. When I save the html in acrobat, the saved file is still a single page, but when I open the page in reader, then there are page breaks.
    How do I adjust the page size and create a single page document?
    There is also a header and footer line that I don't want. How do I get rid of those?
    LHH

    When you open the window for create PDF from web, select the settings. You can adjust the size and header/footer there.

  • Creating PDF from HTML without background

    Hi,
    I want to create a PDF from a html-page. I tried several ways without success to get a PDF without a background (white). I need a transparent background to add different backgrounds for different pages in Acrobat X Pro.  I use an iMac with OSX 10.10.2, Safari 8.0.4 and have the MasterCollection 6 installed. I tried:
    - print page -> create PDF Result: white background which hides added background
    - print page -> save as Adobe-PDF Result: white background which hides added background
    - in Acrobat: create PDF from web Result: white background which hides added background
    In all cases it doesn't matter if I select "print background" or not. And it doesn't change if I add in the CSS for the web a body {background-color: rgba(255,255,255,0)} or body {background-color:transparent}.
    How can I create a PDF with no or transparent background?

    Hi Manoj
    If your application generate a static html page, you can open those html files with Reports 9i and add a dynamic data sections which would be fetch the data in your html pages with Report servcies. However you can only run those modified pages as a jsp and show the output to browser window.
    Thanks
    Rohit

  • Text Shifting Up in PDF from HTML

    We create our newsletter in HTML and then convert the HTML to a PDF to provide our readers with an easy method of sending it to others or printing it. I know this is far from ideal, but it's what the small nonprofit I work for does.
    We made some changes to the newsletter design and now when we convert to PDF we have a strange problem. The table layout of the newsletter is correct and the HTML elements are placed correctly (tables within the outer table, background images, horizontal rules, etc). However, all of the content within the layout (text, images, divs) are shifted upward by some margin (approximately 6" when printed). I suspect it's some problem with the HTML code elements and how the PDF converter interprets them, but for the life of me, I can't find anything wrong.
    The HTML file is at:
    http://www.eric.org/public/resources/eertemplate.html
    The resulting PDF is at:
    http://www.eric.org/public/resources/Untitled.pdf
    I know that HTML isn't this board's specialty, but I'm hopeful someone may have some ideas or seen this problem before.

    I only have AA5 on this machine, but I opened the HTML file in Acrobat directly and everything seems to be fine. One problem with links is that they open as more of the same PDF. I think you want them to open separately. You might still be able to edit the link properties to open separately.
    When you say your are converting the HTML to PDF, you have not indicated the process. You might try from the Acrobat. A user can right click a link and open it separately, but you might want to check this as the default.
    Bill

  • Launch jar from html!!!

    Ok everyone i am running into deep problems from the time i have been trying to launch this pure java application jarfile from the html browser. Everythin works fine except for Mozilla firefox in Linux. firefox somehow doesnt recognise the system default for opening jar files(unlike its windows counterpart). Since we cant specify a command line(java -jar) for default opening as in the case of browsers like konquerer, i have to manually locate the .exe file which will launch the jar file. But again java.exe(inside the correspondin JRE) doesnt work, so i dunno which exe file to use for launching the jar file.
    A similar problem is observed in mac which has firefox as the default browser. there, we dont even have an option of opening the jar file directly and on clickin the jar file link from html , the browser pops up a window for only downloading jar file into the system. This doesnt serve the purpose as the whole idea is to launch the jar file directly
    Any kinda help for both the above problems will be deeply appreciated!!!

    When you say "new flex window" are you talking about the Flash Projector running on the desktop?

Maybe you are looking for

  • HP LaserJet P1102w - printer offline - Windows Vista ??

    We have a new HP printer LaserJet P1102w and my laptop has Windows Vista.  I am unable to print - message is always "printer offline" - can anyone assist with how to fix this issue.  I would appreciate any help - we are totally unable to use this pir

  • Cant update 10.1 will not allow me to do anyupdates

    could some one let me know if they have this problem , i cant use itunes or apps as my mac will not let me update the p/s to newwer version

  • Goes from sleep to Off

    Howdy, My g5 has recently started powering off by itself. I will leave it and come back to it and it has powered off completely. Or I can put it to sleep and it will shut down forcing me to power it back up again. Any thoughts?

  • 2 Apple Express's in one house, iphone & ipad not swapping between the 2

    Hey I have 2 apple Express's in the Appartment, one at either end, they are both attatched to speakers. Audio is blipping a lot, and i have a theory i know why, but you guys may know otherwise When i am in the my bedroom, music streams fine, the ipho

  • Adobe Premiere Pro CC Schwarze Ränder an den Seiten

    Hallo liebe Adobe-Community, ich erstelle liebend gerne Montagen zur privaten Nutzung. Lange Zeit habe ich mit MAGIX gearbeitet, allerdings ist es von der Bedienung und den Funktionen her kaum zu gebrauchen. Nun bin ich auf Adobe Premiere Pro gestoße