diff --git a/openhtmltopdf-pdfbox/src/main/java/com/openhtmltopdf/pdfboxout/PdfBoxFastLinkManager.java b/openhtmltopdf-pdfbox/src/main/java/com/openhtmltopdf/pdfboxout/PdfBoxFastLinkManager.java index 854e6bfa4..9b4392727 100644 --- a/openhtmltopdf-pdfbox/src/main/java/com/openhtmltopdf/pdfboxout/PdfBoxFastLinkManager.java +++ b/openhtmltopdf-pdfbox/src/main/java/com/openhtmltopdf/pdfboxout/PdfBoxFastLinkManager.java @@ -9,6 +9,8 @@ import com.openhtmltopdf.render.BlockBox; import com.openhtmltopdf.render.Box; import com.openhtmltopdf.render.RenderingContext; +import com.openhtmltopdf.util.XRLog; + import org.apache.pdfbox.pdmodel.PDPage; import org.apache.pdfbox.pdmodel.common.PDRectangle; import org.apache.pdfbox.pdmodel.interactive.action.PDAction; @@ -27,6 +29,7 @@ import java.util.*; import java.util.List; import java.util.Map.Entry; +import java.util.logging.Level; public class PdfBoxFastLinkManager { @@ -217,6 +220,8 @@ private void addUriAsLink(RenderingContext c, Box box, PDPage page, float pageHe return; addLinkToPage(page, annot); + } else { + XRLog.general(Level.WARNING, "Could not find valid target for link. Link href = " + uri); } } else if (uri.contains("://")) { PDActionURI uriAct = new PDActionURI();