« first day (2410 days earlier)   
03:00 - 14:0014:00 - 15:00

2:00 PM
Wherever they feel like. I got it working between viewing the pdf with pdf.js, toggling pages with a dropdown, and drawing on a canvas. When they change pages, it saves the canvas to a dataURL and builds a new pdf with jsPDF, then reloads that in pdf.js on a canvas to view it. It's a mess, really.

Also, not possible to do this server side like @derp suggested. It's just not an option with Siebel.
 
how would you like it to work?
 
1. Get a base64 of the pdf from the server. 2. Print pdf onto a <canvas>. 3. Draw on canvas. 4. Save these as images/shapes onto the pdf. 5. Re-upload new base64 to server.
 
Don't think you're going to get it easier than that
 
Do the annotations need to be in the PDF or can you just save them to the server separately?
 
would they know if you introduced some sort of node middleware that slowly migrated pdfs from the siebel database? :P
 
2:05 PM
annotations would need to be on the pdf file.
 
you will have a hard time on step 4
 
@derp Anything else server side just isn't an option. It really sucks, but literally all I can do is send and retrieve base64 from the Siebel server. @KarelG I've actually got that working now between jsPDF and pdf.js, but it's a mess, and when I convert the canvas to an image and save that into a new PDF, all text in the PDF is lost since it's converted to just an image.
 
maybe you can use webpack to bundle up PDFNetJS with it's .mem file
 
Actually not a bad idea, that might work
It's still an enormous thing to include
 
actually, the .mem file is probably not fetched in a way that webpack can deal with
 
2:10 PM
i feel dumb for asking this, but what's a mem file?
 
Just some binary data. Not sure what it's for but it's needed by PDFNetJS
 
it's when your memes are so dank that the e falls off
 
some file that pdfnetjs uses. who knows
 
ha
 
What extension does Windows use for the virtual memory swapping anyway?
 
2:13 PM
o/
hello friends
 
I want to say they're mem files..
 
meme files
 
i dunno, when i googled it, it showed up as some sort of file associated with Foxpro?
 
It could be used by multiple programs. Seems like a generic file extension like file.pak
 
¯_(ツ)_/¯
 
2:17 PM
@derp here, you dropped this: \
 
¯\_(ツ)_/¯
 
////
 
my arm fell off
 
I once had to write a json message for a user notes input that in turn was thrown inside an xml by the receiver (not my idea, don't judge)
I ended up having to triple escape quotation marks and crazy shit like that
Do not recommend
 
2:21 PM
looks like the .mem file is because pdfnetjs is recompiled from another language with emscripten
 
@Arcv Welcome to the JavaScript chat! Please review the room rules. Pleasedon't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
hello, I wanted to update my url with ajax call
 
location.href = myUrlHere
 
and i found this one- window.history.pushState()
 
history.pushState(null, null, myUrlHere)
 
2:24 PM
ok, but what are the parameters to be passed
 
google it
 
huh TIL
 
Can anyone explain to me how you use the webpack style loader with vue? I followed the instructions but it's telling me I need to import the styles via the style loader but doesn't say where or if I should just include the imports in the app.js?
 
if using style-loader, then you just require('./some.css') or import './some.css';
That adds a <style> tag to the page.
 
Oh brilliant, I thought it was almost to simple to be true
Just got sass working and now bootstrap
cheers luggage :D
 
03:00 - 14:0014:00 - 15:00

« first day (2410 days earlier)