-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
segfault #37
Comments
this part looks like a problem: pageModifier = new hummus.PDFPageModifier pdfWriter,0
pageModifier.startContext().getContext() #.writeText 'Test Text',
pageModifier = new hummus.PDFPageModifier pdfWriter,0 try to remove the first 2 lines of this part. |
Oh sorry, my fault. Copy paste mistake. // Generated by CoffeeScript 1.9.2
(function() {
var hummus, pageModifier, pdfWriter;
hummus = require('hummus');
pdfWriter = hummus.createWriterToModify('./test.pdf', {
modifiedFilePath: './test.pdf'
});
pageModifier = new hummus.PDFPageModifier(pdfWriter, 0);
pageModifier.startContext().getContext().writeText('Test Text', 75, 10, {
font: pdfWriter.getFontForFile('./arial.ttf'),
size: 50,
colorspace: 'gray',
color: 0x00
});
pageModifier.endContext().writePage();
pdfWriter.end();
console.log('done - ok');
}).call(this); I get:
The pdf was created with MS Word and Mac OS X 10.9.5 Quartz PDFContext Found out that the segfault is not happening when I do |
Good. must be something unexpected data from with one of the fields. thanks. can you send me the test.pdf file? miminize possible mishaps in recreating the issue on my station. b.t.w how did you get this beautiful stack trace? |
It's
I send you the pdf by email. |
oh alright. checkin a solution, published to npm. should be fine now. |
thx, with |
Hummus v1.0.39, node v0.12.2 x86_64 (./configure --without-ssl2 --without-ssl3 --without-npm --gdb --debug)
The text was updated successfully, but these errors were encountered: