Skip to content

allow creating pdf from byte arrays #2

@lefnire

Description

@lefnire

you might add some options{} parameter to be passed in to your initialize(), image(), etc. functions that allow configurable sources (rather than everything coming from a path on the file-system).
For example, I only had to change a couple lines of code to allow the input to come from byte[]:

reader = @pdfreader.new_with_sig("[B", pdf_bytes)

img = image._invoke('getInstance', '[B', image_bytes)

just some way so we can call an overloaded version of your iText function-calls

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions