How create text background in zend pdf - php

I am new to the zend-framework.
I created a pdf in zend and I want to set text background with the color.
like
please help........
Thanks in advance..

Please try to read : http://devzone.zend.com/article/12492
That will give answer to all of your doubts.......

Related

Hyperlinks not working in PrinceXML

If I write below code in html file to convert it to PDF with prince factory it is not working properly.
http://google.com
This above link in pdf generated from prince xml is working properly, but it is pointing to google.com instead of example.com
Google
This link will not work as we have not written anything before google as http or https.
Can someone please help me on this?
Thanks.
You can try with css model
Html
<span class="linkContent">
CSS
.linkContent {
content: "http://google.com"
}
Refer doc: https://www.princexml.com/doc/8.1/gen-content/
Hope it can help you!
hi you have to check the "prince-pdf-link-type" property.
by default value is auto, try to change to "web" :
https://www.princexml.com/doc/properties/prince-pdf-link-type/
Apologies for this. But the problem was not with PrinceXML. later after so much investigation, I found that it was problem with merging 2 documents in FPDF.
I used Zend Merger for merging 2 documents which were created by PrinceXML and it worked perfect.
Apologies and Thank you all for your help.

Shade the area below line chart - PHPpresenatation

I am making the PPT using PHPpresentation library. In that I have create the line chart, but am unable to color the area below the line.
this i how it is coming.
but i want something like this
Thanks in advance.
Please, could you go through this link : How do I customize the line in a line chart with PHPPowerpoint/PHPPresentation? ?
I hope that help you to solve your problem. Thanks

PHP video snapshot display

Is there any way to display video(snapshot) as as a image in PHP?
There is an option without generating a new snapshot, simply using html code :) easy, isn't it?
<video src='DIRECCION_DEL_VIDEO' width='100px' height='60px'/>
Hope you enjoy it!
Regards,
Jose Romero
Well You can create thumbnail using ffmpeg .
Then you can simply execute that command from php using exec. You can show created thumbnail then as you want.
You can check
http://flowplayer.org/tutorials/generating-thumbs.html

Image decoration

How can we do image decoration in PHP, e.g. adding text or an image to it?
With GD and/or ImageMagick usually.
This tutorial can help: http://www.prodevtips.com/2009/09/10/image-manipulation-and-watermarking-in-php-with-gd2/

How to convert HTML to PDF using PHP?

I want to convert HTML with Google Charts reports to PDF,I used fpdf and other classes but I didnt get success.
please help me .
You can try using HTML 2 PDF available from sourceforge here
You could also try dompdf

Categories