ZUGFeRDVisualizer toFOP and toPDF overload or refactoring idea #537
taskinkemal
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Hello, |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, at the moment toPDF and toFOP methods work inherently with files. In my local copy I'm working on the idea of working directly with streams and with string input. Something like this:
byte[] toPDFFromString(String xmlContent); // this uses toFOPFromString internally.
String toFOPFromString(String xmlContent);
In my copy I cloned the original methods and adjusted them to my needs. But for sure I can do a refactoring and reuse from the original methods to prevent code duplication.
Does it make sense, or is it worth it to move forward and contribute to the repo with this idea?
Beta Was this translation helpful? Give feedback.
All reactions