Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Text does not show up #81

Open
ivopashov opened this issue Mar 9, 2015 · 0 comments
Open

Text does not show up #81

ivopashov opened this issue Mar 9, 2015 · 0 comments

Comments

@ivopashov
Copy link

Hi,
Trying to do a simple export but text and svg don't show up when exporting with your library while styles obviously kick in. Same html file exported with wkhtmltopdf tools shows styles and text (no svg though). Is there a setting that can make text show up.

The results:

with pechkin

exportwithpechkin

with wkhtmltopdf

exportedwithwkhtmltopdf

Here is my code:

var oc = new ObjectConfig();
oc.SetPrintBackground(true) //we need this for sure
.SetAllowLocalContent(false)
.SetScreenMediaType(true); //we need this for sure

byte[] pdfBuf = new SimplePechkin(new GlobalConfig().SetMargins(10, 10, 10, 10) .SetPaperSize(PaperKind.A4).SetOutputFile("c:\Users\i.pashov\Desktop\exportedWithPechkin.pdf")).Convert(oc, line);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant