<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o =
"urn:schemas-microsoft-com:office:office"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=775383420-16032006><FONT face=Arial color=#0000ff size=2>Thanks
Jeremy,</FONT></SPAN></DIV>
<DIV><SPAN class=775383420-16032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=775383420-16032006><FONT face=Arial color=#0000ff size=2>I
forgot to send the copy to the list, now I corrected this :-)) I have
uncommented the piece of code and now I properly place my map. Regarding the
rectangle, the problem was in using $p in $placement =
$pdf->image_place($image, 50, 0, $pages[0], $p); because of the scale array.
If I don't set $p in image_place then rectangle is placed correctly arround the
map. Why should I use the scale anyway? </FONT></SPAN></DIV>
<DIV><SPAN class=775383420-16032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=775383420-16032006><FONT face=Arial color=#0000ff size=2>One
more question - did you maybe try to place the legend in the
pdf?</FONT></SPAN></DIV>
<DIV><SPAN class=775383420-16032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=775383420-16032006><FONT face=Arial color=#0000ff
size=2>regards, dejan</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Sears, Jeremy
[mailto:Jeremy.Sears@CCRS.NRCan.gc.ca] <BR><B>Sent:</B> Thursday, March 16,
2006 3:37 PM<BR><B>To:</B> 'Gambin Dejan'<BR><B>Subject:</B> RE:
pdfMap<BR><BR></FONT></DIV>
<DIV><SPAN class=269582514-16032006><FONT face=Arial color=#0000ff size=2>Hi
Dejan,</FONT></SPAN></DIV>
<DIV><SPAN class=269582514-16032006><FONT face=Arial color=#0000ff size=2>Glad
to hear you got the 'widget' working.</FONT></SPAN></DIV>
<DIV><SPAN class=269582514-16032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=269582514-16032006><FONT face=Arial color=#0000ff
size=2>Regarding placement ....</FONT></SPAN></DIV>
<DIV><SPAN class=269582514-16032006><FONT face=Arial color=#0000ff size=2>In
pdfmap.phtml, around line 174 you should see code that looks exactly
like:</FONT></SPAN></DIV>
<DIV><SPAN class=269582514-16032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=269582514-16032006><FONT face=Arial color=#0000ff
size=2>*******************************************************************************************************</FONT></SPAN></DIV>
<DIV><SPAN class=269582514-16032006><FONT face=Arial color=#0000ff
size=2> // littl' loop to help determine image placement<BR> //
creates an 'indexgrid' on the pdf. Allows one to adjust pdf element
placement<BR>/*<BR>$pf["height"] = 1.5;<BR>$pf["width"] = 0.125;
</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=269582514-16032006><FONT face=Arial color=#0000ff size=2>for
($x=-100; $x <=1000; $x=$x + 10){<BR> for ($y=-100; $y <= 1000;
$y=$y+10){<BR> $pdf->draw_text($x, $y, '*'.$x.','.$y,
$pages[0], $pf);<BR> }<BR> }<BR>*/</FONT></SPAN></DIV>
<DIV><SPAN class=269582514-16032006><FONT face=Arial color=#0000ff
size=2>*********************************************************************************************************</FONT></SPAN></DIV>
<DIV><SPAN class=269582514-16032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=269582514-16032006><FONT face=Arial color=#0000ff size=2>If
you uncomment this, you will get somthing of a fine graticule. You output pdf
will have many small *'s, each * will have coordinate values next to it. Use
these numbers to help you place you images and such.</FONT></SPAN></DIV>
<DIV><SPAN class=269582514-16032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=269582514-16032006><FONT face=Arial color=#0000ff
size=2>>> If I want to draw a rectangle around the map, what do I have
to do?</FONT></SPAN></DIV>
<DIV><SPAN class=269582514-16032006><FONT face=Arial color=#0000ff
size=2>You'll have to counsult the phppdflib manual at <A
href="http://www.potentialtech.com/ppl.php">http://www.potentialtech.com/ppl.php</A> Im
guessing you are on the right track with the draw_rectangle() function. The
template we are using contains all map elements not generated by the
mapserver, including a rectangle around the maparea, I have not had to
consider such a task. However Im thinking that after uncommenting the above
mentioned code you should have a better idea of what values should be placed
in draw_rectangle().</FONT></SPAN></DIV>
<DIV><SPAN class=269582514-16032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=269582514-16032006><FONT face=Arial color=#0000ff size=2>Best
Regards</FONT></SPAN></DIV>
<DIV><SPAN class=269582514-16032006><FONT face=Arial color=#0000ff
size=2>Jeremy</FONT></SPAN></DIV>
<DIV><SPAN class=269582514-16032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=269582514-16032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Gambin Dejan
[mailto:Dejan.Gambin@pula.hr]<BR><B>Sent:</B> March 16, 2006 9:01
AM<BR><B>To:</B> Sears, Jeremy<BR><B>Subject:</B> RE:
pdfMap<BR><BR></FONT></DIV>
<DIV><SPAN class=599515513-16032006><FONT face=Arial color=#0000ff size=2>Hi
Jeremy,</FONT></SPAN></DIV>
<DIV><SPAN class=599515513-16032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=599515513-16032006><FONT face=Arial color=#0000ff
size=2>Now we can do our own template using your insctructions. Thanks very
much. Can you answer me something:</FONT></SPAN></DIV>
<DIV><SPAN class=599515513-16032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=599515513-16032006><FONT face=Arial color=#0000ff size=2>1.
When using image_place function - what are the coordinates relative to? If I
set (0,0) it is not placed on the border of the page...</FONT></SPAN></DIV>
<DIV><SPAN class=599515513-16032006><FONT face=Arial color=#0000ff size=2>2.
If I want to draw a rectangle around the map, what do I have to do? I have
tried using "$pdf->draw_rectangle(0, 0, 375, 500, $pages[0], $p);" but
the rectangle is wider and higher than map...(I have
$map->set(width,500);$map->set(height,375);)?</FONT></SPAN></DIV>
<DIV><SPAN class=599515513-16032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=599515513-16032006><FONT face=Arial color=#0000ff
size=2>thanks</FONT></SPAN></DIV>
<DIV><SPAN class=599515513-16032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=599515513-16032006><FONT face=Arial color=#0000ff
size=2>dejan</DIV>
<DIV><BR></DIV></FONT></SPAN>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Sears,
Jeremy [mailto:Jeremy.Sears@CCRS.NRCan.gc.ca] <BR><B>Sent:</B> Wednesday,
March 15, 2006 4:00 PM<BR><B>To:</B> Gambin Dejan<BR><B>Subject:</B> RE:
pdfMap<BR><BR></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=463364814-15032006>Hi Dejan,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=463364814-15032006>OK, The original format of this document didnt
work with my application either. After preforming the steps mentioned
below, the pdf now works with my application. Im running: Appache2, winxp,
php4.4.3-dev, mapserver4.6 (basically the latest ms4w). I wonder if
php5.0.4 is having problems with the code? Your chameleon application
works ok with version 5.0.4 of php? I had some problems trying to get
chameleon to work with the latest php...</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=463364814-15032006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=463364814-15032006>The conversion steps again:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=463364814-15032006>Using Adobe Acrobat 7.0 pro (version7.0.7)
I ..</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=463364814-15032006>1. opened your document</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=463364814-15032006>2. Saved as a tiff (see the attached bmp image
for tiff settings)</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=463364814-15032006>3. Opened the tiff in acrobat</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=463364814-15032006>4. saved as pdf</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=463364814-15032006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=463364814-15032006>If this document doesnt work in your application,
I would suspect that something, somewhere isnt compatable, ... but Im not
sure where.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=463364814-15032006>Let me know if this work on your
system.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=463364814-15032006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=463364814-15032006>Jeremy</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=463364814-15032006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=463364814-15032006></SPAN></FONT> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Gambin Dejan
[mailto:Dejan.Gambin@pula.hr]<BR><B>Sent:</B> March 15, 2006 9:40
AM<BR><B>To:</B> Sears, Jeremy<BR><B>Subject:</B> RE:
pdfMap<BR><BR></FONT></DIV>
<DIV><SPAN class=777223114-15032006><FONT face=Arial color=#0000ff
size=2>Hi Jeremy,</FONT></SPAN></DIV>
<DIV><SPAN class=777223114-15032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=777223114-15032006><FONT face=Arial color=#0000ff
size=2>Why not here I send you my "sample and simple" pdf template. By
the way I am using mapserver 4.6, chameleon 2.2 (i think), Windows XP,
Apache2, php 5.0.4 on my own testing machine...</FONT></SPAN></DIV>
<DIV><SPAN class=777223114-15032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=777223114-15032006><FONT face=Arial color=#0000ff
size=2>thanks very much, and I'll try your suggestions
</FONT></SPAN></DIV>
<DIV><SPAN class=777223114-15032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=777223114-15032006><FONT face=Arial color=#0000ff
size=2>dejan</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Sears,
Jeremy [mailto:Jeremy.Sears@CCRS.NRCan.gc.ca] <BR><B>Sent:</B>
Wednesday, March 15, 2006 3:27 PM<BR><B>To:</B> Gambin
Dejan<BR><B>Subject:</B> RE: pdfMap<BR><BR></FONT></DIV>
<DIV><SPAN class=731321214-15032006><FONT face=Arial color=#0000ff
size=2>Hi Dejan,</FONT></SPAN></DIV>
<DIV><SPAN class=731321214-15032006><FONT face=Arial color=#0000ff
size=2>Our media people created a complex template for our mapserver
application. It was created in quark and didnt work with the pdfmap
'widget'. What I did was open the document in acrobat, then saved as a
high resolution .tiff in the simplest format,.. I believe one of the
settings of note was the conversion-> color space option, I set
this to 'color:RGB', also all of the color management settings were
'off'... I then brought the .tiff back into acrobat, and saved as
pdf. It took me a wile to get a pdf that worked. </FONT></SPAN></DIV>
<DIV><SPAN class=731321214-15032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=731321214-15032006><FONT face=Arial color=#0000ff
size=2>If you cant get a format that works, why dont you send me you
pdf template, pre-conversion. Ill see if I can convert it and Ill send
it back to you. It would be helpful to know how you created the
template and in what software. I think I should include this
information in the readme so others will be better suited to deal with
this issue. By the way, what are the specs of the mapserver
application( webserver, php version, OS, mapserver version, chameleon
version etc..) that you are using the pdfmap 'widget' with?
</FONT></SPAN></DIV>
<DIV><SPAN class=731321214-15032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=731321214-15032006><FONT face=Arial color=#0000ff
size=2>Best Regards</FONT></SPAN></DIV>
<DIV><SPAN class=731321214-15032006><FONT face=Arial color=#0000ff
size=2>Jeremy</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Gambin Dejan
[mailto:Dejan.Gambin@pula.hr]<BR><B>Sent:</B> March 15, 2006 8:32
AM<BR><B>To:</B> Sears, Jeremy<BR><B>Subject:</B> RE:
pdfMap<BR><BR></FONT></DIV>
<DIV><SPAN class=362472513-15032006><FONT face=Arial color=#0000ff
size=2>Thanks Jeremy,</FONT></SPAN></DIV>
<DIV><SPAN class=362472513-15032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=362472513-15032006><FONT face=Arial color=#0000ff
size=2>Unfortunatelly nothing helps too much. I have tried many
thing with generating images and then back to pdf but then I get
another error <FONT size=2>"there was a problem reading this
document (16)". The only thing that works is when creating empty
word document, exporting to pdf (with adobe acrobat), then to jpg
and back to pdf. But I didn't want an empty template
:-((</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=362472513-15032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=362472513-15032006><FONT face=Arial color=#0000ff
size=2>I will try something else but have no idea ay more...I have
read aodbe document regarding the "unrecognized token" error and
tried some things but the result is the same
:-((</FONT></SPAN></DIV>
<DIV><SPAN class=362472513-15032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=362472513-15032006><FONT face=Arial color=#0000ff
size=2>anyway, thanks very much</FONT></SPAN></DIV>
<DIV><SPAN class=362472513-15032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=362472513-15032006><FONT face=Arial color=#0000ff
size=2>dejan</FONT></SPAN></DIV>
<DIV><SPAN class=362472513-15032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr
align=left><FONT face=Tahoma size=2>-----Original
Message-----<BR><B>From:</B> Sears, Jeremy
[mailto:Jeremy.Sears@CCRS.NRCan.gc.ca] <BR><B>Sent:</B> Tuesday,
March 14, 2006 4:14 PM<BR><B>To:</B> Gambin
Dejan<BR><B>Subject:</B> RE: pdfMap<BR><BR></FONT></DIV>
<DIV><SPAN class=718405814-14032006><FONT face=Arial color=#0000ff
size=2>Hi Dejan,</FONT></SPAN></DIV>
<DIV><SPAN class=718405814-14032006><FONT face=Arial color=#0000ff
size=2>Ill do my best to address your
questions....</FONT></SPAN></DIV>
<DIV><SPAN class=718405814-14032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=718405814-14032006><FONT face=Arial color=#0000ff
size=2>>>why am I getting "unrecognized token 'STRIPPED' was
found" </FONT></SPAN></DIV>
<DIV><SPAN class=718405814-14032006><FONT face=Arial color=#0000ff
size=2>I agree with your assumption that this error has to do
with your pdf file format. I have not encountered this particular
error before, but have had some toruble getting the phppdflib to
work with complex pdf files, such as those that contain various
types of fonts and graphics. Ive found that the pdfMap 'widget'
works best with a pdf template that is all image data, no fonts or
fancy stuff. So, perhaps you could try to 1. create your template.
2. export the pdf template to a high quality image file. 3.
convert the image file back into pdf. . . This is a bit
convoluted, but it does seem to work. I havent used open office
for this before.</FONT></SPAN></DIV>
<DIV><SPAN class=718405814-14032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=718405814-14032006><FONT face=Arial color=#0000ff
size=2>>>because of problem with IE and PNG
transparency</FONT></SPAN></DIV>
<DIV><SPAN class=718405814-14032006><FONT face=Arial color=#0000ff
size=2>Trash IE,.. use Firefox
;)</FONT></SPAN></DIV>
<DIV><SPAN class=718405814-14032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=718405814-14032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=718405814-14032006><FONT face=Arial color=#0000ff
size=2>>> I have set my scalebar image to be GIF. I have
tried using imagecreatefromgif instead of imagecreatefrompng PHP
function but I get that the file is not a >>valid image
file, although it exists on the right location and it seems to be
valid...</FONT></SPAN></DIV>
<DIV><SPAN class=718405814-14032006><FONT face=Arial color=#0000ff
size=2>Im not sure about that ... I recommend you consult the
documentation on GD and Mapserver. Perhaps the gif format that
mapserver creates is incompatable with GD, however that would be
strange because I think Mapserver uses GD to create its gif's....
perhaps you're not using imagecreatefrompng correctly or perhaps
there are some more arguments to that function that you need to
specify?</FONT></SPAN></DIV>
<DIV><SPAN class=718405814-14032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=718405814-14032006><FONT face=Arial color=#0000ff
size=2>Jeremy</FONT></SPAN></DIV>
<DIV><SPAN class=718405814-14032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=718405814-14032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=718405814-14032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
Gambin Dejan [mailto:Dejan.Gambin@pula.hr]<BR><B>Sent:</B> March
14, 2006 9:57 AM<BR><B>To:</B> Sears, Jeremy<BR><B>Subject:</B>
RE: pdfMap<BR><BR></FONT></DIV>
<DIV><SPAN class=197255014-14032006><FONT face=Arial
color=#0000ff size=2>Hi Jeremy,</FONT></SPAN></DIV>
<DIV><SPAN class=197255014-14032006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=197255014-14032006><FONT face=Arial
color=#0000ff size=2>Can you plase tell me, if you know, why am
I getting "unrecognized token 'STRIPPED' was found" error when
trying to use my own pdf template file. I have first created a
blank pdf file using OpenOffice, then I tried with another PDF
creation software but the result is the same? I suppose this has
to do with phppdflib library? I am not getting this error with
your template file...</FONT></SPAN></DIV>
<DIV><SPAN class=197255014-14032006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=197255014-14032006><FONT face=Arial
color=#0000ff size=2>Also, because of problem with IE and PNG
transparency, I have set my scalebar image to be GIF. I have
tried using imagecreatefromgif instead of imagecreatefrompng PHP
function but I get that the file is not a valid image file,
although it exists on the right location and it seems to be
valid...</FONT></SPAN></DIV>
<DIV><SPAN class=197255014-14032006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=197255014-14032006><FONT face=Arial
color=#0000ff size=2>regards, dejan</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr
align=left><FONT face=Tahoma size=2>-----Original
Message-----<BR><B>From:</B> Sears, Jeremy
[mailto:Jeremy.Sears@CCRS.NRCan.gc.ca] <BR><B>Sent:</B>
Friday, February 17, 2006 3:35 PM<BR><B>To:</B> Gambin
Dejan<BR><B>Subject:</B> RE: pdfMap<BR><BR></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=028163214-17022006>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=028163214-17022006>Here's a copy of the required files.
Check out the readme file for a breif description. Note that
this 'widget' was developed on Ms4W (Winxp, PHP 4.4.3,
Apache2x). You must have chameleon up and running as well.
Please let me know if it does (or does not) work for
you.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=028163214-17022006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=028163214-17022006>Best Regards</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=028163214-17022006>Jeremy</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT
face=Tahoma size=2>-----Original
Message-----<BR><B>From:</B> Gambin Dejan
[mailto:Dejan.Gambin@pula.hr]<BR><B>Sent:</B> February 17,
2006 2:57 AM<BR><B>To:</B> Sears, Jeremy<BR><B>Subject:</B>
pdfMap<BR><BR></FONT></DIV>
<DIV><SPAN class=308115607-17022006><FONT face=Arial
color=#0000ff size=2>I am interested in your
widget...</FONT></SPAN></DIV>
<DIV><SPAN class=308115607-17022006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=308115607-17022006><FONT face=Arial
color=#0000ff size=2>thanks </FONT></SPAN></DIV>
<DIV><SPAN class=308115607-17022006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=308115607-17022006><FONT face=Arial
color=#0000ff size=2>dejan</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr
align=left><FONT face=Tahoma size=2>-----Original
Message-----<BR><B>From:</B>
chameleon-bounces@lists.maptools.org
[mailto:chameleon-bounces@lists.maptools.org] <B>On Behalf
Of </B>Sears, Jeremy<BR><B>Sent:</B> Friday, February 10,
2006 6:49 PM<BR><B>To:</B>
chameleon@lists.maptools.org<BR><B>Subject:</B>
[Chameleon] print direct to PDF
widget<BR><BR></FONT></DIV>
<P class=MsoNormal style="MARGIN: 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Hi
All,</SPAN><SPAN
style="FONT-FAMILY: 'Arial Unicode MS'"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Id
like to like the list know that I have pieced together a
'widget' for chameleon that allows one to print a map
directly to a PDF template. </SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">The
'widget' employs functions from the phppdflib library to
create the PDF map. I chose to use phppdflib instead of
the standard pdflib because phppdflib is free and has
the ability to import pdf's (i.e. the template), you
must pay for this functionality in pdflib. One simply
inserts their map template and plays with map element
placement properties in order to use
it.</SPAN><o:p></o:p></P>
<P class=MsoNormal
style="MARGIN: 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">I
hesitate to call this bit of code a widget as I don't
think it meets all of the requirements that the name
implies. In order to use it there are a few conditions
that must be met in one's Mapserver app and one's code.
However, I've found it to work great within our
application.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">I
would very much like other's to try it, use it if
suitable, give me some feedback and ideally improve
on it. There is much room for
improvement.</SPAN><o:p></o:p></P>
<P class=MsoNormal
style="MARGIN: 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">If
anyone is interested they can send mail to me at <A
href="mailto:jsears@nrcan.gc.ca">jsears(at)nrcan.gc.ca</A> (please
put pdfMap in the subject heading) and Ill send a copy of
the 'widget'. </SPAN><o:p></o:p></P>
<P class=MsoNormal
style="MARGIN: 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Regards,</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Jeremy</SPAN><o:p></o:p></P>
<P class=MsoNormal
style="MARGIN: 0pt"> <o:p></o:p></P>
<P class=MsoNormal
style="MARGIN: 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">phppdflib
can be found : <A
href="http://www.potentialtech.com/ppl.php">http://www.potentialtech.com/ppl.php</A></SPAN><o:p></o:p></P>
<P class=MsoNormal
style="MARGIN: 0pt"> <o:p></o:p></P>
<P style="MARGIN-LEFT: 72pt"><SPAN
style="FONT-SIZE: 10pt"><FONT
face="Arial Unicode MS"> <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0pt"> <o:p></o:p></P></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>