embed

How do I embed a source PDF onto an existing page in a PDF?

戏子无情 提交于 2019-12-08 05:48:01
问题 I need to programmatically embed an existing PDF (a small graphic) onto a specfic page on an existing PDF. Using iTextSharp I've been able to add a new page containing this embedded PDF, but what need is to modify an existing page by adding this graphic. Is this possible using iTextSharp or any other PDF-generation libarary? 回答1: I tend to do this sort of thing using Context, which is a Tex-based layout tool that in integrated into the pdftex Tex/Metapost engine. There's a learning curve

Click overlay div to play youtube video

99封情书 提交于 2019-12-08 05:43:36
问题 I have a placeholder div overlaying a youtube iframe. I'm trying to click on the placeholder and play the video using jquery. It seems very simple, but I can't for the life of me figure this out. Could anyone help me with this? Here's the html I'm working with: <div class="container"> <span class="placeholder"></span> <iframe id="video width="560" height="315" src="http://www.youtube.com/embed/abqjFFtAPRo" frameborder="0" allowfullscreen></iframe> </div> Thanks! 回答1: To made this fast i

Need a javascript/HTML 5 web player that plays audio with G.711 codec wrapped in WAV container

我的梦境 提交于 2019-12-08 04:57:35
问题 I'm looking for a javascript/HTML5 embeddedable player with the libraries to play audio with G.711 codec wrapped in WAV container. So far standard HTML5 does not support this type of audio. Does anyone have any suggestion of any players/libraries? Paid or free suggestions welcome. Thanks. 回答1: If the codec/format/wrapper is not supported natively by the browsers you are aiming it will never work. You should convert your audio file in a format natively supported by most of the browsers. http:/

Display thumbnail image in iframe

◇◆丶佛笑我妖孽 提交于 2019-12-08 04:02:34
问题 I am fairly new in this. I have the following iframe <iframe width="560" height="315" src="<%=video1[1]%>" frameborder="0" allowfullscreen></iframe> What I am trying to do is have it play video1[1] , but show the image that is in video1[2] . I tried doing is: <iframe width="560" height="315" href="<%=video1[2]%>" src="<%=video1[1]%>" frameborder="0" allowfullscreen></iframe> but that doesn't work. Is there a simple way of doing it? 回答1: iFrame tag has no href attribute. See: http://www

Embed .swf in webpage and make it fullscreen

人走茶凉 提交于 2019-12-08 04:00:22
问题 Is there a way to embed a .swf file in a webpage and provide a way to make it fullscreen? I'm creating these files with Adobe Captivate, which doesn't seem to provide a way to publish in other usable formats (.avi files are too big, and no .flv is available, to which there seem to have some players around that allow fullscreen). If there's a way to convert .swf to some other "embedable" format, please let me know. 回答1: Why not make a link to the swf in question without a HTML file embedding

LuaJ Import Lua Methods

十年热恋 提交于 2019-12-08 02:51:33
问题 I'm using LuaJ, and I have a .lua file filled with a bunch of functions. How do I import these functions to use in Java with LuaJ? 回答1: One option would be to compile the file into Java code and import that. Another would be to simply invoke the Lua file directly from your Java code using the embeddable interpreter. * EDIT * There are good examples in the downloaded documentation. To run a script from within Java you would do something like this: import java.io.File; import java.io.FileReader

Embedding different applications in a Win Form in .NET

你。 提交于 2019-12-08 02:45:27
问题 How to embedd two different applications in a single windows form? Suppose I have an application abour calculations and about web cam and I want them to show in a form? Don't need only proccess.start().... 回答1: I think you may be looking for the SetParent Windows API call. To do this, you'd need to import the relevant API call: [DllImport("user32.dll")] static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent); Add using directives at the top of the file: using System.Diagnostics

How to Include SVG file as <input> background

做~自己de王妃 提交于 2019-12-08 02:15:03
问题 I'm a newbie to the SVG world, just started experimenting today. I'm trying to create a mobile site where the primary graphics are all scalable, thus supporting all display resolutions. I created an svg file for my input (currently type="image"), and suprisingly the results are as expected in my code editor (Coda). In testing (mobile Safari, DT Safari and DT FF), the input displays broken image path placeholder (the oath is correct because I can right-click to download the file). How do I go

.svg file as object in HTML not displayed in Android WebVIew

雨燕双飞 提交于 2019-12-08 02:03:59
问题 My app has a WebView control that is able to load .svg files: when the url is a .svg file it is correctly displayed. I modified the code not to load directly the .svg file so that I have to call something like webView.loadDataWithBaseURL(baseUrl,"<html><body><object data='cover.svg'></object></body></html>","text/html", "UTF-8",""); The above mentioned code works with images but not with svg files. An HTML file with the HTML parameter string above mentioned as HTML code is correctly displayed

Use PHP to get embed src page information?

十年热恋 提交于 2019-12-08 00:12:27
问题 Sort of a weird question. From 4shared video site, I get the embed code like the following: <embed src="http://www.4shared.com/embed/436595676/acfa8f75" width="420" height="320" allowfullscreen="true" allowscriptaccess="always"></embed> Now, if I access the url in that embed src, the video is loaded up and the URL of the page is changed with information about the video. I am wondering if there is any way for me to access that info using PHP? I tried file_get_contents but it gives me lots of