New JavaScript library

I have been writing up a java script library to convert html to pdf, all is going well. Before i continue any further i would like to know how users feel about these optional html attributes for rendering the pdf.
Ollie is an eel. He likes his home in a jar. When he comes out he swims over his jar. He swims under his jar. He swims through his jar. He swims around his jar. When he is done, he swims back into his jar. Now there are two eels, Ollie and Izzy. When Ollie and Izzy come out they can swim over, under, through, around, and back into their jar together.
The render uses text wrap to the nearest word detected. For example the line: "Now there are two eels, Ollie and Izzy. When Ollie and Izzy come out they can swim over, under, through, around, and back into their jar together." Would more then likely be larger then the PDF width, so the text wrap may wrap the text to a new line like so.. Now there are two eels, Ollie and Izzy. When Ollie and Izzy come out they can swim over, under, through, around, and back into their jar together." The PDF_CENTER attribute centers the text. (alignment right comming soon). The attributes: PDF_WIDTH='612' PDF_HEIGHT='792' PDF_FONT_SIZE='16' PDF_FROMLEFT='20' PDF_FROMTOP='42' PDF_LS='22' are all predefined settings, you dont need to use these only if you wish to modify the document. i am pretty much wrapping up the text rendering and moving on to using images, just want to make sure the syntax is all well with everyone whom might use this library. Download a sample of the PDF -> https://mega.co.nz/#!ilJDyaqS!fpu6pBxtige6ZTR_UY3oDWb1pCpgJaAkoKI5U3bw0-Q to render in javascript you would use: $A_PDF('.PDF').literals.PDF_WRITER('.PDF > #PDF_LINE'); Is there anything you would change about this library syntax?
Typo? PDF_WIDTH='792' - anyway I think this may be closed due to opinion based questions are off topic. If the span is centered in the container, I guess it should be centered in the PDF, no?

以上就是New JavaScript library的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏