Skip to content

Commit 4679877

Browse files
SychevSPSergey Sychev
andauthored
fixed images on Android (#108)
Co-authored-by: Sergey Sychev <[email protected]>
1 parent 4bc1a3d commit 4679877

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/android/print/PdfConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void onWriteFinished(PageRange[] pages) {
9696
});
9797
WebSettings settings = mWebView.getSettings();
9898
settings.setDefaultTextEncodingName("utf-8");
99-
mWebView.loadData(mHtmlString, "text/HTML; charset=utf-8", null);
99+
mWebView.loadDataWithBaseURL(mBaseURL, mHtmlString, "text/HTML", "utf-8", null);
100100
}
101101

102102
public PrintAttributes getPdfPrintAttrs() {

0 commit comments

Comments
 (0)