Estou tendo problemas com a tag "Subfiletype" em um PDF de várias páginas. Gostaria de remover completamente a tag "Subfiletype" e fazer a tag PageNumber contar assim: 0,1. . 1,2. . 2,3 em vez de 0,6. . 1,6 . 2,6
Isto é o que minhas tags EXIF parecem atualmente (saída por exiftool):
+ [IFD0 directory with 20 entries]
| 0) SubfileType = 2
| - Tag 0x00fe (4 bytes, int32u[1]):
| 31146: 02 00 00 00 [....]
| 1) ImageWidth = 850
| - Tag 0x0100 (2 bytes, int16u[1]):
| 31152: 52 03 [R.]
| 2) ImageHeight = 1100
| - Tag 0x0101 (2 bytes, int16u[1]):
| 3115e: 4c 04
.
.
.
| 16) PageNumber = 0 6
| - Tag 0x0129 (4 bytes, int16u[2]):
| 31206: 00 00 06 00
E este é o formato desejado:
+ [IFD0 directory with 16 entries]
| 0) ImageWidth = 2496
| - Tag 0x0100 (2 bytes, int16u[1]):
| 6da8: c0 09 [..]
| 1) ImageHeight = 4128
| - Tag 0x0101 (2 bytes, int16u[1]):
| 6db4: 20 10
.
.
.
| 15) PageNumber = 0 1
| - Tag 0x0129 (4 bytes, int16u[2]):
| 6e5c: 00 00 01 00
Eu tentei usar o exiftool para eliminar a tag, mas não seria. Eu suspeito que essa tag seja "obrigatória" (mesmo que outras imagens não a tenham, e ainda funcionem bem).
Como faço para remover a tag indesejada dos arquivos em questão?