Changeset 23866 in osm for applications/editors/josm/plugins/pdfimport
- Timestamp:
- 2010-10-27T15:56:41+02:00 (14 years ago)
- 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 423 423 return null; 424 424 } catch (Exception e) { 425 e.printStackTrace(); 425 426 JOptionPane 426 427 .showMessageDialog( -
applications/editors/josm/plugins/pdfimport/src/pdfimport/pdfbox/GraphicsProcessor.java
r23863 r23866 54 54 this.transform = new AffineTransform(); 55 55 this.transform.rotate(Math.toRadians(rotation)); 56 this.info.color = Color.BLACK; 57 this.info.fillColor = Color.BLACK; 56 58 } 57 59 -
applications/editors/josm/plugins/pdfimport/src/pdfimport/pdfbox/PdfBoxParser.java
r23863 r23866 40 40 PDRectangle pageSize = page.findMediaBox(); 41 41 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 } 43 47 44 48 GraphicsProcessor p = new GraphicsProcessor(target, rotation, pageDimension.getHeight());
Note:
See TracChangeset
for help on using the changeset viewer.