This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/PKGBUILD b/PKGBUILD | |
index 73783e2..c61c00a 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -24,7 +24,7 @@ pkgver() { | |
cd "$_pkgname" | |
( | |
set -o pipefail | |
- git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || | |
+ git describe --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void convertHtmlToPdf(String html, OutputStream out) throws DocumentException { | |
Document doc = Jsoup.parse(html); | |
doc.outputSettings().escapeMode(EscapeMode.xhtml); | |
Element head = doc.head(); | |
Element style = new Element(Tag.valueOf("style"), doc.baseUri()); | |
style.text("img { -fs-fit-images-to-width: 100% }"); | |
head.appendChild(style); | |
DefaultUserAgent userAgent = new DefaultUserAgent(); | |
ITextRenderer renderer = new ITextRenderer(userAgent); | |
renderer.setDocument(DOMBuilder.jsoup2DOM(doc), doc.baseUri()); |