<div dir="ltr"><div dir="ltr">It is a <span class="gmail-il">shame</span>, but it is good to know! I will try to make the modifications in poppler for a future usage :(<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El dom., 13 oct. 2019 a las 18:30, Albert Astals Cid (<<a href="mailto:aacid@kde.org">aacid@kde.org</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">El diumenge, 13 d’octubre de 2019, a les 8:56:41 CEST, Andy Sardina va escriure:<br>
> Hi,<br>
> <br>
>  I am working on a feature that will allow a user to define the document's<br>
> outline (for PDF files). To be able to do this, I need to modify the<br>
> poppler to be able to write into the PDF file.<br>
<br>
I'm going to give you the same answer i give to the people that suggest adding PDF page removal/adition/sorting to Okular.<br>
<br>
I don't think Okular is the proper place for this and a "Simple PDF editor" application would be much easier, both in code (since you don't need to create public API for all that since Okular is not a PDF tool) and in user interface (since editing usually has different requirements to viewing).<br>
<br>
If you have questions about poppler i suggest you make them in the poppler mailing list :)<br>
<br>
Cheers,<br>
  Albert<br>
<br>
> <br>
>   I am doing this, because some times, I generate PDF from images, or I get<br>
> PDF that doesn't have the outline (or TOC) and I would like to be able to<br>
> create one from Okular. For example, the Foxit Reader has this<br>
> functionality. Take a look at this short video to see what I mean:<br>
> <br>
> <br>
>  Swedish Fairy Tales.mp4<br>
> <<a href="https://drive.google.com/file/d/1ADdebIeWX5zdaKe7IMKIM6r-94Sryv-0/view?usp=drive_web" rel="noreferrer" target="_blank">https://drive.google.com/file/d/1ADdebIeWX5zdaKe7IMKIM6r-94Sryv-0/view?usp=drive_web</a>><br>
> <br>
> <br>
> I have created a short document with some ideas of how I am thinking to<br>
> implement it, but I have been struggling to find a good design. I would<br>
> like you to give some impressions and tell me if is that the correct path.<br>
> <br>
> Here the document:<br>
> <br>
> <br>
>  Poppler modifications.pdf<br>
> <<a href="https://drive.google.com/file/d/1RLRTrTzDtSk0L-bw4yvb0ZT58DN2qkcl/view?usp=drive_web" rel="noreferrer" target="_blank">https://drive.google.com/file/d/1RLRTrTzDtSk0L-bw4yvb0ZT58DN2qkcl/view?usp=drive_web</a>><br>
> <br>
> Have a nice week!!<br>
> <br>
<br>
<br>
<br>
<br>
</blockquote></div></div>