
This guide will assume your application is named myApp. Navigate into your /Samples directory and make a new directory called myApp (if it does not exist already). It will create a document with one blank page and save it as a linearized PDF in its running directory.
Download php for mac how to#
This section will show you how to use our SDK to create a simple PDFTron "Hello World!" application. While still in the same Build directory, execute these lines: cp. Next we need to fix the rpaths issue on Mac. If all goes well, you should get a message which reads: Build files have been written to ~/PDFNetWrappers/Build Sudo make install # Copy the PHP wrappers to where the samples can find them. Įxecute make followed by sudo make install. Mkdir Build # Create a directory to create the Makefiles in. This guide will assume the build directory is called Build. Make a build directory inside /PDFNetWrappers and navigate to it. Your /PDFNetC folder should be laid out like this like this: PDFNetC

You can delete PDFNetCMac.zip to free up space. Now to move the headers and libraries in place, make sure you are in the PDFNetWrappers/PDFNetC directory and execute mv PDFNetCMac/Headers/. This can be done with these two commands: curl -L -O http: / /.zip

Ensure you obtain the right architecture for your PHP interpreter. Navigate to PDFNetWrappers/PDFNetC and move the downloaded for macOS(#prerequisites) into that directory and unzip it. Make a directory to store the wrappers and navigate into that directory.Ĭlone the uncompiled PDFNet wrappers by executing git clone https: / /github.
