Skip to content
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 addJS method to PdfFileWriter #114

Merged
merged 1 commit into from
Jul 3, 2014
Merged

Conversation

vfigueiro
Copy link
Contributor

Added addJS method to writer (taken from mfenniak/pyPdf#39)

@snorfalorpagus
Copy link
Contributor

What brilliant luck that the day I need this feature is the day after it is written!

I can confirm that this feature works (after fairly minimal testing!)

@mstamy2
Copy link
Collaborator

mstamy2 commented Jul 3, 2014

Thank you!

mstamy2 added a commit that referenced this pull request Jul 3, 2014
Add addJS method to PdfFileWriter
@mstamy2 mstamy2 merged commit aa33193 into py-pdf:master Jul 3, 2014
@vfigueiro vfigueiro deleted the addjs branch July 4, 2014 10:22
@@ -106,7 +106,8 @@ def __init__(self):
NameObject("/Type"): NameObject("/Catalog"),
NameObject("/Pages"): self._pages,
})
self._root = self._addObject(root)
self._root = None
self.root = root
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the point of making the self.root attribute public?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't call _addObject in init, hence the new var. You're right about the variable naming. Fixed it here: #119

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants