more
This commit is contained in:
parent
4046437b85
commit
f83d8abb5d
BIN
cpdfmanual.pdf
BIN
cpdfmanual.pdf
Binary file not shown.
|
@ -1,6 +1,6 @@
|
|||
\documentclass{book}
|
||||
% Edit here to produce cpdfmanual.pdf, cpdflibmanual.pdf, pycpdfmanual.pdf etc.
|
||||
\usepackage{comment}\excludecomment{cpdflib}\excludecomment{pycpdflib}\includecomment{dotnetcpdflib}
|
||||
\usepackage{comment}\excludecomment{cpdflib}\excludecomment{pycpdflib}\excludecomment{dotnetcpdflib}
|
||||
\usepackage{palatino}
|
||||
\usepackage{listings}
|
||||
\usepackage{microtype}
|
||||
|
@ -410,26 +410,23 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using CoherentGraphics;
|
||||
|
||||
public static void Main(string[] args)
|
||||
// Initialise cpdf
|
||||
Cpdf.startup();
|
||||
|
||||
// We will take the input hello.pdf and repeat it three times
|
||||
using (Cpdf.Pdf mergepdf = Cpdf.fromFile("hello.pdf", ""))
|
||||
{
|
||||
// Initialise cpdf
|
||||
Cpdf.startup();
|
||||
// The list of PDFs to merge
|
||||
List<Cpdf.Pdf> pdfs = new List<Cpdf.Pdf> {mergepdf, mergepdf, mergepdf};
|
||||
|
||||
// We will take the input hello.pdf and repeat it three times
|
||||
using (Cpdf.Pdf mergepdf = Cpdf.fromFile("hello.pdf", ""))
|
||||
{
|
||||
// The list of PDFs to merge
|
||||
List<Cpdf.Pdf> pdfs = new List<Cpdf.Pdf> {mergepdf, mergepdf, mergepdf};
|
||||
// Merge them
|
||||
Cpdf.Pdf merged = Cpdf.mergeSimple(pdfs);
|
||||
|
||||
// Merge them
|
||||
Cpdf.Pdf merged = Cpdf.mergeSimple(pdfs);
|
||||
|
||||
// Write output
|
||||
Cpdf.toFile(merged, "merged.pdf", false, false);
|
||||
|
||||
// Dispose of merged PDF
|
||||
merged.Dispose();
|
||||
}
|
||||
// Write output
|
||||
Cpdf.toFile(merged, "merged.pdf", false, false);
|
||||
|
||||
// Dispose of merged PDF
|
||||
merged.Dispose();
|
||||
}
|
||||
\end{verbatim}
|
||||
\end{small}
|
||||
|
@ -448,26 +445,24 @@ imports System
|
|||
imports System.Collections.Generic
|
||||
imports CoherentGraphics
|
||||
|
||||
Sub Main(args as String())
|
||||
' Initialise cpdf
|
||||
Cpdf.startup()
|
||||
' Initialise cpdf
|
||||
Cpdf.startup()
|
||||
|
||||
' We will take the input hello.pdf and repeat it three times
|
||||
Using mergepdf As Cpdf.Pdf = Cpdf.fromFile("hello.pdf", "")
|
||||
' The list of PDFs to merge
|
||||
Dim pdfs As List(Of Cpdf.Pdf) =
|
||||
new List(Of Cpdf.Pdf)({mergepdf, mergepdf, mergepdf})
|
||||
' We will take the input hello.pdf and repeat it three times
|
||||
Using mergepdf As Cpdf.Pdf = Cpdf.fromFile("hello.pdf", "")
|
||||
' The list of PDFs to merge
|
||||
Dim pdfs As List(Of Cpdf.Pdf) =
|
||||
new List(Of Cpdf.Pdf)({mergepdf, mergepdf, mergepdf})
|
||||
|
||||
' Merge them
|
||||
Dim merged As Cpdf.Pdf = Cpdf.mergeSimple(pdfs)
|
||||
' Merge them
|
||||
Dim merged As Cpdf.Pdf = Cpdf.mergeSimple(pdfs)
|
||||
|
||||
' Write output
|
||||
Cpdf.toFile(merged, "merged.pdf", false, false)
|
||||
' Write output
|
||||
Cpdf.toFile(merged, "merged.pdf", false, false)
|
||||
|
||||
' Dispose of merged PDF
|
||||
merged.Dispose()
|
||||
End Using
|
||||
End Sub
|
||||
' Dispose of merged PDF
|
||||
merged.Dispose()
|
||||
End Using
|
||||
\end{verbatim}
|
||||
\end{small}
|
||||
|
||||
|
|
Loading…
Reference in New Issue