Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

add link extraction to pdfParser this extracts clickable links in pdf and adds it to the list of links

reger59c6532a6547
diff --git a/source/net/yacy/document/parser/pdfParser.java b/source/net/yacy/document/parser/pdfParser.java
index 1613eb8bf..7b5daaba7 100644
--- a/source/net/yacy/document/parser/pdfParser.java
+++ b/source/net/yacy/document/parser/pdfParser.java
@@ -173,7 +173,7 @@ public class pdfParser extends AbstractParser implements Parser {
contentBytes = writer.getBytes(); // get final text before closing writer
pdflinks = extractPdfLinks(pdfDoc);
} catch (final Throwable e) {
- // close the writer (in finally)
+ //close the writer (in finally)
//throw new Parser.Failure(e.getMessage(), location);
} finally {
try {pdfDoc.close();} catch (final Throwable e) {}