Comments (6)
It seems that patterns are rasterized by the Skia SVG engine.
I can offer the following workaround that generates each stripe in a loop:
.Svg(size =>
{
var tileSize = 15;
var stripes = Enumerable
.Range(0, (int)(size.Width / tileSize / 2) + 1)
.Select(x => $@"<rect x=""0"" y=""{tileSize * x * 2}"" width=""100%"" height=""{tileSize}"" fill=""black""></rect>");
return $@"<svg width=""100%"" height=""100%"" style=""background:black;"">
<defs>
<clipPath id=""clip"">
<rect x=""0"" y=""0"" width=""100%"" height=""100%"" />
</clipPath>
</defs>
<g clip-path=""url(#clip)"">
<rect x=""0"" y=""0"" width=""100%"" height=""100%"" fill=""yellow""></rect>
<g transform=""rotate(-45) translate(-40, 0)"">
{string.Join("", stripes)}
</g></g>
</svg>";
});
from questpdf.
@MarcinZiabek I don't remember how many problems of ours you solved. You always come up with a solution and we always talk (highly) behind you, thank you so much! :)
from questpdf.
It's my pleasure to help! Thanks to the hybrid license, I can dedicate time to provide at least basic support 😄
from questpdf.
@MarcinZiabek Hi Marcin. We have been strongly considering that. We will get in touch with you soon.
from questpdf.
Just to clarify, I didn't mean to suggest you should purchase the license. Instead, I am simply grateful that the Community understands and respects the license and that there is funding to keep going :)
from questpdf.
@MarcinZiabek we just want to join the club :)
from questpdf.
Related Issues (20)
- Unexpected spacing when drawing text in table cells HOT 6
- Allow insertion of existing pdf pages into QuestPDF documents HOT 3
- Over-line text HOT 2
- .Page(page => { page.MarginHorizontal(40); page.MarginVertical(60); page.Header() .Height(60) .Background(Colors.Grey.Lighten1) .AlignCenter() .AlignMiddle() .Text("Header"); page.Content() .Background(Colors.Grey.Lighten2) .AlignCenter() .AlignMiddle() .Text("Content"); page.Footer() .Height(30) .Background(Colors.Grey.Lighten1) .AlignCenter() .AlignMiddle() .Text("Footer"); });
- Full Page Border with Header, Content, and Footer Inside HOT 1
- Text Not Visible in PDF Report When Using QuestPdf 2024.7.0 in .NET Framework 4.8 Web API HOT 1
- ShowOnce() Header does show on every page with 2024.7 HOT 3
- Memory seems to not be release between PDF generations in production environment HOT 14
- Get progress when generating document. HOT 6
- MultiColumn Website Documentation HOT 4
- Parsing HTML content into It's normal Text HOT 1
- Spelling mistake for parameter in LineHorizontal HOT 2
- Dynamic footer causes unnecessary page breaks HOT 6
- multiple Table.Header is not working anymore HOT 11
- Add a table inside another table in QuestPDF
- GenerateImages results in a large amount of unmanaged memory HOT 7
- "Your runtime is currently not supported by QuestPDF." on AWS 64bit Amazon Linux HOT 3
- Table Footer Issue HOT 1
- DocumentLayoutException on upgrading from 2024.3.10 with rotated element HOT 2
- CheckIfAllTextGlyphsAreAvailable enhancement
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from questpdf.