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

Overlay shifting the document slightly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 0.7.3
    • None
    • Utilities
    • None

    Description

      [imported from SourceForge]
      http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1745009
      Originally submitted by jakep36 on 2007-06-28 11:30.

      I'm trying to use the overlay method to put a pre-printed form over top of print data converted to pdf. Overlay seems to shift my print data slightly down and to the left. Both the overlay pdf and the print data are 8.5 by 11. I was using 0.7.3 but switched to 0.7.4-dev-20070628, but it is still happening. Has anyone else experienced this issue and have you discovered a work around or fix?

      With the sample files, I'm only trying to overlay the first page of overlay.pdf with the first page of the print file.

      code looks something like this:
      newOverlay = PDDocument.new
      newOverlay.importPage(overlayPdf.page(0))
      overlayer = Overlay.new
      overlayer.overlay(newDocument,newOverlay)
      @pdf.importPage(newOverlay.getDocumentCatalog().getAllPages()[0])

      [attachment on SourceForge]
      http://sourceforge.net/tracker/download.php?group_id=78314&atid=552832&aid=1745009&file_id=234976
      Archive.zip (application/zip), 86002 bytes
      elec_new.pdf is the overlay, print file, and my attempt to combine them.

      [attachment on SourceForge]
      http://sourceforge.net/tracker/download.php?group_id=78314&atid=552832&aid=1745009&file_id=234975
      Archive.zip (application/zip), 86002 bytes
      elec_new.pdf is the overlay, print file, and my attempt to combine them.

      [comment on SourceForge]
      Originally sent by jakep36.
      Logged In: YES
      user_id=1768812
      Originator: YES

      File Added: Archive.zip

      [comment on SourceForge]
      Originally sent by jakep36.
      Logged In: YES
      user_id=1768812
      Originator: YES

      File Added: Archive.zip

      [comment on SourceForge]
      Originally sent by benlitchfield.
      Logged In: YES
      user_id=601708
      Originator: NO

      see issue_1745009.zip

      Attachments

        Activity

          People

            lehmi Andreas Lehmkühler
            Anonymous Anonymous
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: