Is it possible to dynamically embed video(any format)/ flash into PDF using php?
I found this Link, but not useful.
Also I googled but didn't find a satisfying answer to my question that
Whether it is possible or not (with the help of php libraries)?
And if yes, what are the side-effects of embeding video in PDF?
Plz help me to get into right direction
You should consider that every user might not use Adobe. Ex- I personally use foxit reader and then it will be nightmare when users are not getting what they were told.So better go with some other way to you might embed video in email or something.
Related
I've been looking for creating a pdf using php without using a library but when I was looking on google for this I am not being able find any information how a pdf is made within php. Now I know the simple answer is 'Look at the code of an existing library'. But this does not give me much detail and how/why certain lines of codes are being used and what is or what isn't bad practice.
I hope, any of you have some prior experience with this and can help me out.
I need some library or good documentation of xlsx files for writing out xls files from website. all I need to do is fill in content into predefined and styled table. I have considered writing everything directly from php but could't get hang of merging cells and if I could it would be a hell writing code for changing any style into a document instead its much better if I have predefined file uploaded and then just fill in.
Please redirect me or help me find some proper documentation.
Project is in early stage and can consider switching to other language like Node.js if it makes this part super easy but trying to keep it low profile prefer using PHP so i'm open to all ideas.
Thanks in advance to everyone.
PS. this is my first question on stackoverflow
Kindly do a Google search before posting questions like this. But answering your question, PHPExcel is a nice place to start. Just go through their documentation.
this is what i'm trying to do. I have a Student Result Application in
which i'll like to print out a pdf format of a specially designed
Result's Sheet..
http://www.4shared.com/photo/yg8vCjYe/results_layout.html
My question is that is it possible to send all the html, css and php
variables from the final result sheet to the pdf engine, or just
design a new page result_printout.php page and implement the
pdf engine on that page.
I'll be happy your honest opinions
thanks for you help
honestly, i haven't done this before,
but i think this should help:
http://www.rustyparts.com/pdf.php
Since you allready have the HTML I would suggest to use wkhtmltopdf. There also some wrappers for PHP. It's allways a bit tricky to get it all work in the right way, especially with pagebreaks.
But I find it usually more easy to use then all the other PHP PDF creation classes/libraries.
I have only worked with MPDF and you can pretty much send all the html, css and php variables to the pdf enginge and tell the engine to either force a download or send it to the browser where the user can either save the file or print or just view it. You can also email the generated pdf.
You can read the documentation here: http://mpdf1.com/manual/
I'm trying to find a way to search inside PDF files. I came accross the PHP PDF class but I can't seem to find any function for reading/searching a filestream.
So, as naive as I am, i tried to simple get a stream using file_get_contents(), obviously it's an encrypted-like output ;)
So my question, is there any way to search through PDF files? I'm looking for script-only / free / open source solutions and not buying some expensive commercial libraray.
XPDF?
There is a blog post here that may be of help.
There seems to be some code here that could help - a simple class that reads a PDF into plaintext. Unsure if it supports decryption.
There are also a number of resources in PHP documentation that may help you. Click.
FPDF and FPDI may also help. Probably your best bet after some research.**
A PHP search engine called Sphider has the option of adding PDF search via XPDF. You can then customise the result templates to fit in with the rest of your site (if applicable).
I've been looking for a long time for a way to have a bitmap from a VML document.
In fact, I working on a few libs that use the tag, so I have no problem for anything except for IE (of course) because I'm using ExCanvas in IE, but I'd like to have a bitmap from the generated "canvas" (which is in fact VML).
I've been looking for a few ways to get a bitmap in JS from the VML, but I abandoned this idea, now I'd like to find a server side lib that is able to get a VML string and convert it to a bitmap image. My preferred language is PHP, but if there aren't any in this language, it'll be OK.
I also looked at a Java applet that could do that, but this is in fact impossible without a signed one, this is not possible.
Thank you for your reply !
You could use something like CutyCapt to allow the browser to render it and capture that to an image.
I found a library which looks like the best solution to my problem : VectorConverter.
It has however a few problems :
it only supports a very limited part of the spec
it is not maintained anymore
the code is not very well written and it doesn't use an existing DOM parser for the VML
I don't have time to enhance it !
So if anyone with a lot of time and who is interested in this project is welcome to work on it, and maybe fork it. Contact me if you plan to work on it, I may help you.
The simple possibility is to use C# to display a window loading the vml page in ie webbrowser control and use this.webBrowser.Navigate("file.html") to load the vml page included in the html
and then make a snap shot by capturing the image automatically by using graphic.CopyFromScreen function