asp net open pdf file in web browser using c# : Break pdf into pages Library application class asp.net html winforms ajax pdfx0-part1569

RiverValleyTechnologies,http://www.river-valley.com
JWRA34,Jagathy,Trivandrum695014,India
1
Version:
1.5.6/2016/02/05
Contacts:
[cvr,thanh]@river-valley.org,
ross.moore@mq.edu.au, selinger@mathstat.dal.ca
GenerationofPDF/X-and
PDF/A-compliantPDFswithpdfT
E
X—
pdfx.sty
C.V.Radhakrishnan,HànTh
´
êThành,RossMoore
and
Peter
Selinger
QUICKLINKS
▶Introduction
▶Usage
▶Installing
▶Bibliography
▶References
▶Implementation
▶ChangeHistory
1. Introduction
Thispackage
1
currentlysupportsgenerationofPDF/X-andPDF/A-compliantdocumentsusing
pdfT
E
X,insomeoftheirvariants. Supportforadditionalstandards,suchasPDF/E,PDF/VT
isalsoavailable;seethecompletelistinSection2.1below. By‘supports’,wemeanthatthe
packageprovidescorrectandsufficientmeanstodeclarethatadocumentconformswitha
statedPDFvariant(PDF/X,PDF/A,PDF/E,PDF/VT,etc.)alongwiththeversionand/orlevelof
conformance.Thispackagealsoallowsappropriatemetadataandcolorprofiletobespecified,
accordingtotherequirementsofthePDFvariant.
Metadataelements,mostofwhichmustultimatelybewrittenasXMLusingtheUTF-8
encoding,isprovidedviaafilenamed\jobname.xmpdata,fortherunningLAT
E
Xjob.Without
suchafile,providingsomerequiredinformationaswellasalargerangeofoptionaldata,a
fullyvalidatingPDFfilecannotbeachieved.ThePDFcanbecreated,havingthecorrectvisual
appearanceonallpages,butitwillnotpassvalidationchecks.Section2.2describeshowthis
fileshouldbeconstructed.
Whatthispackagedoesnotdoistocheckforallthedetailsofdocumentstructureandtype
ofcontentthatmayberequired(orrestricted)withinaPDFvariant. Forexample,PDF/VT
[11]requireswell-structureparts,usingFormXObjectsectionstaggedas‘/DPart’. Similarly
PDF/A-1a(and2aand3a)[3,4,5]requireafully‘TaggedPDF’,includingadetailedstructure
taggingwhichenvelopsthecompletecontentsofthedocument. Thisisbeyondthecurrent
versionofpdfT
E
X,ascommonlyshipped.Sowhilethispackageprovidesenoughtomeetthe
declaration,metadataandfont-handlingaspectsforthesePDF/Avariants,itisnotsufficientto
producefullyconformingPDFs.However,withextrapdfT
E
X-basedsoftwarethatiscapableof
producing‘TaggedPDF’,thispackagecanbeusedaspartoftheoverallworkflowtoproduce
fullyconformingdocuments.ItisalsoreportedtohavebeensuccessfullyusedwithLuaT
E
X.
1.1. PDFstandards
PDF/XandPDF/AareumbrellatermsusedtodenoteseveralISOstandards[12,13,14,16,
17,3,4,5]thatdefinedifferentsubsetsofthePDFstandard[1,6].TheobjectiveofPDF/Xis
tofacilitategraphicsexchangebetweendocumentcreatorandprinterandtherefore,hasall
requirementsrelatedtoprinting. Forinstance,inPDF/X,allfontsneedtobeembeddedand
allimagesneedtobeCMYKorspotcolors.PDF/X-2andPDF/X-3acceptcalibratedRGBand
CIELABcolorsalongwithallotherspecificationsofPDF/X.Since2005othervariantsofPDF/X
haveemerged,asextraeffects(suchaslayeringandtransparency)havebeensupportedwithin
thePDFstandarditself.Thefullrangeofversionsandconformancesupportedinthispackage
isdiscussedbelowinSection2.1.
PDF/AdefinesaprofileforarchivingPDFdocuments,whichensuresthedocumentscan
bereproducedintheexactsamewayinyearstocome.Akeyelementtoachievingthisisthat
PDF/Adocumentsare100%self-contained.Alltheinformationneededtodisplaythedocument
inthesamemannereverytimeisembeddedinthefile.APDF/Adocumentisnotpermitted
tobereliantoninformationfromexternalsources. Otherrestrictionsincludeavoidanceof
audio/videocontent,JavaScriptandencryption. Mandatoryinclusionoffonts,colorprofile
andstandards-basedmetadataareabsolutelyessentialforPDF/A.Laterversionsallowforuse
ofimagecompressionandfileattachments.
PDF/Eis anISOstandard[8]intendedfor documentsusedinengineeringworkflows.
PDF/VT[11]allowsforhigh-volumecustomisedformprinting,suchasutilitybills.PDF/UA
(‘UniversalAccessibility’)isemergingasastandard[10,9]supportingAssistiveTechnolo-
gies,incorporatingweb-accessibilityguidelines(WCAG)forelectronicdocuments.Infuture,
PDF/Hmayemergeforhealthrecordsandmedical-relateddocuments.Otherapplicationscan
1Aslightlyearlierversionofthisdocumentationwaspublishedas[19].
Break pdf into pages - Split, seperate PDF into multiple files in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Explain How to Split PDF Document in Visual C#.NET Application
acrobat split pdf pages; pdf split file
Break pdf into pages - VB.NET PDF File Split Library: Split, seperate PDF into multiple files in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
VB.NET PDF Document Splitter Control to Disassemble PDF Document
break a pdf; split pdf files
RiverValleyTechnologies,http://www.river-valley.com
JWRA34,Jagathy,Trivandrum695014,India
2
Version:
1.5.6/2016/02/05
Contacts:
[cvr,thanh]@river-valley.org,
ross.moore@mq.edu.au, selinger@mathstat.dal.ca
GenerationofPDF/X-and
PDF/A-compliantPDFswithpdfT
E
X—
pdfx.sty
C.V.Radhakrishnan,HànTh
´
êThành,RossMoore
and
Peter
Selinger
QUICKLINKS
▶Introduction
▶Usage
▶Installing
▶Bibliography
▶References
▶Implementation
▶ChangeHistory
beenvisaged.DeclarationsandMetadataaresupportedforthefirsttwoofthese.Theothers
arethesubjectoffurtherwork;revisedversionsofthispackagecanbeexpectedinlateryears.
2. Usage
Thepackagecanbeloadedwiththecommand:
\usepackage[<option>]{pdfx}
wheretheoptionsareasfollows.
2.1. Options
2.1.1. PDF/Aoptions
PDF/AisanISOstandard[3,4,5]intendedforlong-termarchivingofelectronicdocuments.
Itthereforeemphasizesself-containednessandreproducibility,aswellasmachine-readable
metadata. ThePDF/Astandardhasthreeconformancelevels‘a’,‘b’,and‘u’.Level‘a’isthe
strictest,butisnotyetfullyimplementedbythepdfxpackage. Conformancelevel‘u’has
thesamerequirementsaslevel‘b’,butwiththeadditionalrequirementthatalltextinthe
documentmusthaveaUnicodemapping.However,thepdfxpackageproducessuchUnicode
mappingseveninlevel‘b’files.Thestandardalsohasthreedifferentversions1,2,and3,which
werestandardizedin2005,2011and2012,respectively.Earlierversionscontainasubsetofthe
featuresoflaterversions,soformaximumportability,itispreferabletousealower-numbered
version.Thereisnoconformancelevel‘u’inversion1ofthestandard.Formanytypicaluses
ofPDF/A,itissufficienttousePDF/A-1b.
▶ a-1a
:generatePDF/A-1a.Experimental,notfullyimplemented.
▶ a-1b
:generatePDF/A-1b.
▶ a-2a
:generatePDF/A-2a.Experimental,notfullyimplemented.
▶ a-2b
:generatePDF/A-2b.
▶ a-2u
:generatePDF/A-2u.
▶ a-3a
:generatePDF/A-3a.Experimental,notfullyimplemented.
▶ a-3b
:generatePDF/A-3b.
▶ a-3u
:generatePDF/A-3u.
By‘Experimental,notfullyimplemented’herewemeanprimarilythatthedocumentstructure,
asrequiredfor‘TaggedPDF’,isnothandledbythispackage.UsingotherpdfT
E
X-basedsoft-
warethatiscapableofproducingsuchcompletetagging,conformingdocumentscanindeed
beproduced.
2.1.2. PDF/Eoptions
PDF/EisanISOstandardintendedfordocumentsusedinengineeringworkflows. Thereis
onlyoneversionofthePDF/Estandardsofar,anditiscalledPDF/E-1.
▶ e-1
:generatePDF/E-1.
VB.NET PDF Page Insert Library: insert pages into PDF file in vb.
Able to add and insert one or multiple pages to existing adobe Offer PDF page break inserting function. DLLs for Adding Page into PDF Document in VB.NET Class.
acrobat split pdf into multiple files; pdf separate pages
C# PDF Page Insert Library: insert pages into PDF file in C#.net
Offer PDF page break inserting function. PDF document editor library control, RasterEdge XDoc.PDF, offers easy to add & insert an (empty) page into an existing
break a pdf into smaller files; c# split pdf
RiverValleyTechnologies,http://www.river-valley.com
JWRA34,Jagathy,Trivandrum695014,India
3
Version:
1.5.6/2016/02/05
Contacts:
[cvr,thanh]@river-valley.org,
ross.moore@mq.edu.au, selinger@mathstat.dal.ca
GenerationofPDF/X-and
PDF/A-compliantPDFswithpdfT
E
X—
pdfx.sty
C.V.Radhakrishnan,HànTh
´
êThành,RossMoore
and
Peter
Selinger
QUICKLINKS
▶Introduction
▶Usage
▶Installing
▶Bibliography
▶References
▶Implementation
▶ChangeHistory
2.1.3. PDF/VToptions
PDF/VTisanISOstandardintendedasanexchangeformatforvariableandtransactional
printing,andisanextensionofthePDF/X-4standard. ThestandardspecifiesthreePDF/VT
conformancelevels.Level1isforsingle-fileexchange,level2isformulti-fileexchange,and
level2sisforstreameddelivery.Currently,noneofthePDF/VTconformancelevelsarefully
implementedbythepdfxpackage.
▶ vt-1
:generatePDF/VT-1.Experimental,notfullyimplemented.
▶ vt-2
:generatePDF/VT-2.Experimental,notfullyimplemented.
▶ vt-2s
:generatePDF/VT-2s.Experimental,notfullyimplemented.
By‘Experimental,notfullyimplemented’herewemeanprimarilythatthestructuringofa
documentinto‘/DPart’sections,asFormXObjects,isnothandledbythispackage. Thisis
possiblewithcurrentpdfT
E
Xsoftware,butnotyetinawaythatlendsitselfeasilytofull
automation,duetorequirementsofknowingtheinternalobjectnumberofcertaininternal
PDFconstructs.Alltheotheraspects:PDFInfodeclaration,MetadataandColorProfile,ofthe
PDF/VTvariantsarecorrectlyhandled.
2.1.4. PDF/Xoptions
PDF/XisanISOstandardintendedforgraphicsinterchange. Itemphasizesprinting-related
requirements,suchasembeddedfontsandcolorprofiles. ThePDF/Xstandardhasalarge
numberofvariantsandconformancelevels. ThebasicvariantsareknownasX-1,X-1a,X-
3,X-4,andX-5. (NotethatarevisedversionoftheX-2standardwaspublishedin2003,but
withdrawnasanISOstandardin2011,basicallyduetolackofinterestinusingit).ThePDF/X-
1astandardexistsinrevisionsof2001and2003,thePDF/X-3standardexistsinrevisionsof
2002and2003,andthePDF/X-4andPDF/X-5standardsexistinrevisionsof2008and2010.
Moreover,someofthesestandardshavea‘p’version,whichpermitstheuseofanexternally
suppliedcolorprofile(insteadofanembeddedone),and/ora‘g’version,whichpermitstheuse
ofexternalgraphicalcontent.Moreover,PDF/X-5hasan‘n’version,whichextendsPDF/X-4p
bypermittingadditionalcolorspacesotherthanGrayscale,RGB,andCMYK.Formanytypical
usesofPDF/X,itissufficienttousePDF/X-1a.
▶ x-1
:generatePDF/X-1.
▶ x-1a
:generatePDF/X-1a.Optionsx-1a1andx-1a3arealsoavailabletospecifyPDF/X-
1a:2001orPDF/X-1a:2003explicitly.
▶ x-3
: generatePDF/X-3. Optionsx-302andx-303arealsoavailabletospecifyPDF/X-
3:2002orPDF/X-3:2003explicitly.
▶ x-4
: generatePDF/X-4. Optionsx-408andx-410arealsoavailabletospecifyPDF/X-
4:2008orPDF/X-4:2010explicitly.
▶ x-4p
: generatePDF/X-4p. . Options x-4p08 andx-4p10 are alsoavailabletospecify
PDF/X-4p:2008orPDF/X-4p:2010explicitly.
▶ x-5g
: generatePDF/X-5g. . Options x-5g08 andx-5g10are alsoavailabletospecify
PDF/X-5g:2008orPDF/X-5g:2010explicitly.
▶ x-5n
: generate e PDF/X-5n. . Options x-5n08 andx-5n10 arealsoavailabletospecify
PDF/X-5n:2008orPDF/X-5n:2010explicitly.Experimental,notfullyimplemented.
▶ x-5pg
:generatePDF/X-5pg.Optionsx-5pg08andx-5pg10arealsoavailabletospecify
PDF/X-5pg:2008orPDF/X-5pg:2010explicitly.
C# PDF Convert: How to Convert Jpeg, Png, Bmp, & Gif Raster Images
Success"); break; case ConvertResult.FILE_TYPE_UNSUPPORT: Console.WriteLine("Fail: can not convert to PDF, file type unsupport"); break; case ConvertResult
break apart a pdf; pdf split pages in half
C# Image Convert: How to Convert Word to Jpeg, Png, Bmp, and Gif
RasterEdge.XDoc.PDF.dll. is not a document"); default: Console.WriteLine("Fail: unknown error"); break; }. This demo code convert word file all pages to Jpeg
break pdf into single pages; a pdf page cut
RiverValleyTechnologies,http://www.river-valley.com
JWRA34,Jagathy,Trivandrum695014,India
4
Version:
1.5.6/2016/02/05
Contacts:
[cvr,thanh]@river-valley.org,
ross.moore@mq.edu.au, selinger@mathstat.dal.ca
GenerationofPDF/X-and
PDF/A-compliantPDFswithpdfT
E
X—
pdfx.sty
C.V.Radhakrishnan,HànTh
´
êThành,RossMoore
and
Peter
Selinger
QUICKLINKS
▶Introduction
▶Usage
▶Installing
▶Bibliography
▶References
▶Implementation
▶ChangeHistory
2.1.5. Otheroptions
Theseoptionsareexperimentalandshouldnotnormallybeused.
▶ useBOM
:generateanexplicitUTF-8byte-ordermarkerintheembeddedXMPmetadata,
andmaketheXMPpacketwritable.NeitherofthesefeaturesarerequiredbythePDF/A
standard, butthereexistsomePDF/Avalidators(reportedlyvalidatepdfa.com)that
seemtorequirethem. Note: : theimplementationofthisfeatureisexperimentaland
maybreakwithfutureupdatestothexmpinclpackage.
▶ noBOM
:donotgeneratetheoptionalbyte-ordermarker.(default)
▶ pdf13
: usePDF1.3,overridingtheversionspecifiedbytheapplicablestandard. . This
mayproduceanon-standard-conformingPDFfile.
▶ pdf14
: usePDF1.4,overridingtheversionspecifiedbytheapplicablestandard. . This
mayproduceanon-standard-conformingPDFfile.
▶ pdf15
: usePDF1.5,overridingtheversionspecifiedbytheapplicablestandard. . This
mayproduceanon-standard-conformingPDFfile.
▶ pdf16
: usePDF1.6,overridingtheversionspecifiedbytheapplicablestandard. . This
mayproduceanon-standard-conformingPDFfile.
▶ pdf17
: usePDF1.7,overridingtheversionspecifiedbytheapplicablestandard. . This
mayproduceanon-standard-conformingPDFfile.
2.2. Datafileformetadata
Asmentionedabove,standards-compliantPDFdocumentsrequiremetadatatobeincluded.
Thepdfxpackageexpectsthemetadatatobesuppliedinaspecialdatafilecalled\jobname.xmpdata.
Here,\jobnameisusuallythebasenameofthedocument’smain.texfile. Forexample,if
your documentsourceisin thefile main.tex, then the metadata must beina filecalled
main.xmpdata.Noneoftheindividualmetadatafieldsaremandatory,butformostdocuments,
itmakessensetodefineatleastthetitleandtheauthor.Hereisanexampleofashort.xmpdata
file:
\Title{Baking through h the ages}
\Author{A. Baker\sep C. Kneader}
\Keywords{cookies\sep muffins\sep p cakes}
\Publisher{Baking International}
Youshouldnotethatmultipleauthorsandkeywordshavebeenseparatedby\sep.The\sep
macroisonlypermittedinwithinthe\Author,\Keywords,and\Publisherfields.
Afterprocessing,thelocaldirectorycontainsafilenamedsuchaspdfa.xmpiorpdfx.xmpi
accordingtothePDFvariantrequired.ThisfileisthecompleteXMPMetadatapacket.Itcan
becheckedforvalidity,usinganonlinevalidator,suchasatwww.pdflib.com.
Warning: The\jobname.xmpdatafilemaybeincludedin n the maindocument source,
withina{filecontents}environment,butonlywhenitcontainsnonon-asciiUTF-8byte
sequences.SeeSection2.4belowformoreinformation.
2.3. Listofsupportedmetadatafields
Hereisacompletelistofuser-definablemetadatafieldscurrentlysupported,andtheirmean-
ings. Moremaybeaddedinthefuture. Thesecommandscanonlybeusedinthe.xmpdata
file.
C# TWAIN - Query & Set Device Abilities in C#
can set and integrate this duplex scanning feature into your C# device.TwainTransferMode = method; break; } if (method == TwainTransferMethod.TWSX_FILE) device
break apart pdf pages; can't cut and paste from pdf
C# TWAIN - Install, Deploy and Distribute XImage.Twain Control
how to install XImage.Twain into visual studio RasterEdge.XDoc.PDF.dll. device. TwainTransferMode = method; break; } if (method == TwainTransferMethod.TWSX_FILE
pdf file specification; break password on pdf
RiverValleyTechnologies,http://www.river-valley.com
JWRA34,Jagathy,Trivandrum695014,India
5
Version:
1.5.6/2016/02/05
Contacts:
[cvr,thanh]@river-valley.org,
ross.moore@mq.edu.au, selinger@mathstat.dal.ca
GenerationofPDF/X-and
PDF/A-compliantPDFswithpdfT
E
X—
pdfx.sty
C.V.Radhakrishnan,HànTh
´
êThành,RossMoore
and
Peter
Selinger
QUICKLINKS
▶Introduction
▶Usage
▶Installing
▶Bibliography
▶References
▶Implementation
▶ChangeHistory
2.3.1. Generalinformation:
▶ \Author
:thedocument’shumanauthor.Separatemultipleauthorswith\sep.
▶ \Title
:thedocument’stitle.
▶ \Keywords
:listofkeywords,separatedwith\sep.
▶ \Subject
:theabstract.
▶ \Publisher
:thepublisher.
2.3.2. Copyrightinformation:
▶ \Copyright
:acopyrightstatement.
▶ \CopyrightURL
:locationofawebpagedescribingtheownerand/orrightsstatementfor
thisdocument.
▶ \Copyrighted
:‘True’ifthedocumentiscopyrighted,and‘False’ifitisn’t. Thisisau-
tomaticallysetto‘True’ifeither\Copyrightor\CopyrightURLisspecified,butcanbe
overridden. Forexample,ifthecopyrightstatementis‘PublicDomain’,thisshouldbe
setto‘False’.
2.3.3. Publicationinformation:
▶ \PublicationType
:Thetypeofpublication.Ifdefined,mustbeoneof‘book’,‘catalog’,
‘feed’,‘journal’,‘magazine’,‘manual’,‘newsletter’,‘pamphlet’.Thisisautomaticallyset
to‘journal’if\Journaltitleisspecified,butcanbeoverridden.
▶ \Journaltitle
:Thetitleofthejournalinwhichthedocumentwaspublished.
▶ \Journalnumber
:TheISSNforthepublicationinwhichthedocumentwaspublished.
▶ \Volume
:Journalvolume.
▶ \Issue
:Journalissue/number.
▶ \Firstpage
:Firstpagenumberofthepublishedversionofthedocument.
▶ \Lastpage
:Lastpagenumberofthepublishedversionofthedocument.
▶ \Doi
:DigitalObjectIdentifier(DOI)forthedocument,withouttheleading‘doi:’.
▶ \CoverDisplayDate
: Dateonthecoverofthejournalissue,asahuman-readabletext
string.
▶ \CoverDate
:Dateonthecoverofthejournalissue,inaformatsuitableforstoringina
databasefieldwitha‘date’datatype;e.g.YYYY-MM,orYYYY-MM-DD.
2.3.4. BackwardCompatibility
Thefollowingmacrosarealsorecognised,forbackwardcompatibilitywithearlierversionsof
thepackage.
▶ \Creator
:synonymouswith\CreatorToolwhichisusuallyhandledautomaticallyany-
way,butcanbeover-ridden.
▶ \Org
:synonymouswith\Publisher.
▶ \WebStatement
:synonymouswith\CopyrightURL.
C# TWAIN - Acquire or Save Image to File
you want to acquire an image directly into the C# RasterEdge.XDoc.PDF.dll. Group4) device.Compression = TwainCompressionMode.Group3; break; } } acq.FileTranfer
break pdf into separate pages; how to split pdf file by pages
C# TWAIN - Specify Size and Location to Scan
foreach (TwainStaticFrameSizeType frame in frames) { if (frame == TwainStaticFrameSizeType.LetterUS) { this.device.FrameSize = frame; break; } } }.
break password pdf; break pdf file into parts
RiverValleyTechnologies,http://www.river-valley.com
JWRA34,Jagathy,Trivandrum695014,India
6
Version:
1.5.6/2016/02/05
Contacts:
[cvr,thanh]@river-valley.org,
ross.moore@mq.edu.au, selinger@mathstat.dal.ca
GenerationofPDF/X-and
PDF/A-compliantPDFswithpdfT
E
X—
pdfx.sty
C.V.Radhakrishnan,HànTh
´
êThành,RossMoore
and
Peter
Selinger
QUICKLINKS
▶Introduction
▶Usage
▶Installing
▶Bibliography
▶References
▶Implementation
▶ChangeHistory
2.4. Symbolspermittedinmetadata
Withinthemetadata,allprintableASCIIcharactersexcept\,{,}and%representthemselves.
Also,allprintableUnicodecharactersfromthebasicmultilingualplane(i.e.,uptocodepoint
U+FFFF)canbeuseddirectlywiththeUTF-8encoding. (Pleasenote: : encodingsotherthan
UTF-8arenotcurrentlysupportedinthemetadata). Consecutivewhitespacecharactersare
combinedintoasinglespace.Whitespaceafteramacrosuchas\copyright,\backslash,or
\sepisignored.Blanklinesarenotpermitted.Moreover,thefollowingmarkupcanbeused:
”:aliteralspace(forexampleafteramacro)
▶ \%
:aliteral%
▶ \{
:aliteral{
▶ \}
:aliteral}
▶ \backslash
:aliteralbackslash\
▶ \copyright
:thecopyrightsymbol©
Themacro\sepisonlypermittedwithin\Author,\Keywords,and\Publisher.It’sintentionis
toseparatemultipleauthors,keywords,etc.Howeverforvalidationpurposes,multipleauthors
andkeywordsmustnotreallybeseparated.Thepackagetakescareofthis,evenwhen\sepis
used.
OtherT
E
Xmacrosactuallycanbeused,providedtheauthorisverycarefulandnotask
fortoo-complicatedT
E
XorLAT
E
Xexpansionsintointernalcommandsornon-characterprimi-
tives;basicallyjustaccents,macrosforLatin-basedspecialcharacters,andsimpletextualre-
placements,perhapswithasimpleparameter.Aspecialmacro\pdfxEnableCommands{...}is
providedtohelpresolvedifficultiesthatmayarise.
Hereisanexampleoftheuseof\pdfxEnableCommands,whichoccurswiththenameof
oneofourauthors(HànTh
´
êThanh)duetothedoubly-accentedletter
´
ê.Itisusualtodefinea
macrosuchas:\def\thanh{H\‘an Th\’{\^e} Thanh}.
Inpreviousversionsofthepdfxpackage,useofsuchamacrowithinthe.xmpdatafile,
intheCopyrightinformationsay,couldresultintheaccentmacrosexpandingintointernal
primitives,suchas
H\unhbox \voidb@x \bgroup p \let t \unhbox x \voidb@x x \setbox x \@tempboxa a ...
goingonformanylines.ThisclearlyhasnoplacewithintheXMPMetadata.Togetaround
this,onecouldtryusingsimplifiedmacrodefinitions
\pdfxEnableCommands{
\def\‘#1{#1^^cc^80}\def\’#1{#1^^cc^81}\def\^#1{#1^^cc^82}}
wherethe^^cc^80,^^cc^81,^^cc^82causeT
E
XtogeneratethecorrectUTF-8bytesfor‘com-
biningaccent’characters.
ThisworksfineformetadatafieldsthatappearjustintheXMPpacket.However,itisnot
sufficientforthePDF/Authorkey,whichmustexactlymatchwiththedc:creatorMetadata
element.Whatisneededinsteadis
\pdfxEnableCommands{
\def\thanh{H^^c3^^a0n Th\eee Thanh}\def\eee{^^c3^^aa^^cc^^81 }}
RiverValleyTechnologies,http://www.river-valley.com
JWRA34,Jagathy,Trivandrum695014,India
7
Version:
1.5.6/2016/02/05
Contacts:
[cvr,thanh]@river-valley.org,
ross.moore@mq.edu.au, selinger@mathstat.dal.ca
GenerationofPDF/X-and
PDF/A-compliantPDFswithpdfT
E
X—
pdfx.sty
C.V.Radhakrishnan,HànTh
´
êThành,RossMoore
and
Peter
Selinger
QUICKLINKS
▶Introduction
▶Usage
▶Installing
▶Bibliography
▶References
▶Implementation
▶ChangeHistory
ortheabovewith‘à’typeddirectlyasUTF-8insteadof^^c3^^a0and‘ê’inUTF-8for^^c3^^aa.
Thereasonforthisisduetothe\pdfstringdefcommand,whichconstructstheaccentedlatin
lettersassinglecombinedcharactersàandê,withoutresortingtocombiningaccents,wherever
possible.IftheMetadatadoesnothavethesame,irrespectiveofUnicodenormalisation,then
validationfails.
Withthislatestversion(1.5.6)ofthepdfxpackage,suchdifficultieshavebeenovercome,
atleastforcharactersusedinWesternEuropean,Latin-basedlanguages.Theinputencoding
usedwhenreadingthe.xmpdatafilenowincludesinterpretationsofT
E
X’susualaccentcom-
mandstoproducetherequiredUTF-8bytesequences.Workisongoingtoextendthisinput
encodingtoincludemacrodefinitionsformorespecialcharacters(e.g.,extendedLatin,Cyril-
lic,Greek,etc.). AsignificantportionoftheUnicodeBasicPlanecharacterscanbecovered
thisway.ModulescouldevenbeprovidedforCJKcharactersetsandmathematicalsymbols,
etc.However,thiscanbecomememoryintensive,sosignificanttestingwillberequiredbefore
thisbecomesastandardpartofthepdfxpackage.
Warning: Thisencodingof f macros,usingasciicharacters only,allowsfortheconve-
nienceofincludingthe \jobname.xmpdatafile in the main L
A
T
E
Xsourcepreamble, within
{filecontents} environment. . This s only works s when it contains no o non-ascii UTF-8
bytesequences. The {filecontents} environmentis best placedimmediately before the
\usepackage[...]{pdfx}command.
2.5. Colorprofiles
MoststandardscompliantPDFdocumentsrequireacolorprofiletobeembeddedwithinthe
file.Inanutshell,suchaprofiledeterminespreciselyhowthecolorsusedinthedocumentwill
berenderedwhenprintedtoaphysicalmedium.Thiscanbeusedtoensurethatthedocument
willlookexactlythesame,evenwhenitisprintedondifferentprinters,withdifferentpaper
types,etc. Theinclusionofacolorprofileisnecessarytomakethedocumentcompletely
self-contained.
SincemostLAT
E
Xusersarenotgraphicsprofessionalsandarenotparticularlypickyabout
colors,thepdfxpackageincludesdefaultprofilesthatwillbeincludedwhennothingelseis
specified.Therefore,theaverageuserdoesn’thavetodoanythingspecialaboutcolor.
Foruserswhohaveaspecificcolorprofiletheywishtouse,itispossibletodosoby
includinga\setRGBcolorprofileor\setCMYKcolorprofilecommandinthe.xmpdatafile.
NotethatPDF/AandPDF/ErequireanRGBcolorprofile,andPDF/XandPDF/VTrequirea
CMYKcolorprofile. UsethefollowingcommandstospecifyanRGBorCMYKcolorprofile,
respectively:
\setRGBcolorprofile{⟨filename⟩}{⟨identifier⟩}{⟨infostring⟩}{⟨registryURL⟩}
\setCMYKcolorprofile{⟨filename⟩}{⟨outputintent⟩}{⟨identifier⟩}{⟨registryURL⟩}
Withintheargumentsofthesemacros,thecharacters<,>,&,^,_,#,$,and~canbeusedas
themselves,but%mustbeescapedas\%.Thedefaultsare:
\setRGBcolorprofile{sRGB_IEC61966-2-1_black_scaled.icc}
{sRGB_IEC61966-2-1_black_scaled}
{sRGB IEC61966 v2.1 1 with h black scaling}
{http://www.color.org}
\setCMYKcolorprofile{coated_FOGRA39L_argl.icc}
{Coated FOGRA39}
{FOGRA39 (ISO O Coated v2 300\% (ECI))}
{http://www.argyllcms.com/}
RiverValleyTechnologies,http://www.river-valley.com
JWRA34,Jagathy,Trivandrum695014,India
8
Version:
1.5.6/2016/02/05
Contacts:
[cvr,thanh]@river-valley.org,
ross.moore@mq.edu.au, selinger@mathstat.dal.ca
GenerationofPDF/X-and
PDF/A-compliantPDFswithpdfT
E
X—
pdfx.sty
C.V.Radhakrishnan,HànTh
´
êThành,RossMoore
and
Peter
Selinger
QUICKLINKS
▶Introduction
▶Usage
▶Installing
▶Bibliography
▶References
▶Implementation
▶ChangeHistory
SomecolorprofilefilesmaybeobtainedfromtheInternationalColorConsortium.Please
takealookathttp://www.color.org/iccprofile.xalter.
Alternatively,colorprofilesareshippedwithmanyAdobesoftwareapplications;theseare
thenavailableforusealsowithnon-Adobesoftware. Nowthepdfxpackageincludescod-
ingtostreamlineinclusionoftheseprofilesinPDFdocuments,ortospecifythemas‘exter-
nal’profiles,withPDF/X-4pandPDF/X-5pgvariants.TwofilesAdobeColorProfiles.texand
AdobeExternalProfiles.texaredistributedwiththepdfxpackage.Thelatterisforusewith
PDF/X-4pandPDF/X-5pg,whichdonotrequirecolorprofilestobeembedded,whilethefor-
mercanbeusedwithotherPDF/Xvariants.BothdefinecommandstouseColorProfilesas
follows.
\FOGRAXXXIX
CoatedFOGRA39(ISO12647-2:2004)
\SWOPCGATSI
U.S.WebCoated(SWOP)v2
\JapanColorMMICoated
JapanColor2001Coated
\JapanColorMMIUncoated
JapanColor2001Uncoated
\JapanColorMMIINewspaper JapanColor2002Newspaper
\JapanWebCoatedAd
JapanWebCoated(Ad)
\CoatedGRACoL
CoatedGRACoL2006(ISO12647-2:2004)
\SNAPCGATSII
CGATSTR002
\SWOPCGATSIII
CGATSTR003
\SWOPCGATSV
CGATSTR005
\ISOWebCoated
WebCoatedFOGRA28(ISO12647-2:2004)
\ISOCoatedECI
ISOCoatedv2(ECI)
\CoatedFOGRA
CoatedFOGRA27(ISO12647-2:2004)
\WebCoatedFOGRA
WebCoatedFOGRA28(ISO12647-2:2004)
\UncoatedFOGRA
UncoatedFOGRA29(ISO12647-2:2004)
\IFRAXXVI
ISOnewspaper26v4ISO/DIS12647-3:2004
\IFRAXXX
ISOnewspaper30v4ISO/DIS12647-3:2004
Asofthetimeofwriting,onlythefirstsixoftheseresultinPDFswhichcanvalidatewith
externalprofiles(i.e.,forPDF/X-4pandPDF/X-5pg)usingcurrentversionsofAdobeAcro-
batProsoftware. Itisunclearwhethertheothers(incl.\IFRAXXVIand\IFRAXXX)faildueto
incorrectdataorproblemsinthevalidationsoftware. Allbutthoselasttwocanbeusedfor
validembeddedprofiles,providingthecorrespondingfilescanbefound.Thefollowingmacro
isusedtosetthe(absoluteorrelative)path,onthelocaloperatingsystem,tothelocationof
colorprofilefiles.
\pdfxSetRGBcolorProfileDir{⟨pathtoRGBcolorprofiles⟩}
\pdfxSetCMYKcolorProfileDir{⟨pathtoCMYKprofiles⟩}
OnaMacintosh,onecanuse\AdobeMacOSdirwhichexpandstothepath/Library/Application
Support/Adobe/Color/Profiles/Recommended/.UnderWindowsthecorrespondingmacrois
\WindowsColordirwhichexpands:C:\Windows\System32\Spool\Drivers\Color/.Usethese
withinthe.xmpdatafileas,e.g.,\pdfxSetCMYKcolorProfileDir{\AdobeMacOSdir}. Authors
shouldchangethepathstosuittheirowncircumstances,eitherbeforeloadingpdfx.styor
withinthe.xmpdatafile.
PDF/A andPDF/Eusually need d an RGB profile, , while e PDF/X and PDF/VT require a
CMYKprofile. It t is possibleto o usea CMYKprofilewith PDF/A A or PDF/Eby specifying
\setRGBcolorprofile{}{}{}{}inthe.xmpdatafile. Bewarehowever,thatwithPDF/Aany
colouredhyperlinkannotationscancauseavalidationproblem,astheseareinterpretedas
RGBcoloursevenwhen4componentsaregiven. Thismaybeabuginvalidators,asPDF
specifiesthatthenumberofcomponentsshouldmatchthecolorspace.
RiverValleyTechnologies,http://www.river-valley.com
JWRA34,Jagathy,Trivandrum695014,India
9
Version:
1.5.6/2016/02/05
Contacts:
[cvr,thanh]@river-valley.org,
ross.moore@mq.edu.au, selinger@mathstat.dal.ca
GenerationofPDF/X-and
PDF/A-compliantPDFswithpdfT
E
X—
pdfx.sty
C.V.Radhakrishnan,HànTh
´
êThành,RossMoore
and
Peter
Selinger
QUICKLINKS
▶Introduction
▶Usage
▶Installing
▶Bibliography
▶References
▶Implementation
▶ChangeHistory
2.6. Notesontheinternalrepresentationofmetadata
WithinthePDFfile,metadataisdepositedintwoplaces:somedatagoesintothenativePDF
/Infodictionary,andsomedatagoesintoanXMPpacketstoredseparatelywithinthefile.
XMPisAdobe’sExtensibleMetadataPlatform,andisanXML-basedformat.SeeAdobeXMP
DevelopmentCenterformoreexhaustiveinformationaboutXMP.AnXMPToolkitSDKwhich
supportstheGNU/Linux,MacintoshandWindowsoperatingsystemsisalsoprovidedunder
modifiedBSDlicence.
Someofthemetadata,suchastheauthor,title,andkeywords,arestoredbothintheXMP
packetandinthe/Infodictionary.Fortheresultingfiletobestandards-compliant,thetwo
copiesofthedatamustbeidentical. Allofthisistakencareofautomaticallybythepdfx
package.
Inprinciple,userscanresorttoalternatewaystocreateanXMPfileforinclusioninPDF.In
thiscase,usersshouldcreateafilepdfa.xmporpdfx.xmp(etc.,dependingonthePDFflavor)
containingthepre-defineddata. However,thisisanerror-proneprocessandisnotrecom-
mendedformostusers.Ifthereisaparticularfieldofmetadatathatyouneedandthatisnot
currentlysupported,pleasecontactthepackageauthors.
pdfxmakesuseofthexmpinclpackagetoincludexmpdataintothePDF.Thedocumen-
tationofxmpinclpackagemayhelpinteresteduserstounderstandtheprocessofxmpdata
inclusion.
2.7. Tutorialsandtechnicalnotes
Atutorialwithstep-by-stepinstructionsforgeneratingPDF/Afilescanbefoundat: http:
//www.mathstat.dal.ca/~selinger/pdfa/.
Sometechnicalnotesaboutproductionproblemstheauthorshaveencounteredwhilegen-
eratingPDF/Acompliantdocumentsareavailablehere:http://support.river-valley.com/
wiki/index.php?title=Generating_PDF/A_compliant_PDFs_from_pdftex.
3. Installing
Thepdfx.dtxpackageisavailableonCTANasusual,viahttp://ctan.org/pkg/pdfx. Itis
alsoincludedinT
E
XdistributionssuchasMacT
E
X,T
E
XLiveandMiKT
E
X.Thusmostuserswill
notneedtohandleinstallationatall.
Forthosewishingtodoamanualinstallation,herearesomenotes.Thefilepdfx.dtxisa
compositedocumentofprogramcodeanddocumentationinLAT
E
Xformat,inthetraditionof
literateprogramming. Afterhavinginstalledthepackage,togetthedocumentationthatyou
arereadingnow,run(pdf)LAT
E
Xonthefilepdfx.dtx. TheresultingPDFshouldbevalidas
PDF/A-2u.Orbetter,usetheincludedMakefile,whichwillalsoregeneratetheindex.
Toinstallthepackage,firstextracttheprogramcode;i.e.,thefilepdfx.sty,byrunning
LAT
E
XorT
E
Xonthefilepdfx.ins. Createadirectorynamedpdfxunder$TEXMF/tex/latex
andcopythefilespdfx.sty,8bit.def,glyphtounicode-cmr.tex,aswellasthe*.iccand
*.xmpfiles,intoit. ThenupdateT
E
X’sfiledatabaseusingtheappropriatecommandforyour
distributionandoperatingsystem(suchastexhashormktexlsr,orsimilar).
3.1. Limitationsanddependencies
pdfx.styworkswithpdfT
E
XandalsoLuaT
E
X.Itfurtherdependsonthefollowingotherpack-
ages:
1. xmpincl
forinsertionofmetadataintoPDF.
2. hyperref
forhyperlinking,bookmarks,etc.
3. glyphtounicode.tex
mapsglyphnamestocorrespondingUnicode.
RiverValleyTechnologies,http://www.river-valley.com
JWRA34,Jagathy,Trivandrum695014,India
10
Version:
1.5.6/2016/02/05
Contacts:
[cvr,thanh]@river-valley.org,
ross.moore@mq.edu.au, selinger@mathstat.dal.ca
GenerationofPDF/X-and
PDF/A-compliantPDFswithpdfT
E
X—
pdfx.sty
C.V.Radhakrishnan,HànTh
´
êThành,RossMoore
and
Peter
Selinger
QUICKLINKS
▶Introduction
▶Usage
▶Installing
▶Bibliography
▶References
▶Implementation
▶ChangeHistory
3.2. Filesincluded
Thefollowingfilesareincludedinthepackage.Somecanbecreatedfrompdfx.dtx,usingthe
Makefile.
3.2.1. Packagefiles
▶ pdfx.sty
—mainpackagefilegeneratedfrompdfx.dtx.
▶ pdfa.xmp
—specimenxmptemplateforPDF/A.
▶ pdfe.xmp
—specimenxmptemplateforPDF/E.
▶ pdfvt.xmp
—specimenxmptemplateforPDF/VT.
▶ pdfx.xmp
—specimenxmptemplateforPDF/X.
▶ 8bit.def
—custominputencoding.
▶ l8uenc.def
—inputencodingmacrodeclarations.
▶ glyphtounicode-cmr.tex
—mapsglyphnamestocorrespondingUnicodeforComputer
ModernandotherT
E
X-specificfonts.
▶ coated_FOGRA39L_argl.icc
—CMYKcolorprofile(freelydistributable).
▶ sRGB_IEC61966-2-1_black_scaled.icc
—RGBcolorprofilefreelydistributable.
▶ ICC_LICENSE.txt
—licenseforthecolorprofiles.
▶ AdobeColorProfiles.tex
—macrosforinclusionofAdobe-suppliedcolorprofiles.
▶ AdobeExternalProfiles.tex
—macrosforuseofexternalcolorprofiles.
3.2.2. Documentation
▶ README
—usualtop-levelinformation.
▶ manifest.txt
—filelist.
▶ sample.tex
,sample.xmpdata—asamplefilewithsamplemetadata.
▶ small2e-pdfx.tex
,small2e-pdfx.xmpdata—anothersamplefilewithsamplemetadata.
3.2.3. Sources
▶ src/pdfx.dtx
—compositepackageanddocumentation.
▶ src/pdfx.ins
—installerbatchfile.
▶ src/pdfx.xmpdata
—metadataforthedocumentation.
▶ src/rvdtx.sty
—usedbypdfx.dtx.
▶ src/Makefile
—aMakefileforbuildingthedocumentation.
3.3. Miscellaneousinformation
ThepackageisreleasedundertheLAT
E
XProjectPublicLicence. Bugreports,suggestions,
featurerequests,etc.,maybesenttotheoriginalauthorsatcvr@river-valley.organd/or
thanh@river-valley.org,ortothemorerecentcontributorsatross.moore@mq.edu.auand/or
selinger@mathstat.dal.ca.
Documents you may be interested
Documents you may be interested