Hi all.
I try the scheduler2pdf release 2010-09-10 and I have an error:
preg_match() [function.preg-match]: Compilation failed: support for \P, \p, and \X has not been compiled at offset 1.
Can you help me ?
Thank you.
Sondra
Hi all.
I try the scheduler2pdf release 2010-09-10 and I have an error:
preg_match() [function.preg-match]: Compilation failed: support for \P, \p, and \X has not been compiled at offset 1.
Can you help me ?
Thank you.
Sondra
It seems that your version of php was compiled without Unicode support.
While it possible to adjust code , your version of php will not be able to work with unicode anyway.
Hi Stanislav.
I have all installed, enable and compiled on my PHP version.
My version is 5.1.6.
I have also try to another machine (same php version) but I have the same error.
Can you help me ?
Thank you.
Sondra.
While it works correctly locally, we will try to investigate and fix the issue.
Please PM me with output of phpinfo() on the problematic PC.
Hi Stanislav.
Did you get my PM message with phpinfo() ?
Thank you.
Sondra
server/pdfWrapper.php
line 79
$this->cb = new TCPDFExt($orientation, 'mm', 'A4', true, 'UTF-8', false);
try to change it as
$this->cb = new TCPDFExt($orientation, 'mm', 'A4', false, 'UTF-8', false);
It will disable utf support and most probably will resolve issue with your version of php
Hi Stanislav many thank for your support.
I have in pdfWrapper.php at line 17:
$this->cb = new TCPDFExt('P', 'mm', 'A4', true, 'UTF-8', false);
change in:
$this->cb = new TCPDFExt('P', 'mm', 'A4', false, 'UTF-8', false);
Now print pdf . . . . but with strange simbol and characters.
I try to change at line 39:
$this->cb->SetFont('freesans', '', 8);
to:
$this->cb->SetFont('arial', '', 8);
seems to work but I view the characters with html tags, maybe it’s my problem . . . .
In the unit view left column and header column.
download/file.php?mode=view&id=2629
In week view.
download/file.php?mode=view&id=2630
Tested on browser FF ver.3.6.9 and IE 8.
On SAFARI Ver 5.0.1 don’t work, the error is can’t find the file.
Any Suggestion?
Thank you
Sondra
Hi Stanislav I found the problem in my attach images.
I have this two blocks:
var step = 15;
var format = scheduler.date.date_to_str("%H:%i");
scheduler.config.hour_size_px=(60/step)*21;
scheduler.templates.hour_scale = function(date){
html="";
for (var i=0; i<60/step; i++){
html+="<div style='height:21px;line-height:21px;'>"+format(date)+"</div>";
date = scheduler.date.add(date,step,"minute");
}
return html;
}
and for color units:
var sections = scheduler.serverList("operatore");
scheduler.createUnitsView({
name:"unit",
property:"operatore",
list:sections,
size:8,
step:8
});
var old = scheduler.templates.unit_scale_date;
scheduler.templates.unit_scale_date=function(date){
var today = scheduler.date.date_part(new Date(scheduler._date));
var diff = Math.floor((date.valueOf()-today.valueOf())/(24*60*60*1000));
return "<div class='user_"+(diff+1)+"'>"+old(date)+"</div>";
}
If I comment out these two blocks for my scheduler, I can print PDF correctly.
Instead if I leave these blocks my PDF include HTML TAGS.
Have you some suggestion?
Thank you.
In generate php, before
$pdf->printGrid($xml);
add the next line
$pdf->strip_tags = true;