littlespot.blogg.se

Pdf toolkit free
Pdf toolkit free







pdf toolkit free

Load and decrypt a file using the owner password.

#Pdf toolkit free pdf

Pdf.pdfdoc pdf = Cpdflib.FromFileDecrypt("in.pdf", "fred") 128bit(false),Įncrypt pdf using 128bit PDF encryption using the user password fred and the owner password joe, setting some permissions and writing the encrypted file to out.pdf Rotate the contents of the pages in in.pdf by ninety degrees and write to out.pdf.Ĭpdflib.SetCropping(pdf, Cpdflib.All(pdf), 0.0, 0.0, 600.0, 400.0) Ĭrop the pages in pdf to a 600 pts by 400 pts rectangle. Shift the contents of the page by 26 pts in the x direction, and 18 millimetres in the y direction.Ĭpdflib.RotateContents(pdf, Cpdflib.All(pdf), 90.0) Scale the pages in pdf to fit the US Letter page size.Ĭpdflib.ShiftPageContents(pdf, Cpdflib.All(pdf), 26.0, Cpdflib.PtOfMm(18.0)) Scale both the dimensions and contents of pdf by a factor of two in x and y directions.Ĭpdflib.ScaleToFit(pdf, Cpdflib.All(pdf), letterportrait) PagesĬpdflib.ScalePages(pdf, Cpdflib.All(pdf), 2.0, 2.0)

pdf toolkit free

Pdf.pdfdoc pdfs = Cpdflib.SplitOnBookmarks(pdf, 0) Merge pdf1 and pdf2 into one document, pdf. Pdf.pdfdoc pdf = Cpdflib.MergeSimple(pdfs) Select the even pages (2, 4, 6.) from a pre-existing PDF. Pdfdoc.pdf evenpdf = Cpdflib.SelectPages(pdf, Cpdflib.Even(Cpdflib.All(pdf))) Read in.pdf, select pages 1, 2, 3 and 6, and write those pages to out.pdf. Pdf.pdfdoc pages = Cpdflib.SelectPages(pdf, range) Ĭpdflib.ToFile(pdf, "out.pdf", false, true) Pdf.pdfdoc pdf = Cpdflib.FromFile("in.pdf") To see the same examples using the Command Line Tools, click here.ġ. This is just a small selection-for more examples, see the Full PDF Manual. Here are some examples of the PDF command line tools in action, using C# syntax.









Pdf toolkit free