@@ -21,15 +21,15 @@ public static void initApi2PdfClient() {
21
21
22
22
@ Test
23
23
public void testLibreofficeConvert () throws IOException {
24
- Api2PdfResponse response = a2pClient .libreofficeConvert ("http ://homepages.inf.ed.ac.uk/neilb/TestWordDoc. doc" , true ,
24
+ Api2PdfResponse response = a2pClient .libreofficeConvert ("https ://www.api2pdf.com/wp-content/themes/api2pdf/assets/samples/sample-word- doc.docx " , true ,
25
25
"test.pdf" );
26
26
Assert .assertEquals (response .getSuccess (), true );
27
27
}
28
28
29
29
@ Test
30
30
public void testMerge () throws IOException {
31
- String [] urls = { "http://www.orimi .com/pdf-test .pdf" ,
32
- "http://www.orimi .com/pdf-test .pdf" };
31
+ String [] urls = { "http://www.api2pdf .com/wp-content/uploads/2021/01/1a082b03-2bd6-4703-989d-0443a88e3b0f-4 .pdf" ,
32
+ "http://www.api2pdf .com/wp-content/uploads/2021/01/1a082b03-2bd6-4703-989d-0443a88e3b0f-4 .pdf" };
33
33
Api2PdfResponse response = a2pClient .merge (urls , true , "test.pdf" );
34
34
Assert .assertEquals (response .getSuccess (), true );
35
35
}
@@ -53,7 +53,7 @@ public void testWkhtmlToPdfFromHtmlWithOptions() throws IOException {
53
53
54
54
@ Test
55
55
public void testWkhtmlToPdfFromUrl () throws IOException {
56
- Api2PdfResponse response = a2pClient .wkhtmlToPdfFromUrl ("https://www.google .com" ,
56
+ Api2PdfResponse response = a2pClient .wkhtmlToPdfFromUrl ("https://www.api2pdf .com" ,
57
57
true , "test.pdf" );
58
58
Assert .assertEquals (response .getSuccess (), true );
59
59
}
@@ -63,7 +63,7 @@ public void testWkhtmlToPdfFromUrlWithOptions() throws IOException {
63
63
HashMap <String , String > options = new HashMap <String , String >();
64
64
options .put ("orientation" , "landscape" );
65
65
options .put ("pageSize" , "A4" );
66
- Api2PdfResponse response = a2pClient .wkhtmlToPdfFromUrl ("https://www.google .com" ,
66
+ Api2PdfResponse response = a2pClient .wkhtmlToPdfFromUrl ("https://www.api2pdf .com" ,
67
67
true , "test.pdf" , options );
68
68
Assert .assertEquals (response .getSuccess (), true );
69
69
}
@@ -87,7 +87,7 @@ public void testHeadlessChromeFromHtmlWithOptions() throws IOException {
87
87
88
88
@ Test
89
89
public void testHeadlessChromeFromUrl () throws IOException {
90
- Api2PdfResponse response = a2pClient .headlessChromeFromUrl ("https://www.google .com" ,
90
+ Api2PdfResponse response = a2pClient .headlessChromeFromUrl ("https://www.api2pdf .com" ,
91
91
true , "test.pdf" );
92
92
Assert .assertEquals (response .getSuccess (), true );
93
93
}
@@ -97,7 +97,7 @@ public void testHeadlessChromeFromUrlWithOptions() throws IOException {
97
97
HashMap <String , String > options = new HashMap <String , String >();
98
98
options .put ("orientation" , "landscape" );
99
99
options .put ("pageSize" , "A4" );
100
- Api2PdfResponse response = a2pClient .headlessChromeFromUrl ("https://www.google .com" ,
100
+ Api2PdfResponse response = a2pClient .headlessChromeFromUrl ("https://www.api2pdf .com" ,
101
101
true , "test.pdf" , options );
102
102
Assert .assertEquals (response .getSuccess (), true );
103
103
}
0 commit comments