Changeset 23863 in osm


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

Transition to pdfbox library.

Location:
applications/editors/josm/plugins/pdfimport
Files:
1 added
3 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pdfimport/.classpath

    r23861 r23863  
    44        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    55        <classpathentry combineaccessrules="false" kind="src" path="/JOSM"/>
    6         <classpathentry kind="lib" path="lib/PDFClown.jar"/>
    76        <classpathentry kind="lib" path="lib/pdfbox.jar" sourcepath="D:/Projects/Community/OSM/josm/pdfimport/pdfbox-1.3.1/pdfbox/src/main/java"/>
    87        <classpathentry kind="output" path="bin"/>
  • applications/editors/josm/plugins/pdfimport/build.xml

    r23703 r23863  
    4545        <property name="plugin.dist.dir" value="../../dist" />
    4646        <property name="plugin.name" value="${ant.project.name}" />
     47        <property name="libpdf" value="lib/pdfbox.jar"/>               
    4748        <property name="plugin.jar" value="${plugin.dist.dir}/${plugin.name}.jar" />
    4849
     
    6566                        <classpath>
    6667                                <pathelement location="${josm}"/>
     68                                <pathelement location="${libpdf}"/>                             
    6769                        </classpath>                   
    6870                </javac>
     
    8183
    8284        <target name="dist" depends="compile,revision">
     85                <unjar dest="${plugin.build.dir}" src="${libpdf}"/>
    8386                <copy todir="${plugin.build.dir}/images">
    8487                        <fileset dir="images" />
  • applications/editors/josm/plugins/pdfimport/src/pdfimport/pdfbox/PdfBoxParser.java

    r23862 r23863  
    4040                PDRectangle pageSize = page.findMediaBox();
    4141                Dimension pageDimension = pageSize.createDimension();
     42                int rotation = page.getRotation();
    4243
    43                 GraphicsProcessor p = new GraphicsProcessor(target, pageDimension.getHeight());
     44                GraphicsProcessor p = new GraphicsProcessor(target, rotation, pageDimension.getHeight());
    4445                PageDrawer drawer = new PageDrawer();
    4546                drawer.drawPage(p, page, pageDimension);
Note: See TracChangeset for help on using the changeset viewer.