Forum


Replies: 9   Views: 2973
Pdf watermark issue.
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 01-02-2018 - 07:02

Hello,

The problem is that the PDF is corrupted. Although some PDF viewers can open it, the document has internal problems. If you check the document, you get this information:

Entity: line 9: parser error : PCDATA invalid Char value 23
  <pdf:Creator></pdf:Creator>
               ^
Entity: line 11: parser error : PCDATA invalid Char value 5
  <pdf:Title></pdf:Title>
             ^
Entity: line 12: parser error : PCDATA invalid Char value 3
  <pdf:Author>€Ö!</pdf:Author>
                    ^
Entity: line 13: parser error : PCDATA invalid Char value 11
  <pdf:Producer>Ë}
                  •ùƒ</pdf:Producer>
                   ^
Entity: line 13: parser error : PCDATA invalid Char value 3
  <pdf:Producer>Ë}
                  •ùƒ</pdf:Producer>
                    ^
Entity: line 13: parser error : PCDATA invalid Char value 1
  <pdf:Producer>Ë}
                  •ùƒ</pdf:Producer>
                            ^
Entity: line 13: parser error : PCDATA invalid Char value 3
  <pdf:Producer>Ë}
                  •ùƒ</pdf:Producer>
                             ^
Entity: line 23: parser error : PCDATA invalid Char value 5
    <rdf:li xml:lang='x-default'></rdf:li>
                                 ^
Entity: line 26: parser error : PCDATA invalid Char value 3
  <xap:Author>€Ö!</xap:Author>
                    ^
Entity: line 34: parser error : PCDATA invalid Char value 5
  <dc:title></dc:title>
            ^
Entity: line 35: parser error : PCDATA invalid Char value 3
  <dc:creator>€Ö!</dc:creator>

If you repair it:

pdftocairo -pdf Keightley_1963.pdf Keightley_1963_repaired.pdf

the watermark is added perfectly.

Regards.