Skip to content

Commit 4deb45a

Browse files
author
Guillaume Tâche
committed
GH-46 Adds WebDav support
1 parent d1cbfb2 commit 4deb45a

26 files changed

+911
-84
lines changed

core/core-awt/src/main/java/org/icepdf/core/pobjects/fonts/zfont/cmap/CMap.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ public synchronized void init() {
512512
try {
513513
cMapInputStream.close();
514514
} catch (IOException e) {
515-
logger.log(Level.FINE, "Error clossing cmap stream", e);
515+
logger.log(Level.FINE, "Error closing cmap stream", e);
516516
}
517517
}
518518
}

pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<jbig2.version>3.0.4</jbig2.version>
2929
<font-box.version>2.0.27</font-box.version>
3030
<junit.bom.version>5.9.3</junit.bom.version>
31+
<commons-logging.version>1.2</commons-logging.version>
3132
</properties>
3233

3334
<licenses>
@@ -167,6 +168,10 @@
167168
<groupId>org.apache.maven.plugins</groupId>
168169
<artifactId>maven-compiler-plugin</artifactId>
169170
<version>3.7.0</version>
171+
<configuration>
172+
<source>11</source>
173+
<target>11</target>
174+
</configuration>
170175
</plugin>
171176
<plugin>
172177
<groupId>org.codehaus.mojo</groupId>

viewer/viewer-awt/build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ dependencies {
2222
implementation 'org.bouncycastle:bcprov-jdk15on:' + "${BOUNCY_VERSION}"
2323
implementation 'org.bouncycastle:bcprov-ext-jdk15on:' + "${BOUNCY_VERSION}"
2424
implementation 'org.bouncycastle:bcpkix-jdk15on:' + "${BOUNCY_VERSION}"
25+
compile 'com.github.lookfirst:sardine:5.10'
26+
compile 'org.apache.tika:tika-core:1.23'
27+
compile 'jakarta.xml.bind:jakarta.xml.bind-api:2.3.3'
28+
compile 'org.glassfish.jaxb:jaxb-runtime:2.3.3'
2529
}
2630

2731
// generatePomFileForViewerJarPublication
@@ -101,4 +105,4 @@ task javadocJar(type: Jar, dependsOn: 'javadoc') {
101105
artifacts {
102106
archives sourcesJar
103107
archives javadocJar
104-
}
108+
}

viewer/viewer-awt/pom.xml

+78-56
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,78 @@
1-
<?xml version="1.0"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
3-
<modelVersion>4.0.0</modelVersion>
4-
<parent>
5-
<groupId>com.github.pcorless.icepdf</groupId>
6-
<artifactId>viewer</artifactId>
7-
<version>7.2.0-SNAPSHOT</version>
8-
</parent>
9-
<artifactId>icepdf-viewer</artifactId>
10-
<packaging>jar</packaging>
11-
<name>ICEpdf :: Viewer : Swing/AWT Viewer RI</name>
12-
<description>
13-
ICEpdf Java Swing/AWT reference implementation.
14-
</description>
15-
16-
<dependencies>
17-
<dependency>
18-
<groupId>com.github.pcorless.icepdf</groupId>
19-
<artifactId>icepdf-core</artifactId>
20-
</dependency>
21-
</dependencies>
22-
23-
<profiles>
24-
<profile>
25-
<id>assembly</id>
26-
<build>
27-
<plugins>
28-
<plugin>
29-
<artifactId>maven-assembly-plugin</artifactId>
30-
<configuration>
31-
<archive>
32-
<manifest>
33-
<mainClass>org.icepdf.ri.viewer.Launcher</mainClass>
34-
</manifest>
35-
</archive>
36-
<descriptorRefs>
37-
<descriptorRef>jar-with-dependencies</descriptorRef>
38-
</descriptorRefs>
39-
</configuration>
40-
<executions>
41-
<execution>
42-
<id>make-assembly</id>
43-
<!-- this is used for inheritance merges -->
44-
<phase>package</phase>
45-
<!-- bind to the packaging phase -->
46-
<goals>
47-
<goal>single</goal>
48-
</goals>
49-
</execution>
50-
</executions>
51-
</plugin>
52-
</plugins>
53-
</build>
54-
</profile>
55-
</profiles>
56-
</project>
1+
<?xml version="1.0"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
5+
<groupId>com.github.pcorless.icepdf</groupId>
6+
<artifactId>viewer</artifactId>
7+
<version>7.2.0-SNAPSHOT</version>
8+
</parent>
9+
<artifactId>icepdf-viewer</artifactId>
10+
<packaging>jar</packaging>
11+
<name>ICEpdf :: Viewer : Swing/AWT Viewer RI</name>
12+
<description>
13+
ICEpdf Java Swing/AWT reference implementation.
14+
</description>
15+
16+
<dependencies>
17+
<dependency>
18+
<groupId>com.github.pcorless.icepdf</groupId>
19+
<artifactId>icepdf-core</artifactId>
20+
</dependency>
21+
<dependency>
22+
<groupId>com.github.lookfirst</groupId>
23+
<artifactId>sardine</artifactId>
24+
<version>5.10</version>
25+
</dependency>
26+
<dependency>
27+
<groupId>org.apache.tika</groupId>
28+
<artifactId>tika-core</artifactId>
29+
<version>1.23</version>
30+
</dependency>
31+
<dependency>
32+
<groupId>jakarta.xml.bind</groupId>
33+
<artifactId>jakarta.xml.bind-api</artifactId>
34+
<version>2.3.3</version>
35+
</dependency>
36+
<dependency>
37+
<groupId>org.glassfish.jaxb</groupId>
38+
<artifactId>jaxb-runtime</artifactId>
39+
<version>2.3.3</version>
40+
</dependency>
41+
</dependencies>
42+
43+
<profiles>
44+
<profile>
45+
<id>assembly</id>
46+
<build>
47+
<plugins>
48+
<plugin>
49+
<artifactId>maven-assembly-plugin</artifactId>
50+
<configuration>
51+
<archive>
52+
<manifest>
53+
<mainClass>org.icepdf.ri.viewer.Launcher</mainClass>
54+
</manifest>
55+
</archive>
56+
<descriptorRefs>
57+
<descriptorRef>jar-with-dependencies</descriptorRef>
58+
</descriptorRefs>
59+
</configuration>
60+
<executions>
61+
<execution>
62+
<id>make-assembly</id>
63+
<!-- this is used for inheritance merges -->
64+
<phase>package</phase>
65+
<!-- bind to the packaging phase -->
66+
<goals>
67+
<goal>single</goal>
68+
</goals>
69+
</execution>
70+
</executions>
71+
</plugin>
72+
</plugins>
73+
</build>
74+
</profile>
75+
</profiles>
76+
77+
78+
</project>

viewer/viewer-awt/src/main/java/org/icepdf/ri/common/KeyEventConstants.java

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public class KeyEventConstants {
3333
public static final int MODIFIER_OPEN_FILE = MENU_SHORTCUT_KEY_MASK;
3434
public static final int KEY_CODE_OPEN_URL = KeyEvent.VK_U;
3535
public static final int MODIFIER_OPEN_URL = MENU_SHORTCUT_KEY_MASK;
36+
public static final int KEY_CODE_OPEN_DAV = KEY_CODE_OPEN_URL;
37+
public static final int MODIFIER_OPEN_DAV = MENU_SHORTCUT_KEY_MASK | InputEvent.ALT_MASK;
3638
public static final int KEY_CODE_CLOSE = KeyEvent.VK_W;
3739
public static final int MODIFIER_CLOSE = MENU_SHORTCUT_KEY_MASK;
3840
public static final int KEY_CODE_SAVE = KeyEvent.VK_S;

0 commit comments

Comments
 (0)