Comments (3)
Hi @schooltech,
Currently the issue is taken care and will be available in the next release.
Thanks
from unipdf.
Hi @schooltech,
We release new UniPDF version to solve this issue https://github.com/unidoc/unipdf/releases/tag/v3.52.0.
We closing this issue for now and you can re-open this issue if you still having problem after updating to the latest version of UniPDF.
from unipdf.
Hi @sampila , I just tested the latest v3.52.0 version and the bug is still there when span rows across pages ,
`
font, err := model.NewCompositePdfFontFromTTFFile("./web/public/dist/fonts/microsoft.ttf")
if err != nil {
log.Fatal(err)
}
c := creator.New()
c.EnableFontSubsetting(font)
var PPMM = float64(72 * 1.0 / 25.4)
c.SetPageSize(creator.PageSize{210 * PPMM, 297 * PPMM})
c.SetPageMargins(50, 50, 50, 50)
drawCell := func(table *creator.Table, text string, font *model.PdfFont, colspan int, rowspan int) {
p := c.NewStyledParagraph()
p.Append(text).Style.Font = font
p.SetMargins(0, 0, 5, 5)
cell := table.MultiCell(rowspan, colspan)
cell.SetBorder(creator.CellBorderSideAll, creator.CellBorderStyleSingle, 0.5)
cell.SetHorizontalAlignment(creator.CellHorizontalAlignmentCenter)
cell.SetVerticalAlignment(creator.CellVerticalAlignmentMiddle)
cell.SetIndent(0)
cell.SetContent(p)
}
drawFooter("", c, font)
list := make([]map[string]string, 0)
for i := 0; i < 200; i++ {
m := make(map[string]string)
m[fmt.Sprintf("row-%v", i)] = fmt.Sprintf("name:tom-%v;no:naom-%v;p-0%v", i, i, i)
list = append(list, m)
}
table := c.NewTable(3)
table.SetMargins(10, 10, 10, 10)
index := 0
for _, mp := range list {
for k, v := range mp {
items := strings.Split(v, ";")
drawCell(table, k, font, 1, len(items))
subIndex := 0
for _, item := range items {
drawCell(table, item, font, 1, 1)
if subIndex == 0 {
drawCell(table, k, font, 1, len(items))
}
subIndex++
}
}
index++
}
c.Draw(table)
c.WriteToFile("d:/span-row-over-page.pdf")
from unipdf.
Related Issues (20)
- [BUG] Proxy is not working HOT 2
- [BUG] Page break between subchapters HOT 1
- [BUG] Writing to buffer with nonroot user HOT 6
- [FEATURE] Add more presets and initializer for PageSize HOT 2
- [BUG] PDF Creation not working as expected HOT 7
- [BUG] Incorrect table display occurs when multiple rows across pages HOT 3
- [BUG] failed to initialize unidoc: license key already set HOT 4
- [BUG] incorrect object position when draw svg graphics HOT 7
- [BUG] Huge memory consumption when writing images to PDF HOT 7
- Render method produces poor quality images. HOT 3
- [BUG] device.Render does not handle transparency HOT 3
- [BUG] no matching font found in the system HOT 3
- [BUG] Font objects syntax error while merging a PDF document with another HOT 17
- [BUG] Unipdf is messing up the unicode while merging Searchable PDF documents and applying PDF/1-a HOT 9
- [BUG] Accessibility tags missing on download HOT 10
- [BUG] Failures when extracting text from pdf HOT 4
- [BUG] miss makezero in slice init HOT 2
- [BUG] Extracted text from table is reversed when text is styled with an underline HOT 5
- [BUG]: Not able to change text color of form fields in the PDF HOT 3
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 unipdf.