Encrypt PDF using MuPDF - pdf

Has anyone done this or can point me to an example?
It is easy to implement document decryption using MuPDF: I am trying to do the other way round, but cannot find a suitable entry point.

With the new versions of MuPDF this is now possible as a standard feature.
Implemented in Github repo PyMuPDF (Python bindings for MuPDF) version 1.16.0 and up.

Related

SCIP-SDP through Matlab

I am I trying to install SCIP-SDP. As I am not a Linux user, I have found the instructions for installing SCIP very confusing, and have not managed to install it.
I have then chosen to use SCIP through Matlab by using Opti. I have managed to solve some LPs with SCIP through Opti. Is it possible to use SCIP-SDP through Opti? If so, could you please give me some guidelines on how to do it?
There exists an interface from the optitoolbox to SCIP-SDP, but this is quite old and will only work with SCIP-SDP 1.0, but since I haven't used the toolbox myself, I can't give you any more details. There is also the possibility to use SCIP-SDP via the neos-server, but this is also only SCIP-SDP 2.0 (and you should give a settings file, since the default settings are sometimes a little bit strange). For the most current version, you will unfortunately need to install it through the console, and this is really only tested on Linux. Perhaps you could try to use a virtual machine? If there are any specific problems with installing SCIP or SCIP-SDP (preferably on Linux), then feel free to ask, either here or via mail.

Official Tensorflow docs available in pdf form? (running Windows)

I have not been able to find pdf format docs for Tensorflow (API or tutorials).
I'm referring to the official docs, not asking for book recommendations.
Specifically pdf format, for offline local reference and study.
One problem is that I'm running Windows, so the available toolset for creating
them dynamically is limited (or different from the normally recommended tools).
But surely the pdfs must already exist online somewhere, right?
This has been answered here. How can you download Tensorflow API Documentation
Essentially you can use http://devdocs.io/, which can provide you with offline access to the documentation of many libraries and languages, including Tensorflow.
Or clone the repo and type this to generate a the documentation locally. It's described in more detail in the TensorFlow documentation.
$ cd tensorflow/tools/docs
$ ./gen_docs.sh # add -a if you want C++ documentation
If you can't do this approach due to Windows, then versus setting up a bunch of infrastructure, it maybe easier to use the gitbook for TF then generate a PDF with toolchain as described here

Which open source erlang projects are using google protobuf?

I am working with erlang project which uses google protobuf via https://github.com/basho/erlang_protobuffs
After some time I've got not such good impresion about it (I've found usage of this technology in erlang very clumsy and inconvenient). But of course, I known that this is because I can not cook it properly.
Which open source erlang project are using erlang_protobuffs? I am interested in best (or at least sufficient) practices of its usage.
I assume that you mean http://github.com/basho/erlang_protobuffs library.
From major opensource projects I know only basho's riak using this library, although
Github code search gives a lot of different projects.
Note, that this library is not only one, take a look at this post

ImageMagick standalone to package in application

I'm building an AIR application using Flex where I use the NativeProcess API to resize images through ImageMagick using the convert program. Does anyone know how I can package "convert" with my application without needing to install ImageMagick on the user's system?
I'm looking for a solution on Mac and PC. (especially on Mac).
I don't have that much experience with building/installing something like ImageMagick so I'm wondering if it can be done in one file (convert only) so that I can directly call it in my app without the user needing to install anything prior on his/her system.
You have to package your AIR application as native installer or with a captive runtime. Both methods allow you to add additional files to your package. Adding the convert executable won't be enough, though, because it depends on a number of ImageMagick shared libraries, loadable modules for different image formats, and possibly other files. To get started, you can add the whole ImageMagick directory to your package. You can find the path to the packaged convert executable using File.applicationDirectory.
I'm not an expert on Flex, but there is a documented method for packaging native extensions at Adobe. Won't this work?
I know this question is very old, but I have the same issue so I stumbled on it !
I actually found a Mac only workaround solution, that is to use sips instead of ImageMagick. Advantage being that sips is included in all Mac's (Well as far as I know, from 10.4 to 10.8).
In my case, all functionalities that I used ImageMagick for are also available in sips, so maybe it could fit you too !
I found someone who created static libs of convert and identify programs for Mac. For Windows these are available already on the ImageMagick website but for Mac you need to build these from source. Important on Mac is to not call Convert directly but use a bash script which sets the export paths first and then runs convert in order for it to work!

PDF processing library in Erlang

I am looking for a PDF processing library written in Erlang, but I was unable to find any yet. ErlGuten, the only library I found could only generate PDFs not process them.
Anyone aware of such library?
I think your best option is to bridge with a 3rd party PDF library. Such as Adobe's own PDF Library SDK or another lesser known vendor.
See; http://www.adobe.com/devnet/pdf/library/
There is an open source library based on webkit: WKHTMLTOPDF
It generates PDF from an HTML template.
And here is small tutorial of how we are using it whith an Erlang backend.
Maybe Jinterface is the best way.Try to process PDFs with Java.