Commit e24a2a9
committed
Make RUPS open document in read-only mode by default
Since the iText library upgrade we have an issue, that some of the
information is missing from the trailer. For example, the /Info
dictionary is always missing, if the PDF document is opened in the
read-write mode. But even before that, there were some modifications
happening to the data, like the modification date changing.
As a workaround for now we will start opening all the files in the
read-only mode by default. In this case it should show data much closer
to what is in the original document.
If you want to edit the document, you can use the "Reopen as Owner"
option, which reuses the code added for user/owner password protection
handling.
This still leave the issue, that in the read-write mode the data doesn't
match, but it would take more effort to solve...1 parent 35db459 commit e24a2a9
File tree
2 files changed
+61
-45
lines changed- src
- main/java/com/itextpdf/rups/model
- test/java/com/itextpdf/rups/model
2 files changed
+61
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
| |||
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
| 150 | + | |
162 | 151 | | |
163 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
164 | 157 | | |
165 | | - | |
166 | | - | |
| 158 | + | |
| 159 | + | |
167 | 160 | | |
168 | | - | |
| 161 | + | |
169 | 162 | | |
170 | 163 | | |
171 | 164 | | |
| |||
174 | 167 | | |
175 | 168 | | |
176 | 169 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
184 | 174 | | |
185 | 175 | | |
186 | 176 | | |
187 | 177 | | |
188 | 178 | | |
189 | 179 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
| 180 | + | |
194 | 181 | | |
195 | 182 | | |
196 | 183 | | |
| |||
203 | 190 | | |
204 | 191 | | |
205 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
206 | 228 | | |
207 | 229 | | |
208 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | | - | |
74 | | - | |
| 73 | + | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
| |||
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
102 | | - | |
103 | | - | |
| 101 | + | |
104 | 102 | | |
105 | 103 | | |
106 | 104 | | |
| |||
115 | 113 | | |
116 | 114 | | |
117 | 115 | | |
118 | | - | |
119 | | - | |
120 | | - | |
| 116 | + | |
121 | 117 | | |
122 | 118 | | |
123 | 119 | | |
| |||
156 | 152 | | |
157 | 153 | | |
158 | 154 | | |
159 | | - | |
160 | | - | |
| 155 | + | |
161 | 156 | | |
162 | 157 | | |
163 | 158 | | |
| |||
172 | 167 | | |
173 | 168 | | |
174 | 169 | | |
175 | | - | |
176 | | - | |
| 170 | + | |
177 | 171 | | |
178 | | - | |
179 | | - | |
| 172 | + | |
| 173 | + | |
180 | 174 | | |
181 | 175 | | |
182 | 176 | | |
| |||
195 | 189 | | |
196 | 190 | | |
197 | 191 | | |
198 | | - | |
| 192 | + | |
199 | 193 | | |
200 | 194 | | |
201 | 195 | | |
| |||
207 | 201 | | |
208 | 202 | | |
209 | 203 | | |
210 | | - | |
| 204 | + | |
211 | 205 | | |
212 | 206 | | |
213 | 207 | | |
| |||
0 commit comments