Re[2]: [PHP] Creating PDF from a Image

2005-11-09 Thread Jens Schulze

Richard ([EMAIL PROTECTED]) wrote:


 http://php.net/gd
 This will let you imagecreatefromgif() and then imagejpeg()

I didn't find any mentioning, that the imagejpeg function supports
conversion to CMYK, so it is most liky that it will not help the
original poster. ImageMagick is the way to go... ;-)

Jens

-- 
This mail was scanned by AntiVir Milter.
This product is licensed for non-commercial use.
See www.antivir.de for details.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Creating PDF from a Image

2005-11-07 Thread Jens Schulze
Manoj Kr. Sheoran schrieb:

 I 've only PNG as input. Is there any method that can help me to convert PNG
 to JPEG and then create PDF to that.

PNG and press-ready PDF isn't anything that fits together very well from
the view of a prepress professional, but your way would be ImageMagick
(http://www.imagemagick.org), which should be able to convert from PNG
to PDF (with the help of Ghostscript).

Jens

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re[2]: [PHP] Creating PDF from a Image

2005-11-07 Thread Jens Schulze

Am Monday, November 7, 2005, 4:20:25 PM beglückte uns 
Manoj ([EMAIL PROTECTED]) mit folgendem Kommentar:

 PNG doen't support CMYK color scheme that's why I want to convert it
 in JPG first and then I want to create pdf file from that PJG file. I
 created pdf file from PJG using fpdf but no idea that how to I convert
 PNG to jpg file (not using any third part tool only uing php).

If you don't want to use the formidable imagemagick package (where the
conversion would be a one line bash command), you are out of look, I
think, because the gdlib often packaged with php doesn't support cmyk
jpeg files. External tool or nothing... ;-)

 Secondly,  My motive is to create Press optimized pdf file rather than
 simple pdf file.

As I said before, from my typesetting experience, PNG file format and
press optimized PDF is something that don't fit together, a cmyk image
isn't something that make a PDF press optimized, you have also look at
the resolution of the images. If I create a file with a layout tool like
Adobe InDesign with 72 dpi images and export it as press optimized PDF,
even when the file is labeled press optimized, it's a pile of low
quality crap from the prepress view of things. Maybe you should review
your workflow.

Jens

-- 
This mail was scanned by AntiVir Milter.
This product is licensed for non-commercial use.
See www.antivir.de for details.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PCRE false match with preg_match?

2005-09-26 Thread Jens Schulze
I recently encountered a strange behaviour, could someone please
countercheck it, to either tell me there is an error in my pattern?

I have a test string: 7005-N/52
I have two match patterns:  a) /([0-9]*)\/(.*)/i
b) /([0-9]*)\-(.*)/i
I check the test string with the help of preg_match, and they both
matched, but normally variant a) shouldn't have matched.

Normally I test my patterns with the tool The Regex Coach, and
according to this tool it shouldn't have matched.
PHP version is 5.0.4, PCRE extension version is 4.5 01-December-2003

Thanks for any help or feedback,
Jens

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PCRE false match with preg_match?

2005-09-26 Thread Jens Schulze
Murray @ PlanetThoughtful wrote:

 Changing the * to a + (at least one or more occurrences) could 'fix'
 that pattern (ie so that it doesn't match your string), depending on any
 other values being tested by it.

*keyboardbiting* I see... thanks to all of you who helped so fast.

Jens

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: ADODB vs PHP extension

2005-09-14 Thread Jens Schulze
Dean Maunder wrote:
 My apologies, I meant the PEAR ADODB abstraction layer/  

If you mean DB_ado (from http://pear.php.net/package/DB_ado) I can't say
anything about it because I haven't used it.
But if you mean ADOdb Database Abstraction Library for PHP (from
http://adodb.sourceforge.net/):
It should be somewhat faster if you use the extension, because of the
abstraction layer there is some overhead by using the class even when
the class itself also uses the extension. So if you need all the speed
you can get use the extension calls, but if you want a system where you
can easily adopt from one database to another, handy helping functions
for database specific date conversion and a nice sql query caching
system, you should use the abstraction layer.

Jens

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Deny access from certain hosts

2005-09-14 Thread Jens Schulze
Aaron Greenspan wrote:

 Can you do that with .htaccess?

Please have a look at http://www.webmasterworld.com/forum92/2783.htm
found it on the second page with the search termin apache block
requests from specific referrers.

Jens

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: ADODB vs PHP extension

2005-09-13 Thread Jens Schulze
Do you mean the ADODB database abstraction layer for PHP or the original
ADODB technology of Microsoft?

Jens

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: guidance for communicating between frames

2005-08-29 Thread Jens Schulze
You can e.g. use javascript for intra-frame communication, but for a
more specific answer we need a more specific question.

Jens

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php