Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-1496

Can't add multiple form XObjects to a PDF - they become duplicated

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.8.0
    • Component/s: PDModel, Utilities
    • Environment:
      Ubuntu Linux 12.04 w/ OpenJDK 6

      Description

      I've been trying to paste multiple small PDFs into a big one as form XObjects. This image illustrates what I'm trying to do:

      https://imageshack.us/photo/my-images/59/pdfsampleimagepasterigh.png/

      The Test 1-3 boxes would be the little PDFs I want to insert. When I try to do this, I get this result:

      https://imageshack.us/photo/my-images/15/pdfsampleimagepastewron.png/

      The last form to be pasted is just duplicated three times. It seems that instead of adding multiple XObjects, I am just adding multiple references to a single XObject, and whenever I try to add another XObject it just overwrites the XObject that the form instances were referring to. It seems I can't insert multiple forms, just multiple references to a single one.

        Attachments

          Activity

            People

            • Assignee:
              lehmi Andreas Lehmkühler
              Reporter:
              asengul Andrew Sengul
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: