FYI: the reason you had to add the double slashes was due to the fact that your string was contained within double quotes rather than single quotes.
See: http://ca3.php.net/manual/en/language.types.string.php
![]() |
|
||||||||||
|
PDF_open_fileОписаниеbool PDF_open_file ( resource p, string filename )Creates a new PDF file using the supplied file name. Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки. This function is deprecated since PDFlib version 6, use PDF_begin_document() instead. PDF_open_file
phpnet021221 A~T netized D~O~T com
23-Apr-2007 10:21
FYI: the reason you had to add the double slashes was due to the fact that your string was contained within double quotes rather than single quotes.
Button dot Man at gmail dot com
10-Aug-2005 09:39
"Fatal error: PDFlib error: [2100] PDF_begin_page: Function must not be called in 'object' scope"
21-Jun-2005 09:13
"Fatal error: PDFlib error: [2100] PDF_begin_page: Function must not be called in 'object' scope.."
php at mijav dot dk
11-Apr-2005 05:35
The example uses pdf_set_font, but that function is deprecated. Instead use pdf_setfont (without the underscore).
alfred dot zingg at freesurf dot ch at example dot com
16-Dec-2004 07:33
...
18-Oct-2004 05:55
After some troubles I found filename must be absolute path here in windows; relative path doesn't work in my box.
RandyAtHorktDotCom
28-Oct-2002 04:19
It is possible to append pdfs to each other, however it requires the commercial version of PDFlib with PDI support (http://www.pdflib.com)
jon at logicworks dot cc
24-Oct-2002 11:48
When creating a pdf in memory, it appears that the code is executed twice. This does not seem to happen when creating a pdf as file. Not a problem when outputing a pdf, but does cause a problem if doing other writes in the same code:
gbl at bso2001 dot com
19-Feb-2002 11:30
Appending to PDF files: plainly, you can't. PDF files have an internal structure that would get corrupted by just appending to the file. You'd need to parse the PDF, create a new PDF and mix your additions with the old PDF. Just creating a new one should be *much* easier.
nils at deviant dot no
16-Jan-2002 04:47
If you get "Fatal error: PDFlib error: function 'PDF_set_info' must not be called in 'object' scope in script.php on line xxx" when using pdf_open_file with a filename, make sure your webserver has write permissions to the directory your are trying to save your PDF file to.
|