Welcome Guest, Not a member yet? Register   Sign In
problem with using dompdf
#8

[eluser]Eric Cope[/eluser]
[quote author="splendidus" date="1234338022"]Hi everybody!

I had the same "Invalid Expression" Problem.
I have my styles in a separate css-file, which I link to my php-file.

After several hours of searching and trying, I finally found 'the' solution in my case.
The key words are: character encoding, UTF-8, BOM.

My editor added a BOM (http://unicode.org/faq/utf_bom.html#BOM) at the beginning of my css-file, while saving it using a UTF-8 encoding.
It was not visible in the editor, but the DOMPDF read it as a '' directly prior to my first style element 'body', and 'body' is indeed an invalid expression.

Hope this helps somebody...[/quote]

I am having this very problem. How did you solve it?

Edit: I changed the encoding of a view file from UTF-8 to Western Latin-1.


Messages In This Thread
problem with using dompdf - by El Forum - 03-07-2008, 11:09 AM
problem with using dompdf - by El Forum - 03-09-2008, 07:33 AM
problem with using dompdf - by El Forum - 03-12-2008, 10:49 PM
problem with using dompdf - by El Forum - 04-07-2008, 08:11 PM
problem with using dompdf - by El Forum - 07-23-2008, 02:37 PM
problem with using dompdf - by El Forum - 01-17-2009, 09:17 AM
problem with using dompdf - by El Forum - 02-10-2009, 07:40 PM
problem with using dompdf - by El Forum - 02-22-2010, 11:52 PM
problem with using dompdf - by El Forum - 02-26-2010, 09:35 AM
problem with using dompdf - by El Forum - 05-20-2010, 09:49 AM
problem with using dompdf - by El Forum - 05-20-2010, 03:20 PM
problem with using dompdf - by El Forum - 05-20-2010, 03:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB