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

How to edit metadata ? #94

Open
SadCl0wn opened this issue Jun 8, 2021 · 2 comments
Open

How to edit metadata ? #94

SadCl0wn opened this issue Jun 8, 2021 · 2 comments

Comments

@SadCl0wn
Copy link

SadCl0wn commented Jun 8, 2021

Hi,

I am trying to open an existing PDF. Insert some metadata and then save it.
But file.trailer.info_dict values doesn't seem to be used when I use the .save_to method
Is it something feasible? Or planned?

@s3bk
Copy link
Contributor

s3bk commented Jun 11, 2021

  • File::save passes &mut self.trailer to self.storage.save
  • the trailer is converted into a dictionary (let trailer = trailer.to_dict(self)?;)
  • that dictionary is added to xref_and_trailer

I think it should work?

@s3bk
Copy link
Contributor

s3bk commented Jun 11, 2021

I should note that write support is .. "it works". It does need a lot more work, but your case should indeed work as is.

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

No branches or pull requests

2 participants