-
Notifications
You must be signed in to change notification settings - Fork 77
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
Add functionality to return base64 #43
Comments
I merged the pull request but I am confused at what you think it does based on your description -- this code: return utf8ToBase64(xepOnline.Formatter.entity_declaration + current_stylesheet + printcopy); Would return the content in base64 encoding that is being sent to the server to be formatted, not the resulting PDF being returned after formatting. Your comment seems to indicate otherwise. I can see this being helpful in systems that may want a fully resolved chunk of HTML content. If you wish to implement something that just stores the base64 encoded PDF that is the result of formatting, that would be easy as the system returns base64 encoded PDF in the Response XML which is already parsed out. |
If you look for this line ... you could set such a flag as you have done and if that flag is set, just return that value which would return the base64 encoded value of the result. Is that what you where trying to do? |
Yes I think I messed up, somehow my trial page returned the correct base64 ... I will change the render name for current commit and add a new render option for this Also would you want me to change the read me file too ? |
I have several changes ... I just commented on one to see how people want it implemented. I will handle the readme as I will have a new option too. |
I have another one similar to yours that actually breaks the base64 and stores in the webbrowser. I will need to walk through all that to see what to do. That was a fork that allows people to do something like ... Download ... As PNG and they would get a downloaded PNG of every page in the PDF. |
Please check the pull request - I have added another option for getting the base64 for the pdf also. set
render variable at the time of calling to 'base64' and the script would
return base64. Very handy if the pdf is being forwarded to a service
after generation by the developer! Can you please have a look at it ? Thank You :)
The text was updated successfully, but these errors were encountered: