<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:16px; margin-top:0px; margin-bottom:0px">
Hi,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:16px; margin-top:0px; margin-bottom:0px">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:16px; margin-top:0px; margin-bottom:0px">
I'd like to go a little microservices on this. I was thinking that we need a REST service that takes a document and returns its archive format equivalent. This can even autodetect the mimetype using e.g JHOVE [1]. There are other tools as&nbsp;well.</div>
<div id="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:16px">
<font face="Calibri,Arial,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols"><br>
</font></div>
<div id="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:16px">
<font face="Calibri,Arial,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols">I'd like to support ODF natively via LibreOffice, where the service has LibreOffice running and converts all
 documents to PDF/A.</font></div>
<div id="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:16px">
<font face="Calibri,Arial,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols"><br>
</font></div>
<div id="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:16px">
<font face="Calibri,Arial,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols">PDF to PDF/A could be done as Petter suggests.</font></div>
<div id="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:16px">
<font face="Calibri,Arial,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols"><br>
</font></div>
<div id="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:16px">
<font face="Calibri,Arial,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols">I would have a microservices style approach and offload it to another REST service as&nbsp;sometimes users will upload
 big files. The largest PDF file I saw in a Noark system is about 250 MB and when I converted 800 000 documents to archive format a few years ago, we saw many random crashes. So I really think it's worthwhile offloading it away from the core.</font></div>
<div id="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:16px">
<font face="Calibri,Arial,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols"><br>
</font></div>
<div id="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:16px">
<font face="Calibri,Arial,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols">The documents should be automatically converted to archive format when the case file is closed.&nbsp;</font></div>
<div id="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:16px">
<font face="Calibri,Arial,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols"><br>
</font></div>
<div id="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:16px">
<font face="Calibri,Arial,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols">For teaching purposes, I will not support MS Office. So many of my students are unaware of LibreOffice so I
 think it's worthwhile exposing them only to LibreOffice via nikita. However if we were to support MS Office, we would need a queue system that can talk to a PixEdit server to do the conversion. PixEdit works really nicely and is able to work on a per-core
 basis so scales nicely.</font></div>
<div id="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:16px">
<font face="Calibri,Arial,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols"><br>
</font></div>
<div id="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:16px">
<font face="Calibri,Arial,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols">Creating a REST service to convert the documents would be a nice project for someone to attempt.</font></div>
<div id="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:16px">
<font face="Calibri,Arial,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols"><br>
</font></div>
<span style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:16px">[1]</span><a href="https://en.wikipedia.org/wiki/JHOVE" target="_blank" rel="noopener noreferrer" id="LPlnk192140" style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:16px"><span id="LPlnk192140">https://en.wikipedia.org/wiki/JHOVE</span></a><br>
<p></p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> nikita-noark-bounces@nuug.no &lt;nikita-noark-bounces@nuug.no&gt; on behalf of Petter Reinholdtsen &lt;pere@hungry.com&gt;<br>
<b>Sent:</b> Thursday, May 18, 2017 7:11:12 PM<br>
<b>To:</b> nikita-noark@nuug.no<br>
<b>Subject:</b> Recipes for converting PDF to PDF/A</font>
<div>&nbsp;</div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText"><br>
One task we need to implement in the core, is converting PDF files to<br>
PDF/A if they are not already in PDF/A form.&nbsp; I had a quick look, and<br>
found this recipe on<br>
&lt;URL: <a href="https://unix.stackexchange.com/questions/79516/converting-pdf-to-pdf-a">
https://unix.stackexchange.com/questions/79516/converting-pdf-to-pdf-a</a> &gt;:<br>
<br>
&nbsp; gs -sDEVICE=pdfwrite -q -dNOPAUSE -dBATCH -dNOSAFER&nbsp;&nbsp;&nbsp;&nbsp; \<br>
&nbsp;&nbsp;&nbsp; -dPDFA -dUseCIEColor -sProcessColorModel=DeviceCMYK&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \<br>
&nbsp;&nbsp;&nbsp; -sOutputFile=Out_PDFA.pdf PDFA_def.ps pdfmarks IN_PDF.pdf<br>
<br>
and<br>
<br>
&nbsp; java FixPrintFlag Out_PDFA.pdf New_verifiablePDFA.pdf<br>
<br>
Based on are recipe available from<br>
&lt;URL: <a href="http://thisthatisnot.blogspot.no/2010/04/free-way-to-convert-existing-pdf-to.html">
http://thisthatisnot.blogspot.no/2010/04/free-way-to-convert-existing-pdf-to.html</a> &gt;.<br>
<br>
I wonder, should this be a task done by a API client, or a task done<br>
internally in the server?&nbsp; What do the rest of you think?&nbsp; I suspect<br>
doing it via the API will either loose some metadata or must be done<br>
using operations that allow us to set metadata that normally should not<br>
be modifyable via the API.<br>
<br>
-- <br>
Happy hacking<br>
Petter Reinholdtsen<br>
_______________________________________________<br>
nikita-noark mailing list<br>
nikita-noark@nuug.no<br>
<a href="https://lists.nuug.no/mailman/listinfo/nikita-noark">https://lists.nuug.no/mailman/listinfo/nikita-noark</a><br>
</div>
</span></font>
</body>
</html>