Cannot update Content stream with doc.update_stream #1614
Replies: 7 comments 10 replies
-
When you save a stream, you must make sure that the xref already is a stream object. So if you make a new xref and then update it with the object definition of another (old) xref, then this does not make the new xref a stream object! Even if old xref was a stream object. |
Beta Was this translation helpful? Give feedback.
-
we aren't creating a new xref, we are updating the existing xref containing the object stream with new stream. |
Beta Was this translation helpful? Give feedback.
-
Still try with the |
Beta Was this translation helpful? Give feedback.
-
I have tried creating a new xref and updating it with the new stream. Then, I have modified the internal structure to make use of the new stream to look for contents in similar fashion as mentioned below.
Then I have saved the document into a new file but I don't the expected content stream after extracting and decoding the content stream. |
Beta Was this translation helpful? Give feedback.
-
we put this in |
Beta Was this translation helpful? Give feedback.
-
You are not telling the full story: how does this relate to your previous problem? |
Beta Was this translation helpful? Give feedback.
-
I have no experience with marked content. So I am of no help with this topic. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Please provide all mandatory information!
Describe the bug (mandatory)
Update content stream erases everything.
To Reproduce (mandatory)
Content stream is completely empty in new file.
Expected behavior (optional)
Updated content stream in the new PDF.
Screenshots (optional)
Completely blank PDF.
Your configuration (mandatory)
Additional context (optional)
Trying to find if we can modify internal structure and corresponding object stream to tag element (link in this context)
Beta Was this translation helpful? Give feedback.
All reactions