download pdf file in asp.net c# : Read pdf metadata software control dll winforms azure web page web forms cpdfmanual5-part1396

11.4. UPON OPENING A DOCUMENT
43
cpdf -set-page-layout TwoColumnRight in.pdf -o out.pdf
11.4.2 Page Mode
The page mode in a PDF file defines how a viewer should display the document when first
opened. Thepossible(case-sensitive) values are:
UseNone
Neither document outline nor thumbnailimages visible
UseOutlines
Document outline(bookmarks) visible
UseThumbs
Thumbnail images visible
FullScreen
Full-screen mode (no menu bar, window controls, orany-
thing but the document visible)
UseOC
(PDF1.5 andabove) Optionalcontentgroup panel visible
UseAttachments
(PDF1.5 and above) Attachments panel visible
For instance:
cpdf -set-page-mode FullScreen in.pdf -o out.pdf
11.4.3 Display Options
-hide-toolbar
Hide theviewer’s toolbar
-hide-menubar
Document outline (bookmarks) visible
-hide-window-ui
Hide theviewer’s scrollbars
-fit-window
Resizethe document’s windows tofit size of first page
-center-window
Position the document window in the center of the screen
-display-doc-title
Display the document titleinsteadof thefile name in the
title bar
For instance:
cpdf -hide-toolbar true in.pdf -o out.pdf
The page a PDF file opens at can beset using -open-at-page:
cpdf -open-at-page 15 in.pdf -o out.pdf
To havethat pagescaled to fitthewindow in the viewer, use-open-at-page-fit instead:
Read pdf metadata - add, remove, update PDF metadata in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Allow C# Developers to Read, Add, Edit, Update and Delete PDF Metadata
edit pdf metadata online; get pdf metadata
Read pdf metadata - VB.NET PDF metadata library: add, remove, update PDF metadata in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Enable VB.NET Users to Read, Write, Edit, Delete and Update PDF Document Metadata
add metadata to pdf file; view pdf metadata
44
CHAPTER 11. DOCUMENT INFORMATION ANDMETADATA
cpdf -open-at-page-fit 15 in.pdf -o out.pdf
11.5 Metadata
PDFfiles can containa pieceofarbitrary metadata, oftenin XMP format. This istypically stored
inan uncompressed stream,so thatother applications can read it withouthaving to decodethe
whole PDF. Toset the metadata:
cpdf -set-metadata data.xml in.pdf -o out.pdf
To removeanymetadata:
cpdf -remove-metadata in.pdf -o out.pdf
To printthe current metadata to standard output:
cpdf -print-metadata in.pdf
11.6 Page Labels
It is possible to add page labels to a document. These are not the printed on the page, but
may be displayed alongside thumbnails or in print dialogue boxes by PDF readers. We use
-add-page-labelstodothis,bydefaultwithdecimalarabicnumbers(1,2,3...).Wecanadd
-label-style to choose what type of labels toadd from these kinds:
DecimalArabic
1,2,3,4,5...
LowercaseRoman
i,ii,iii,iv,v...
UppercaseRoman
I,II,III,IV,V...
LowercaseLetters
a,b,c,...,z,aa,bb...
UppercaseLetters
A,B,C,...,Z,AA,BB...
NoLabelPrefixOnly
No number, but aprefix will be usedif defined.
We can use-label-prefix to add a textual prefix toeach label. Considera file with twenty
pages and no currentpage labels (a PDF readerwill assume 1,2,3...if thereare none). We will
add the following pagelabels:
i, ii,iii, iv,1, 2, 3, 4,5, 6, 7,8, 9, 10, A-0, A-1, A-2, A-3, A-4, A-5
Here are the commands,in order:
VB.NET PDF Image Extract Library: Select, copy, paste PDF images
Get image information, such as its location, zonal information, metadata, and so on. Extract image from PDF free in .NET framework application with trial SDK
read pdf metadata java; remove metadata from pdf acrobat
How to C#: Basic SDK Concept of XDoc.PDF for .NET
XDoc.PDF for .NET supports editing PDF document metadata, like Title, Subject, Author, Creator, Producer, Keywords, Created Date, and Last Modified Date.
pdf metadata; remove metadata from pdf file
11.6. PAGE LABELS
45
cpdf -add-page-labels in.pdf 1-4 -label-style LowercaseRoman
-o out.pdf
cpdf -add-page-labels out.pdf 5-14 -o out.pdf
cpdf -add-page-labels out.pdf 15-20 -label-prefix "A-"
-label-startval 0 -o out.pdf
By default the labels begin at page number 1 for each range. To override this, we can use
-label-startval(weused 0inthefinalcommand),wherewewantthenumberstobeginat
zero rather than one.
Page labels may beremoved altogether by using -remove-page-labels command.
VB.NET PDF: Basic SDK Concept of XDoc.PDF
XDoc.PDF for .NET supports editing PDF document metadata, like Title, Subject, Author, Creator, Producer, Keywords, Created Date, and Last Modified Date.
extract pdf metadata; pdf xmp metadata editor
C# PDF Image Extract Library: Select, copy, paste PDF images in C#
Scan image to PDF, tiff and various image formats. Get image information, such as its location, zonal information, metadata, and so on.
metadata in pdf documents; c# read pdf metadata
46
CHAPTER 11. DOCUMENT INFORMATION ANDMETADATA
C# PDF - Read Barcode on PDF in C#.NET
Bookmark: Edit Bookmark. Metadata: Edit, Delete Metadata. Watermark: Add Watermark to PDF. Form Process. Data: Read, Extract Field Data. Data: Auto Fill-in Field
acrobat pdf additional metadata; batch pdf metadata editor
C# TIFF: TIFF Metadata Editor, How to Write & Read TIFF Metadata
C#.NET. Allow Users to Read and Edit Metadata Stored in Tiff Image in C#.NET Application. C# Overview - View and Edit TIFF Metadata.
adding metadata to pdf files; remove metadata from pdf online
Chapter 12
File Attachments
cpdf -attach-file <filename> [-to-page <page number>] in.pdf -o out.pdf
cpdf -list-attached-files in.pdf
cpdf -remove-files in.pdf -o out.pdf
PDF supports addingattachments (files of anykind,including other PDFs) to an existing file.
Thecpdf tool supports adding and removingdocument-level attachments — that is, ones which
are associated with the document as a whole rather than with an individual page, and also
page-level attachments, associated with a particular page.
12.1 Adding Attachments
Toadd an attachment, use the -attach-file option. For instance,
cpdf -attach-file sheet.xls in.pdf -o out.pdf
attaches the Excel spreadsheetsheet.xls to theinput file. Ifthe filealready has attachments,
the new file is added to their number. You can specify multiple files to be attachedby using
-attach-file multiple times. They will be attached in the given order.
The-to-page option can be used to specify that the files will be attached to the given page,
ratherthan atthe document level. The -to-page option may be specified at most once.
12.2 Listing Attachments
To list all document-and page-level attachments, use the-list-attached-files operation.
The page numberand filename ofeach attachment is given,page 0 representing a document-
level attachment.
47
VB.NET PDF Library SDK to view, edit, convert, process PDF file
PDF Metadata Edit. Offer professional PDF document metadata editing APIs, using which VB.NET developers can redact, delete, view and save PDF metadata.
bulk edit pdf metadata; pdf metadata extract
VB.NET PDF Text Extract Library: extract text content from PDF
PDF ›› VB.NET PDF: Extract PDF Text. VB.NET PDF - Extract Text from PDF Using VB. How to Extract Text from PDF with VB.NET Sample Codes in .NET Application.
change pdf metadata creation date; change pdf metadata
48
CHAPTER 12. FILE ATTACHMENTS
$cpdf -list-attached-files 14psfonts.pdf
0 utility.ml
0 utility.mli
4 notes.xls
12.3 Removing Attachments
To removeall document-level and page-level attachments from a file, use the-remove-files
operation:
cpdf -remove-files in.pdf -o out.pdf
Chapter 13
Working with Images
cpdf -image-resolution <minimum resolution> in.pdf [<range>]
13.1 Detecting Low-resolution Images
To list all images in thegiven range ofpages which fall belowa given resolution (in dots-per-
inch), use the -image-resolution function:
cpdf -image-resolution 300 in.pdf [<range>]
2, /Im5, 531, 684, 149.935297, 150.138267
2, /Im6, 184, 164, 149.999988, 150.458710
2, /Im7, 171, 156, 149.999996, 150.579145
2, /Im9, 65, 91, 149.999986, 151.071856
2, /Im10, 94, 60, 149.999990, 152.284285
2, /Im15, 184, 139, 149.960011, 150.672060
4, /Im29, 53, 48, 149.970749, 151.616446
Theformat is page number,image name,x pixels, y pixels, x resolution, y resolution. The resolutions
referto the image’s effective resolution at pointofuse (taking account of scaling, rotation etc).
49
50
CHAPTER 13. WORKING WITH IMAGES
Chapter 14
Fonts
cpdf -copy-font fromfile.pdf -copy-font-page <int>
-copy-font-name <name> in.pdf [<range>] -o out.pdf
cpdf -remove-fonts in.pdf -o out.pdf
cpdf -missing-fonts in.pdf
14.1 Copying Fonts
In orderto usea fontotherthan the standard 14 with-add-text,it must be added tothe file.
Thefontsource PDFis given, together with thefont’s resource name on a given page, and that
fontis copied to all thepages in theinput file’s range, and then written to the output file.
Thefont is named in the output file with it’s basefont name, so it can be easily used with
-add-text.
Forexample, ifthe filefromfile.pdf has a font/GHLIGA+c128 with thename/F10 on
page1 (thisinformation can be found with-list-fonts), the followingwould copythe font
tothe file in.pdf on all pages,writingthe outputtoout.pdf:
cpdf -copy-font fromfile.pdf -copy-font-name /F10
-copy-font-page 1 in.pdf -o out.pdf
Textin thisfont can then be added bygiving-font /GHLIGA+c128. Beawarethatdue to the
vagaries of PDF fonthandling concerning which characters are present in the sourcefont, not
all characters may be available, or theencoding (mapping from input codes to glyphs) may be
non-obvious.
14.2 Removing Fonts
To removeembedded fontsfromadocument,use-remove-fonts. PDFreaders will substitute
local fonts for the missingfonts. The use of this function is onlyrecommended when filesize is
the sole consideration.
51
52
CHAPTER 14. FONTS
cpdf -remove-fonts in.pdf -o out.pdf
14.3 Listing Missing Fonts
The -missing-fonts operation lists anyunembedded fonts in thedocument,one per line.
cpdf -missing-fonts in.pdf
The format is
Page number, Name, Subtype, Basefont, Encoding
Documents you may be interested
Documents you may be interested