-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add possibility to create new GoPdf struct from existing pdf byte array #157
base: master
Are you sure you want to change the base?
Conversation
Hi @oneplus1000! I've created this PR a few days ago and would like to know if it is an acceptable feature! :) |
because I don't know much about "gofpdi", I would like you to add a go test function (you may add it to the gopdf_test.go Or maybe create a new file). Sorry for my late reply 😢 |
Hey, no problem! Sure, I will add a test to the PR, you're a 100% correct! |
for i := 1; i < len(pageSizes); i++ { | ||
gp.AddPage() | ||
|
||
if i > 1 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it possible that i
can be less than zero ?
Can anyone speed up the PR's review and merge process? Thanks a lot! |
Hi @hsluoyz! @oneplus1000 had asked me to provide a few tests for this feature. I have been quite busy latelly and not able to do it. As soon a I find some free time I'll add them and then we can merge. |
has this been added yet? I would like to load a pdf from s3 |
@oneplus1000 can you close this PR? It looks like it's been abandoned. |
It would be nice to have the ability to create a new GoPdf from an existing PDF. It is possible using the Importer, so I added a function
NewFromBytes()
that wraps the feature and creates a GoPdf instance from any byte array that stores a PDF file, importing the pages one by one.