Ignore:
Timestamp:
2010-10-27T15:56:41+02:00 (14 years ago)
Author:
extropy
Message:

Improvements to PDFimport plugin.

Location:
applications/editors/josm/plugins/pdfimport/src/pdfimport
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pdfimport/src/pdfimport/LoadPdfDialog.java

    r23864 r23866  
    423423                        return null;
    424424                } catch (Exception e) {
     425                        e.printStackTrace();
    425426                        JOptionPane
    426427                        .showMessageDialog(
  • applications/editors/josm/plugins/pdfimport/src/pdfimport/pdfbox/GraphicsProcessor.java

    r23863 r23866  
    5454                this.transform = new AffineTransform();
    5555                this.transform.rotate(Math.toRadians(rotation));
     56                this.info.color = Color.BLACK;
     57                this.info.fillColor = Color.BLACK;
    5658        }
    5759
  • applications/editors/josm/plugins/pdfimport/src/pdfimport/pdfbox/PdfBoxParser.java

    r23863 r23866  
    4040                PDRectangle pageSize = page.findMediaBox();
    4141                Dimension pageDimension = pageSize.createDimension();
    42                 int rotation = page.getRotation();
     42                Integer rotationVal = page.getRotation();
     43                int rotation = 0;
     44                if (rotationVal != null){
     45                        rotation = rotationVal.intValue();
     46                }
    4347
    4448                GraphicsProcessor p = new GraphicsProcessor(target, rotation, pageDimension.getHeight());
Note: See TracChangeset for help on using the changeset viewer.