White text PDF
White text PDF
- Started
- Last post
- 3 Responses
- OBBTKN
Hi, I'm working on a print HTML to PDF thing... Everything is working fine, only one problem, there is a white text over an image and prints it over in black.
Do you know a solution?
- ArchitectofFate0
huh? as in you've got an pdf where there are "letters cut-out" in white on screen and black on paper? or black on screen?
Have you checked the output preview on the pdf?
- white text "prints" as black when creating the pdf, in file and in preview tooOBBTKN
- urghhh... code.... I'm out glhfArchitectofFate
- Hayzilla0
Tick 'Background Graphics'?
- Yes, I've got this ticked... problem is when placing white text over images, prob. for "better text readability" in printers...OBBTKN
- I'm using @media print and screen media in css, with !important rules, but nothing worksOBBTKN
- how does the css looks for the text?sted
- color: white !important;
under @media print and in global css tooOBBTKN - Ey... solved! Done declaring classes for all the childs under the divOBBTKN
- OBBTKN2
Solved. Bur there's anoher way, using svg for white texts:
<svg height="40" width="200">
<text font-size="28px" y="25" x="30" fill="#ffffff" >
Some text
</text>
</svg>