Comments (2)
Thanks for reporting!
I've tried to reproduce this error with:
for (var i = 0; i < 2; ++i) { // two tables
var table = doc.table({
padding: 5,
borderWidth: 1,
borderColor: 0xdddddd,
backgroundColor: 0xeeeeee,
widths: ['100%']
})
for (var j = 0; j < 33; ++j) {
table.tr().td(j)
}
}
The last row of the first table will break to the next page and the second table is added afterwards without any problem. So I am unfortunately not able to reproduce your error :-/
Do you have anything special in your code that I code add to my simple example? Or could you provide a example yourself that reproduces this issue?
Thanks
(sorry in advance, my next answer will take about a week or so)
from pdfjs.
Thanks for your answer. During writing an exampe for this I found out,
that I included a fs.write before sending the pdf result to the client
interface. And it seems that this causes the error, not the pdf
generation, sorry. Maybe that the buffer is cleared and then
pdf.toString() fails. maybe, I had no time to check this in detail but
now it works.
Thanks Markus for ongoing support.
Am 30.10.15 um 11:55 schrieb Markus Ast:
Thanks for reporting!
I've tried to reproduce this error with:
for (var i= 0; i< 2;++i) {// two tables
var table= doc.table({
padding: 5,
borderWidth: 1,
borderColor: 0xdddddd,
backgroundColor: 0xeeeeee,
widths: ['100%']
})for (var j= 0; j< 33;++j) { table.tr().td(j) }
}
The last row of the first table will break to the next page and the
second table is added afterwards without any problem. So I am
unfortunately not able to reproduce your error :-/Do you have anything special in your code that I code add to my simple
example? Or could you provide a example yourself that reproduces this
issue?Thanks
(sorry in advance, my next answer will take about a week or so)
—
Reply to this email directly or view it on GitHub
#49 (comment).
from pdfjs.
Related Issues (20)
- Error: Using spaces or \t at the beginning of a line when using Chinese will result in no line breaks HOT 1
- ExternalDocument can not create pdf from buffer HOT 1
- TypeError: Cannot read property '12' of undefined HOT 11
- Can I create a large pdf without loading the entire file into memory? HOT 1
- Missing outline when merging PDF files HOT 1
- how can I extract contents from a pdf HOT 1
- Downscale images in external PDF HOT 1
- Cannot catch error in asBuffer() HOT 21
- imported in .vue file but giving issue HOT 1
- Combined PDF size is bigger than the originals HOT 2
- Fragments are appearing in wrong order... HOT 1
- Invalid throw code in text._render HOT 1
- Issue with Inaccurate Text Highlighting in PDF Search Using ng2-pdfjs-viewer - Version 13 HOT 1
- The add() method of the table cell text method does not respect the "textAlign" or "alignment" properties HOT 1
- How do I set the font My characters are now garbled ? HOT 1
- Improve client-side support HOT 1
- Failed to add document containing lexer HOT 1
- Crash when processing PDF using nodejs HOT 2
- Underline does not seem to work well
- I get Process error while using this library in react js
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 pdfjs.