poppler issueshttps://gitlab.freedesktop.org/poppler/poppler/-/issues2021-07-22T22:01:53Zhttps://gitlab.freedesktop.org/poppler/poppler/-/issues/1097Support PDF version overriding from document catalog2021-07-22T22:01:53ZFrancisco de la PeñaSupport PDF version overriding from document catalogSince PDF 1.4, PDF Version may be overriden from document catalog, something like:
```
1 0 obj
<<
/Type /Catalog
/Version /1.5
/Pages 2 0 R
>>
endobj
```
The PDF version as defined in the example above should be identified as a PDF ver...Since PDF 1.4, PDF Version may be overriden from document catalog, something like:
```
1 0 obj
<<
/Type /Catalog
/Version /1.5
/Pages 2 0 R
>>
endobj
```
The PDF version as defined in the example above should be identified as a PDF version 1.5 instead of 1.4, even when the header says %PDF-1.4.
Poppler currently reports this as a PDF 1.4 document, as `PDFDoc.cc` seems to set this based on header data only.https://gitlab.freedesktop.org/poppler/poppler/-/issues/1096How to use this on Windows?2021-07-05T16:44:04ZOokerHow to use this on Windows?I'm sorry if this is a basic question, but the front page doesn't tell me how to do this on Windows.I'm sorry if this is a basic question, but the front page doesn't tell me how to do this on Windows.https://gitlab.freedesktop.org/poppler/poppler/-/issues/1095Does poppler support tagged PDF?2021-06-24T05:29:53ZDenis BitouzéDoes poppler support tagged PDF?(Related to https://gitlab.freedesktop.org/poppler/poppler/-/issues/1093.)
[test.pdf](/uploads/554c158916f9ce13583d92b485dbf4ac/test.pdf)[test.pdf](/uploads/55ce3bb0e6ceb99539f7d73454a89b0a/test.pdf) tagged and the LaTeX team would expe...(Related to https://gitlab.freedesktop.org/poppler/poppler/-/issues/1093.)
[test.pdf](/uploads/554c158916f9ce13583d92b485dbf4ac/test.pdf)[test.pdf](/uploads/55ce3bb0e6ceb99539f7d73454a89b0a/test.pdf) tagged and the LaTeX team would expect the first code:
```
\pdfdict_new:n {l_my_action_dict}
\pdfdict_put:nnn {l_my_action_dict}{Type}{/Action}
\pdfdict_put:nnn {l_my_action_dict}{S}{/URI}
\pdfdict_put:nnn {l_my_action_dict}{URI}{(https://www.latex-project.org)}
```
if copied, to be pasted as it is and not, as it is currently the case with e.g. `Evince`, as:
```
\pdfdict_new:n
\pdfdict_put:nnn
\pdfdict_put:nnn
\pdfdict_put:nnn
{l_my_action_dict}
{l_my_action_dict}{Type}{/Action}
{l_my_action_dict}{S}{/URI}
{l_my_action_dict}{URI}{(https://www.latex-project.org)}
```https://gitlab.freedesktop.org/poppler/poppler/-/issues/1093Space understood as column separator when copy-paste2023-09-26T23:42:42ZDenis BitouzéSpace understood as column separator when copy-pasteI'm not sure that this issue is a `poppler` one per se, but I encountered it with several `poppler` based PDF readers on Linux: `Zathura`, `Okular` and `Evince`: if the code between "Or through a dictionary:" and "Or if you want to exclu...I'm not sure that this issue is a `poppler` one per se, but I encountered it with several `poppler` based PDF readers on Linux: `Zathura`, `Okular` and `Evince`: if the code between "Or through a dictionary:" and "Or if you want to exclude the possibility [...]" page 3 of [this PDF document](http://mirrors.ctan.org/macros/latex/contrib/pdfmanagement-testphase/l3pdfannot.pdf):
```latex
\pdfdict_new:n {l_my_action_dict}
\pdfdict_put:nnn {l_my_action_dict}{Type}{/Action}
\pdfdict_put:nnn {l_my_action_dict}{S}{/URI}
\pdfdict_put:nnn {l_my_action_dict}{URI}{(https://www.latex-project.org)}
\pdfannot_dict_put:nnn {link/URI} { C } {[1~0~0]} %red border
\pdfannot_link:nxn { URI }
{
/A <<\pdfdict_use:n{l_my_action_dict}>>
}
{ link text }
```
is copied, it is pasted as:
```latex
\pdfdict_new:n
\pdfdict_put:nnn
\pdfdict_put:nnn
\pdfdict_put:nnn
{l_my_action_dict}
{l_my_action_dict}{Type}{/Action}
{l_my_action_dict}{S}{/URI}
{l_my_action_dict}{URI}{(https://www.latex-project.org)}
\pdfannot_dict_put:nnn
{link/URI} { C } {[1~0~0]} %red border
\pdfannot_link:nxn { URI }
{
/A <<\pdfdict_use:n{l_my_action_dict}>>
}
{ link text }
```
[According to this comment](https://github.com/latex3/pdfresources/issues/19#issuecomment-866089474), this trouble doesn't arise with PDF readers not based on `poppler`.https://gitlab.freedesktop.org/poppler/poppler/-/issues/1092Configuring incomplete, errors occurred!2021-06-15T21:35:32ZnivilwilsonpConfiguring incomplete, errors occurred!No test data found in $testdatadir.
You will not be able to run 'make test' successfully.
The test data is not included in the source packages
and is also not part of the main git repository. Instead,
you can checkout th...No test data found in $testdatadir.
You will not be able to run 'make test' successfully.
The test data is not included in the source packages
and is also not part of the main git repository. Instead,
you can checkout the test data from its own git
repository with:
git clone git://git.freedesktop.org/git/poppler/test
You should checkout the test data as a sibling of your
poppler source folder or specify the location of your
checkout with -DTESTDATADIR=/path/to/checkoutdir/test.
-- no fontconfig or win32 specific code
-- Could NOT find JPEG (missing: JPEG_LIBRARY) (found version "80")
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.11")
-- Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
-- Checking for module 'nss>=3.19'
-- No package 'nss' found
-- Could NOT find NSS3 (missing: NSS3_LIBRARIES NSS3_CFLAGS)
CMake Error at CMakeLists.txt:150 (message):
Install libjpeg before trying to build poppler. You can also decide to use
the internal unmaintained DCT decoder or none at all.
-- Configuring incomplete, errors occurred!
See also "/home/nivilwilsonp/Desktop/c++/poppler-21.06.1/build/CMakeFiles/CMakeOutput.log"https://gitlab.freedesktop.org/poppler/poppler/-/issues/1091Qt5 Frontend - Saving a new copy with the same filename results in the docume...2021-06-12T09:54:11ZMahmoud KhalilQt5 Frontend - Saving a new copy with the same filename results in the document contents being removedSteps to reproduce:
- Open any PDF document
- Save a copy of the file with the same name of the original opened document, from File->Save a Copy
Expected Behavior:
The file contents should be overwritten normally, preserving the origina...Steps to reproduce:
- Open any PDF document
- Save a copy of the file with the same name of the original opened document, from File->Save a Copy
Expected Behavior:
The file contents should be overwritten normally, preserving the original contents of the file
Observed Result:
The file contents are removed, and the file becomes an empty .pdf file
Might be a duplicate of #428https://gitlab.freedesktop.org/poppler/poppler/-/issues/1090cannot create library for android arm64-v8a,armeabi-v7a please update build i...2021-06-12T09:29:05Znivilwilsonpcannot create library for android arm64-v8a,armeabi-v7a please update build instructionsThe instructions you given in this link is not working.[click here](https://gitlab.freedesktop.org/poppler/poppler/-/blob/master/.gitlab-ci.yml)
`build_android:
stage: build
image: kdeorg/android-sdk
before_script:
- wget http...The instructions you given in this link is not working.[click here](https://gitlab.freedesktop.org/poppler/poppler/-/blob/master/.gitlab-ci.yml)
`build_android:
stage: build
image: kdeorg/android-sdk
before_script:
- wget https://download.savannah.gnu.org/releases/freetype/freetype-2.10.1.tar.xz
- tar xvfh freetype-2.10.1.tar.xz
- pushd freetype-2.10.1
- CFLAGS=-std=gnu99 STANDALONE_EXTRA="--arch arm64" /opt/helpers/build-standalone "./autogen.sh && ./configure --enable-shared=no --prefix=/opt/popplerandroid-deps --host=aarch64-linux-android && make -j`nproc` && make install"
- popd
script:
- mkdir -p build && cd build
- 'ANDROID_ARCH_ABI=arm64-v8a cmake -G Ninja ..
-DCMAKE_ANDROID_API=28
-DCMAKE_INSTALL_PREFIX="/opt/popplerandroid-deps"
-DCMAKE_PREFIX_PATH="$QT_ANDROID;/opt/popplerandroid-deps"
-DCMAKE_BUILD_TYPE=debug
-DCMAKE_POSITION_INDEPENDENT_CODE=OFF
-DENABLE_DCTDECODER=unmaintained
-DENABLE_LIBOPENJPEG=unmaintained
-DENABLE_BOOST=OFF
-DCMAKE_TOOLCHAIN_FILE=/opt/nativetooling/share/ECM/toolchain/Android.cmake'
- ninja && ninja install
`https://gitlab.freedesktop.org/poppler/poppler/-/issues/1089Different images from poppler windows and linux2022-12-04T00:28:29ZNeeraj BhatDifferent images from poppler windows and linuxHi, I've been using poppler version20.09.0 on windows and it was working fine for me. I had to use the same code on linux, so installed poppler-utils and started using poppler there. However, the images extracted from the same pdf docume...Hi, I've been using poppler version20.09.0 on windows and it was working fine for me. I had to use the same code on linux, so installed poppler-utils and started using poppler there. However, the images extracted from the same pdf document are different. In linux, there are extra spaces between alphabets of a word.
**Windows**
![image](/uploads/544f49bf9cc4669f74a8ede6f3da221d/image.png)
**linux**
![image](/uploads/657bf0a9b7d96e822ca5dd45332dc25a/image.png)
Please help me out here.https://gitlab.freedesktop.org/poppler/poppler/-/issues/1088Barcode not rendered/printed when printing a PDF from Okular2021-06-16T20:45:23ZAndrea IppolitoBarcode not rendered/printed when printing a PDF from OkularHello,
I printed out a shipping label using Okular 21.0.4, but the barcode is not printed.
I have opened a bug on the Okular tracker, and they pointed me to this tracker saying the problem lies in poppler, and indeed:
pdftops myfile.pdf...Hello,
I printed out a shipping label using Okular 21.0.4, but the barcode is not printed.
I have opened a bug on the Okular tracker, and they pointed me to this tracker saying the problem lies in poppler, and indeed:
pdftops myfile.pdf
gs myfile.ps
confirms that the barcode is not output in the ps file.
Please find attached the original file, as well as photos of the print outs from Okular (KO) and Firefox (OK).
[Votre_bon_d_envoi.pdf](/uploads/453d559c8f8e735fae3d0b40a89fba09/Votre_bon_d_envoi.pdf)
[Votre_bon_d_envoi.ps](/uploads/75ccd970e0db9bc9ec3beceabda93ef0/Votre_bon_d_envoi.ps)
[PXL_20210609_162643619](/uploads/05412c78917ff15a1a90a911a45a6dca/PXL_20210609_162643619.jpg)
[PXL_20210609_162646812](/uploads/66f444fabbe598c608bb94b67b4fc6b0/PXL_20210609_162646812.jpg)
Original bug reported on Okular with further info can be found here:
https://bugs.kde.org/show_bug.cgi?id=438335https://gitlab.freedesktop.org/poppler/poppler/-/issues/1087PopplerRectangle alloc/free mismatch2021-06-03T20:43:27ZJan Alexander SteffensPopplerRectangle alloc/free mismatchWhen e3fed321f230a4a91df873e6d9a213ba8dad6694 internally extended the `PopplerRectangle` type into `PopplerRectangleExtended`, the allocation was changed to
`g_slice_new0(PopplerRectangleExtended)` but the free was left at `g_slice_free(...When e3fed321f230a4a91df873e6d9a213ba8dad6694 internally extended the `PopplerRectangle` type into `PopplerRectangleExtended`, the allocation was changed to
`g_slice_new0(PopplerRectangleExtended)` but the free was left at `g_slice_free(PopplerRectangle, rectangle);`.
This confuses the slice allocator. It crashes loudly with `G_SLICE=debug-blocks`, while `G_SLICE=always-malloc` works around the bug as `free` does not care about allocation sizes.
This seems to be the underlying cause of https://gitlab.gnome.org/GNOME/evince/-/issues/1608.
/cc @nbenitezhttps://gitlab.freedesktop.org/poppler/poppler/-/issues/1085Using the Poppler::Page renderToPainter function of the poppler qt module, wh...2021-06-29T09:35:11ZkevinhwuUsing the Poppler::Page renderToPainter function of the poppler qt module, when printing the img of the data uri, the preview is normal, but when printing to the printer, the img is flipped overUsing the Poppler::Page renderToPainter function of the poppler qt module, when printing the img of the data uri, the preview is normal, but when printing to the printer, the img is flipped over.
We want to print a web page, which conta...Using the Poppler::Page renderToPainter function of the poppler qt module, when printing the img of the data uri, the preview is normal, but when printing to the printer, the img is flipped over.
We want to print a web page, which contains img with data uri, first use QWebviewPage printToPdf loaded as pdf data buffer, and then use qt Poppler::Page renderToPainter to print PDF pages,the preview is normal, but when printing to the printer, the img is flipped over.
poppler-20.12.1, win10
img with data uri: <img src="data:image/png;...
```c++
QPrinter printer;
QByteArray pdfData;
// print to pdf data buffer
const QPageLayout layout = printer.pageLayout();
auto cb1 = [&](const QByteArray & buf) {
result = !buf.isEmpty();
pdfData = buf;
};
m_webContent.page()->printToPdf(cb1, layout); // m_webContent is QWebEngineView
...
// use poppler to print pdf data
Poppler::Document* document = Poppler::Document::loadFromData(pdfData);
document->setRenderHint(Poppler::Document::Antialiasing);
document->setRenderHint(Poppler::Document::TextAntialiasing);
QPainter painter;
if(!painter.begin(&printer)) {
delete document;
return false;
}
painter.setRenderHints(QPainter::Antialiasing |QPainter::TextAntialiasing | QPainter::SmoothPixmapTransform | QPainter::LosslessImageRendering);
...
Poppler::Page* pdfPage = document->page(1);
auto res = printer.resolution();
pdfPage->renderToPainter(&painter, res, res)
...
painter.end();
delete document;
...
```
![微信图片_20210526194600](/uploads/a2d43cb109a9d787ffa26f5c6b4ab1f4/微信图片_20210526194600.jpg)[b5.pdf](/uploads/d48ad0cbc1a16f30ffa5619dc3984b95/b5.pdf)
---
New discovery, in the following 2 images, the "aa" image will be reversed and the "qq" image will not be reversed.
The "aa" image is generated by windows painter, and the "qq" image is exported by photoshop.
![t2](/uploads/3a039211864ea01634bc5de45c28139d/t2.png)
![t5](/uploads/ae034a560dbb2004d214354af5631fd5/t5.png)https://gitlab.freedesktop.org/poppler/poppler/-/issues/1083encrypted document appears empty2021-05-27T21:38:23ZTamas K. Pappencrypted document appears emptyI am trying to open an encrypted document in Ubuntu 21.04 with frontends that use poppler (eg Okular, etc) and in all of them
1. the frontend does not ask for a password,
2. the document is empty.
Unfortunately I cannot share the docu...I am trying to open an encrypted document in Ubuntu 21.04 with frontends that use poppler (eg Okular, etc) and in all of them
1. the frontend does not ask for a password,
2. the document is empty.
Unfortunately I cannot share the document, but I would like to do my best providing debugging information. In particular, is there anything I can do with poppler in the command line that would reproduce this or provide debugging info?
I would do it for the current version (libpoppler107 (= 21.02.0-1)) and also compile master from the git repo.
(Sorry if this information is in the docs or the wiki, I would not find it).
Some output from `qpdf --show-encryption`:
```
R = 4
P = -4
User password = REDACTED
Supplied password is owner password
Supplied password is user password
extract for accessibility: allowed
extract for any purpose: allowed
print low resolution: allowed
print high resolution: allowed
modify document assembly: allowed
modify forms: allowed
modify annotations: allowed
modify other: allowed
modify anything: allowed
stream encryption method: AESv2
string encryption method: AESv2
file encryption method: AESv2
```
pdfinfo:
```julia
pdfinfo /tmp/napilista.pdf
Syntax Error: Invalid encryption key length
Creator: gÓ0KÖço5
±IÊ«mrŁ
�˚¥ï€€«˛«ŸÆ0÷ÿ¸
"tC™BFOÖZW�
Producer: ò:æé˚”¹2®zA{Ö\1ØÛ¨§[XûÌ[]¸Å⁄b‘ÝíGÉmÙµRc§··ñÔ
CreationDate: H}lqv.GPT"Q=AK%HUo`
Tagged: no
UserProperties: no
Suspects: no
Form: none
JavaScript: no
Pages: 1
Encrypted: no
Page size: 841 x 595 pts (A4)
Page rot: 0
File size: 58174 bytes
Optimized: no
PDF version: 1.7
```
Firefox (88.0.1+build1-0ubuntu0.21.04.2) opens the PDF just fine, after asking for a password. `https://gitlab.freedesktop.org/poppler/poppler/-/issues/1082PDF form fields using unknown fonts are ignored2021-07-10T05:48:07ZZachary TravisPDF form fields using unknown fonts are ignoredIf a PDF form field value uses a font that is not in the resources dictionary, a warning is logged and the field value is ignored/not displayed.
It's unclear whether this behavior is strictly valid based on the PDF spec (since typically ...If a PDF form field value uses a font that is not in the resources dictionary, a warning is logged and the field value is ignored/not displayed.
It's unclear whether this behavior is strictly valid based on the PDF spec (since typically font references, even to base fonts, require a corresponding font dictionary) but Acrobat seems to display the content anyway.
I'm attaching an example PDF I made from some public form.
I'm also attaching a patch with a suggested fix using the `createAnnotDrawFont` functionality already present in `Annot.cc` for making standard fonts. I am not very experienced with this codebase so I'm sure I may be making some mistakes! Happy to follow up/fix them in a merge request, although I'm not sure I have permission to open one right now.
[SampleForm-1.pdf](/uploads/8e8a3c03623ba3f41bbcf27ccaec2a80/SampleForm-1.pdf)
[poppler-font.patch](/uploads/a6a25a52a3c2e97253905636082cd789/poppler-font.patch)https://gitlab.freedesktop.org/poppler/poppler/-/issues/1080Make boost mandatory or opt-out when building splash2021-05-12T22:49:38ZHubert FiguiereMake boost mandatory or opt-out when building splashThe Splash backend uses `boost::small_vector` for **serious** performance gain. But the dependency is optional opt-in which make most of the packager ignore it, including on major distro.
In a major use case, I dug into why some of the ...The Splash backend uses `boost::small_vector` for **serious** performance gain. But the dependency is optional opt-in which make most of the packager ignore it, including on major distro.
In a major use case, I dug into why some of the PDF upload workflow in the Internet Archive, and the answer being to simply recompile Poppler with boost didn't really fly as their server use Ubuntu and deploying something like that would be little benefit. (this was in 2020, and things could have changed since)
(I'm just a user, but I investigated the issue to see if their was something I could fix in poppler)
If you made this mandatory, or opt-out, when building splash, then the chance of distribution building poppler correctly would increase.
Edit: added that's when building splash.https://gitlab.freedesktop.org/poppler/poppler/-/issues/1079pdf attachment different character encoding/decoding2022-05-24T21:21:55ZYug Yorsenpdf attachment different character encoding/decodingAttachment names are encoded and decoded in some incompatible way. While pdfdetach has a commandline option for specifying the encoding, pdfattach has not. Is there a "right" and a "wrong" encoding for pdf attachment names? Or is this un...Attachment names are encoded and decoded in some incompatible way. While pdfdetach has a commandline option for specifying the encoding, pdfattach has not. Is there a "right" and a "wrong" encoding for pdf attachment names? Or is this unspecified in PDF?
$ touch Fără.txt
$ pdfattach /tmp/any.pdf Fără.txt out.pdf
$ pdfdetach -list out.pdf
1 embedded files
1: Fãrã.txthttps://gitlab.freedesktop.org/poppler/poppler/-/issues/1078Highlight annotations created with no style become black squares2021-05-11T20:29:56ZFrancisco Blas Izquierdo Riera (klondike)Highlight annotations created with no style become black squaresWhen creating highlight annotations using poppler and not providing a style the result is rendered as a black square on some readers (like okular) instead of something more readable.
This issue is directly related to poppler-qt5 and I s...When creating highlight annotations using poppler and not providing a style the result is rendered as a black square on some readers (like okular) instead of something more readable.
This issue is directly related to poppler-qt5 and I suspect also poppler. I'm providing the sample code using python-poppler-qt5 as that was what I was using when I found this bug.
```python
from popplerqt5 import Poppler
import PyQt5
import PyQt5.QtXml
import PyQt5.QtGui
d = Poppler.Document.load('example.pdf')
mdata= [{"page": 62, "text": "example", "pboxes": [ {"h": 16.820983886719, "x": 298.89953613281, "y": 520.43939208984, "w": 29.266296386719 }]}]
for v in mdata['bookmarks'].values():
p=d.page(v['page']-1)
ps = p.pageSizeF()
xfact = ps.width()
yfact = ps.height()
ymin = xmin = 1.
xmax = ymax = 0.
a = Poppler.HighlightAnnotation()
p.addAnnotation(a)
a.setAuthor('Anonymous')
a.setContents(v['text']))
quads = []
for pb in v['pboxes'].values():
x1 = pb['x']/xfact
y1 = pb['y']/yfact
x2 = x1+pb['w']/xfact
y2 = y1+pb['h']/yfact
xmin = min(xmin, x1)
ymin = min(ymin, y1)
xmax = max(xmax, x2)
ymax = max(ymax, y2)
quad = Poppler.HighlightAnnotation.Quad()
quad.points = [PyQt5.QtCore.QPointF(x1,y2), PyQt5.QtCore.QPointF(x2,y2), PyQt5.QtCore.QPointF(x2,y1), PyQt5.QtCore.QPointF(x1,y1)]
quads.append(quad)
a.setBoundary(PyQt5.QtCore.QRectF(xmin,ymin,xmax-xmin,ymax-ymin))
a.setHighlightQuads(quads)
c=d.pdfConverter()
c.setPDFOptions(c.PDFOptions(0|c.WithChanges))
c.setOutputFileName("test.pdf")
c.convert()
```
For now I am addressing this by creating my own style for the annotations, but since the ones I see generated by koreader do not have any style I suspect there is some kind of fool play going on here. In trying to address this I have found some bugs in the annotation handling code but none seemed to fix the issue:
* Once the objects are set many are not removed or reset to a null object afterwards [Annot.patch](/uploads/71ce25cf1c8fd5c25eaab537fd499510/Annot.patch)
* When loading the dasharray from the PDF the invalid 0 count causes an overwrite of the default in poppler-qt5 [poppler-annotation.patch](/uploads/5cb089c23910da92cf7ec16f2b94fd96/poppler-annotation.patch)
* When saving styles, the default dasharray does not override the current style [poppler-annotation2.patch](/uploads/f3c0da92ea43987325ceb19d003cdb10/poppler-annotation2.patch)
I lack enough knowledge about the PDF format or poppler to see what I may be missing here to explain this missbehaviour. With these patches the annotations are still displayed incorrectly and I'm out of ideas where to try (as I don't know how to extract the dictionaries of the annotations that are correctly displayed to compare them with the one poppler is generating).https://gitlab.freedesktop.org/poppler/poppler/-/issues/1077pdftoppm renders borders around all text items2023-03-01T21:26:02ZKevin Leopdftoppm renders borders around all text itemsRunning pdftoppm against the attached pdf causes black borders to show up around all the text elements.
ex. pdftoppm -jpeg "pdttoppm - text border issue.pdf" "pdttoppm - text border issue"
[pdttoppm_-_text_border_issue-1](/uploads/ebfc1...Running pdftoppm against the attached pdf causes black borders to show up around all the text elements.
ex. pdftoppm -jpeg "pdttoppm - text border issue.pdf" "pdttoppm - text border issue"
[pdttoppm_-_text_border_issue-1](/uploads/ebfc1199fcd2481e3ea97a035add1595/pdttoppm_-_text_border_issue-1.jpg)
[pdttoppm_-_text_border_issue.pdf](/uploads/5215ed4d0c48f6c3303ad257341ff119/pdttoppm_-_text_border_issue.pdf)https://gitlab.freedesktop.org/poppler/poppler/-/issues/1075Outline/table of contents modification2021-05-04T14:20:14ZR MOutline/table of contents modificationAs suggested, a diff of some code I wrote to insert an Outline into a PDF w/ or without an existing Outline. Only wholesale replacement of table of contents is supported although it seems like more granular access would be beneficial to...As suggested, a diff of some code I wrote to insert an Outline into a PDF w/ or without an existing Outline. Only wholesale replacement of table of contents is supported although it seems like more granular access would be beneficial to graphical programs.
Changes to Outline.h/cc, and Catalog.h/cc
A small program to demonstrate the functionality. [pdftoc.cc](/uploads/795d448bb720f43b582e144b51b3470e/pdftoc.cc)
[poppler_outline.patch](/uploads/4c53ef71f10a84bb1829905ec5d4068e/poppler_outline.patch)https://gitlab.freedesktop.org/poppler/poppler/-/issues/1073Adding new signatures with pdfsig2021-09-20T17:39:57ZjdanitxuAdding new signatures with pdfsigRelated to [issue #1072](https://gitlab.freedesktop.org/poppler/poppler/-/issues/1072) I suggest to add this functionality to **pdfsig** command.
It's possible to do it calling from shell to python, but AFAIK it would be the first bash ...Related to [issue #1072](https://gitlab.freedesktop.org/poppler/poppler/-/issues/1072) I suggest to add this functionality to **pdfsig** command.
It's possible to do it calling from shell to python, but AFAIK it would be the first bash command to be able to sign a PDF and attach the signature inside it.https://gitlab.freedesktop.org/poppler/poppler/-/issues/1072How to sign using pdfsig and improvements to man2021-05-02T19:56:38ZjdanitxuHow to sign using pdfsig and improvements to manI'm in **poppler-utils version 21.02.0-1** checking the new sign functionality.
Looking at `man pdfsig` it says I must use "-sign number" to sign a PDF. My related issues:
1. The man documentation is not clear when it says "Sign the do...I'm in **poppler-utils version 21.02.0-1** checking the new sign functionality.
Looking at `man pdfsig` it says I must use "-sign number" to sign a PDF. My related issues:
1. The man documentation is not clear when it says "Sign the document in the signature field with the given number". Looking at pdfsig.cc in line 191 it seems it must be a yet contained signature inside the PDF. Then: should it be a signed PDF? what is the meaning of re-sign?
2. I suggest to write an example of how to use `-sign` option (by the way, for now I'm not able to use this functionality ;) )
3. I suggest to insert a newline in man documentation so `-sign number` appears in the next line instead of -dump... -sign
4. As signature functionality is a very important one, I suggest to change DESCRIPTION giving more weight to that instead of ending with "Moreover, with option -sign it can sign a PDF document". A proposal for DESCRIPTION:
**pdfsig** signs PDF documents and verifies digital signatures inside a PDF document ...
Thanks a lot in advance!