Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I upvoted Michael's answer, because it's the correct answer to your question.</p> <p>However, reading your code, you have another problem you're not aware of: you're using the wrong code to merge PDFs. You should use <code>PdfCopy</code> or <code>PdfSmartCopy</code>, NOT <code>PdfWriter</code>!</p> <p>This has been explained many times before:</p> <ul> <li><a href="https://stackoverflow.com/questions/14670336/how-to-keep-the-same-format-on-pdf-after-write-in-another-one/14671326#14671326">how to keep the same format on pdf after write in another one</a></li> <li><a href="https://stackoverflow.com/questions/15309651/itextsharp-unexpected-elements-on-copied-pages/15310389#15310389">itextsharp: unexpected elements on copied pages</a></li> <li><a href="https://stackoverflow.com/questions/14770942/itext-pdf-merge-document-overflow-outside-pdf-text-truncated-page-and-not-di/14771651#14771651">Itext pdf Merge : Document overflow outside pdf (Text truncated) page and not displaying</a></li> <li>...</li> </ul> <p>The fact that you're using PdfWriter reveals that you didn't read <a href="http://www.manning.com/lowagie2/samplechapter6.pdf" rel="nofollow noreferrer">the documentation</a>.</p> <p>Furthermore, your question sounds as if you don't know that Lowagie is a name of a person. Actually, it's my name, and it's very awkward when somebody says, <em>Lowagie iText API not working</em>. For starters, because I've been asking to <a href="http://lowagie.com/itext2" rel="nofollow noreferrer">stop using those old versions</a> of iText, but also because it sounds like a personal accusation, confusing a product with a human being. See <a href="https://stackoverflow.com/questions/13515210/difference-between-lowagie-and-itext/13515403#13515403">What is the difference between lowagie and iText?</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload