Details

    • Type: Bug Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Writing
    • Labels:
      None

      Description

      [imported from SourceForge]
      http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1087993
      Originally submitted by benlitchfield on 2004-12-19 09:25.

      A bad PDF is generated when using overlay class

      See zig.pdf and zigheader.pdf

      Ben

      1. overlayl-h.pdf
        51 kB
        Erik Scholtz
      2. overlayh-l.pdf
        53 kB
        Erik Scholtz
      3. letter.pdf
        35 kB
        Erik Scholtz
      4. Kopie.pdf
        8 kB
        MH
      5. header.pdf
        19 kB
        Erik Scholtz

        Activity

        Hide
        MH added a comment -

        Test overlay PDF.

        Show
        MH added a comment - Test overlay PDF.
        Hide
        MH added a comment -

        Same here with latest PDFBox 1.6.0. I use the simple demo code in Overlay.java:

        final PDDocument overlay = PDDocument.load(overlayPDFName);
        if (overlay != null) {
        try

        { final Overlay overlayer = new Overlay(); overlayer.overlay(overlay, doc); }

        finally

        { overlay.close(); }

        }//else: overlay unavailable

        but for several overlay PDFs, the resulting PDF doesn't show anything (white pages) ar just some crippled content. (I will attach a demo overlay.pdf that shows flawlessly in misc PDF viewers,)

        Show
        MH added a comment - Same here with latest PDFBox 1.6.0. I use the simple demo code in Overlay.java: final PDDocument overlay = PDDocument.load(overlayPDFName); if (overlay != null) { try { final Overlay overlayer = new Overlay(); overlayer.overlay(overlay, doc); } finally { overlay.close(); } }//else: overlay unavailable but for several overlay PDFs, the resulting PDF doesn't show anything (white pages) ar just some crippled content. (I will attach a demo overlay.pdf that shows flawlessly in misc PDF viewers,)
        Hide
        Erik Scholtz added a comment -

        Ok; the files mentioned in this issue can neither be found here, nor on sourceforge. I made a little test, overlaying the header.pdf with letter.pdf and a second test overlaying letter.pdf with header.pdf.

        -----Code-----
        Overlay head = new Overlay();
        PDDocument resulthl = head.overlay(header, letter);
        PDDocument resultlh = head.overlay(letter, header);
        resulthl.save("overlayh-l.pdf");
        resultlh.save("overlayl-h.pdf");
        -----/Code-----

        The result in the overlayl-h.pdf is, what I expected it to be; the result of overlayh-l.pdf is not what I expected it to be, but understandable. I'm not sure if this is the default-behaviour or really a bug. Perhaps someone can take a look on it and revalidate my result. To me this bug is "Not a Bug".

        Show
        Erik Scholtz added a comment - Ok; the files mentioned in this issue can neither be found here, nor on sourceforge. I made a little test, overlaying the header.pdf with letter.pdf and a second test overlaying letter.pdf with header.pdf. ----- Code ----- Overlay head = new Overlay(); PDDocument resulthl = head.overlay(header, letter); PDDocument resultlh = head.overlay(letter, header); resulthl.save("overlayh-l.pdf"); resultlh.save("overlayl-h.pdf"); ----- /Code ----- The result in the overlayl-h.pdf is, what I expected it to be; the result of overlayh-l.pdf is not what I expected it to be, but understandable. I'm not sure if this is the default-behaviour or really a bug. Perhaps someone can take a look on it and revalidate my result. To me this bug is "Not a Bug".

          People

          • Assignee:
            Unassigned
            Reporter:
            Anonymous
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development