@the...@chromium.org thanks in advance for the review, let me know if you want me to address anything
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Hey, Just happened to see this Cl, I have a small nit here.
When inserting before an existing object, adopt that object's content stream so GenerateContent() rewrites the inserted object in place instead of appending a new stream at the end of /Contents.Nit: Commit message needs line wrap :)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// Insert a rectangle at index 0; this should be drawn first (underneath theIt would be good to also call `FPDFPage_InsertObjectAtIndex(page.get(), ... 2);` to insert a different colored rectangle that overlaps the 2 pre-existing objects, to also make sure z-ordering works correctly in between.
There's also hello_world_split_streams.pdf, which has multiple streams and can be used to make sure SetContentStream() works correctly and does not confuse multiple existing content streams.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
When inserting before an existing object, adopt that object's content stream so GenerateContent() rewrites the inserted object in place instead of appending a new stream at the end of /Contents.Nit: Commit message needs line wrap :)
Done
// Insert a rectangle at index 0; this should be drawn first (underneath theIt would be good to also call `FPDFPage_InsertObjectAtIndex(page.get(), ... 2);` to insert a different colored rectangle that overlaps the 2 pre-existing objects, to also make sure z-ordering works correctly in between.
There's also hello_world_split_streams.pdf, which has multiple streams and can be used to make sure SetContentStream() works correctly and does not confuse multiple existing content streams.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
When inserting before an existing object, adopt that object's content stream so GenerateContent() rewrites the inserted object in place instead of appending a new stream at the end of /Contents.Helmut JanuschkaNit: Commit message needs line wrap :)
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
When inserting before an existing object, adopt that object's content stream so GenerateContent() rewrites the inserted object in place instead of appending a new stream at the end of /Contents.Helmut JanuschkaNit: Commit message needs line wrap :)
Aryan KrishnanDone
Quite sure it still needs wrap.
```
Persist FPDFPage_InsertObjectAtIndex() ordering on save
When inserting before an existing object, adopt that object's content
stream so GenerateContent() rewrites the inserted object in place
instead of appending a new stream at the end of /Contents.
Bug: 507508112
Change-Id: I97127e77d698e94f2c55feb66c6847d17011ceab
```
it wraps, at most of 70, am i missing something?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
When inserting before an existing object, adopt that object's content stream so GenerateContent() rewrites the inserted object in place instead of appending a new stream at the end of /Contents.Helmut JanuschkaNit: Commit message needs line wrap :)
Aryan KrishnanDone
Helmut JanuschkaQuite sure it still needs wrap.
```
Persist FPDFPage_InsertObjectAtIndex() ordering on saveWhen inserting before an existing object, adopt that object's content
stream so GenerateContent() rewrites the inserted object in place
instead of appending a new stream at the end of /Contents.Bug: 507508112
Change-Id: I97127e77d698e94f2c55feb66c6847d17011ceab
```it wraps, at most of 70, am i missing something?
On the web editor it seems to extend as far as about 100.
I have added a suggested edit below. Notice how in the old version all of the content remains in line 9 for some reason on gerrit. Applying this should fix it though.
```suggestion
When inserting before an existing object, adopt that object's content
stream so GenerateContent() rewrites the inserted object in place
instead of appending a new stream at the end of /Contents.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
When inserting before an existing object, adopt that object's content stream so GenerateContent() rewrites the inserted object in place instead of appending a new stream at the end of /Contents.Helmut JanuschkaNit: Commit message needs line wrap :)
Aryan KrishnanDone
Helmut JanuschkaQuite sure it still needs wrap.
Aryan Krishnan```
Persist FPDFPage_InsertObjectAtIndex() ordering on saveWhen inserting before an existing object, adopt that object's content
stream so GenerateContent() rewrites the inserted object in place
instead of appending a new stream at the end of /Contents.Bug: 507508112
Change-Id: I97127e77d698e94f2c55feb66c6847d17011ceab
```it wraps, at most of 70, am i missing something?
On the web editor it seems to extend as far as about 100.
I have added a suggested edit below. Notice how in the old version all of the content remains in line 9 for some reason on gerrit. Applying this should fix it though.
```suggestion
When inserting before an existing object, adopt that object's content
stream so GenerateContent() rewrites the inserted object in place
instead of appending a new stream at the end of /Contents.
```
weird, i might have not have hit "save" in gerrit :) PS3 should be now a copy&paste from your suggestion!, thanks!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Persist FPDFPage_InsertObjectAtIndex() ordering on save
When inserting before an existing object, adopt that object's content
stream so GenerateContent() rewrites the inserted object in place
instead of appending a new stream at the end of /Contents.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |