Aprendi que você pode adicionar marcadores a um arquivo PDF como este:
pdftk file.pdf update_info_utf8 bookmarks.txt output new_file.pdf
em que bookmarks.txt
é um arquivo criado por você. No entanto, parece que não consigo fazer o mesmo com os rótulos. Eu fiz um arquivo com os comandos label, semelhante ao
PageLabelBegin
PageLabelNewIndex: 1
PageLabelStart: 1
PageLabelPrefix: cover
PageLabelNumStyle: NoNumber
PageLabelBegin
PageLabelNewIndex: 2
PageLabelStart: 1
PageLabelPrefix: IFC-
PageLabelNumStyle: DecimalArabicNumerals
PageLabelBegin
PageLabelNewIndex: 5
PageLabelStart: 1
PageLabelNumStyle: LowercaseRomanNumerals
PageLabelBegin
PageLabelNewIndex: 6
PageLabelStart: 1
PageLabelPrefix: HEOA-1
PageLabelNumStyle: NoNumber
que é a mesma sintaxe pdftk
saídas quando você emite o comando
pdftk file.pdf dump_data output data.txt
Então, minha pergunta é: como adicionar rótulos ao meu arquivo PDF?
Tags pdf