itextsharp pdf to xml c# : Create bookmarks in pdf from excel control SDK system azure wpf web page console docu78148-part1684

WorkingwithProles
Forexample,ifyourcustomplug-innameisAutoRndrRplugn.worddocandthe
processnameisWINWORD.EXE,thenthetagwouldappearasfollows:
<PLUGIN name="AutoRndrPlugn.worddoc" process_name ="WINWORD.EXE"/>
Note:Ifyoudonotknowtheprocessname,leavetheprocess_namefieldblank.
6. Addthe following linestothe log4j.propertiesfile(locatedat
C:\Documentum\Config):
log4j.category.com.documentum.cts.plugin.custom=INFO, CustomAppender
log4j.appender.CustomAppender=org.apache.log4j.DailyRollingFileAppender
log4j.appender.CustomAppender.File=C\:\\PROGRA~1\\DOCUME~1\\CTS\\
logs\\CUSTOM_log.txt
log4j.appender.CustomAppender.Append=true
log4j.appender.CustomAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.CustomAppender.layout.ConversionPattern=%d{HH\:mm\:
ss,SSS} %10r %5p [%10t] %-20c - %5x %m%n
log4j.appender.CustomAppender.DatePattern='.'yyyy-ww-dd
7. RestarttheCTSWindowsservice.
Creating new formats
Iftheformatthatyouconfiguredforthecustomplug-inisnotavailableintherepository,
createanewformatintherepository.
NewformatscanbecreatedinDocumentumAdministrator,orusingDQL.Both
proceduresareprovidedbelow.
TocreateanewformatusingDocumentumAdministrator:
1. Intheleft-handpane,clickFormats.
2. ClickFile>New>Format.
3. Enterthefollowinginformation:
Name
Description
DefaultFileExtension
MacintoshCreator
MacintoshType
CanBeIndexed
RichMediaEnabled
AssetClass
4. ClickOKtosavethenewformat.
EMCDocumentumAdvancedDocumentTransformationServicesVersion6.5AdministrationGuide
81
Create bookmarks in pdf from excel - add, remove, update PDF bookmarks in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Empower Your C# Project with Rapid PDF Internal Navigation Via Bookmark and Outline
add bookmarks to pdf reader; how to create bookmarks in pdf file
Create bookmarks in pdf from excel - VB.NET PDF bookmark library: add, remove, update PDF bookmarks in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Empower Your VB.NET Project with Rapid PDF Internal Navigation Via Bookmark and Outline
how to add a bookmark in pdf; bookmark pdf documents
WorkingwithProles
TocreateanewformatusingDQL:
1. LogontoaDQLeditorandrunthefollowingDQLstatements:
1. CREATE "dm_format" OBJECT SET "name"='<Enter format name>',
SET "description" = 'A Custom tiff format for
testing',
SET "can_index" = 0,
SET "topic_transform" = 0,
SET "mac_creator" = '<Enter value>',
SET "dos_extension" = '<Enter value>',
SET "is_hidden" = 0,
SET "mime_type" = '<Enter value>',
SET "icon_index" = 0,
SET "richmedia_enabled" = 1,
SET "asset_class" = 'Image'
2. UPDATE dm_format OBJECT SET mac_type = '<Enter value>'
WHERE name='<Enter value>'
Aftercreatingthenewformat,proceedtoAddingnewformatstoprofiles,page82.
Adding new formats to proles
Nowthatyouhavecreatedthenewformatfortheplug-in,yournextstepistoaddthe
newformattotheprofilesandifnecessary,maptheCTSformattotherepositoryformat.
Toaddnewformatstoproles:
1. LogintoDigitalAssetManagerorDocumentumAdministratorasaSuperUser.
2. Navigatetothe/System/MediaServer/SystemProfilesfolder.
3. Checkoutthefollowingfiles:
• legacy_to_pdf.xml
• document_to_pdf.xml
4. Openlegacy_to_pdf.xmlanddocument_to_pdf.xmlinatexteditor,andmakethe
followingmodification:
• Under<Formats>,add:
<Format source="<new format>" target="pdf"/>
5. Savethefilesandcheckthemintotherepository.
6. StoptheCTSservice.
7. Ifthenameofthenewdm_formatisdifferentfromitsDOSextension,youmustmap
theCTSformattotherepositoryformat:
a. Openthe<CTSfolder>\config\FormatMapperService.xmlfile.
b. AddanewFormatMapperentrytotheCTSCustomConfigsection:
CTSFormat="<Plug-in format>" DocumentumFormat="<new format
82
EMCDocumentumAdvancedDocumentTransformationServicesVersion6.5AdministrationGuide
VB.NET PDF File Compress Library: Compress reduce PDF size in vb.
Bookmarks. inputFilePath = Program.RootPath + "\\" 3.pdf"; String outputFilePath = Program.RootPath + "\\" 3_optimized.pdf"; 'create optimizing options
add bookmarks to pdf preview; how to add bookmarks to pdf files
VB.NET PDF File Split Library: Split, seperate PDF into multiple
file into multiple ones by PDF bookmarks or outlines As String = Program.RootPath + "\\" 1.pdf" Dim outputFileName 1 to (Page Count - 1). ' Create output PDF
bookmarks in pdf files; bookmarks pdf file
WorkingwithProles
name>"/>
c. Savethefile.
8. Restarttherepository.
9. StarttheCTSWindowsservice.
10. ChecktheCTSlogtoensureallprofilesareloaded.
Using DQL in proles
DocumentQueryLanguage(DQL)canbespecifiedforallAdvancedDocument
TransformationServicesprofilefiles. ThroughDQL,defaultprofileparameterscanbe
supplied.Forexample,headertextcanbepre-populatedwiththeclient’sname.This
textwillappearontheTransformationDetailsscreen(ofaWDK-basedapplication
suchasDAMorWebtop)whenauserperformsaConvertDocumenttoPDFwith
Header/Footertransformation.
TheDQLispresentedasanattributeoftheParameternodeofprofiles(nameddql).This
sectiondiscusses:
• Thedqlattributevaluesyntax,page83
• DQLguidelines,page84
• DQLqueryexamples,page84
• Queryingther_object_idattribute,page85
The dql attribute value syntax
Thesyntaxforthedqlprofileparameterattributevaluedoesnotdifferfromaregular
DQLstatement.Itsupportsthefollowingtokens(placeholders)whicharerecognized
bythesystem:
• [sysobject_id_token]:placeholderforaSysObjectID(ther_object_idattributefor
dm_sysobject)
• [format_token]:placeholderfortherendition’sformat(string)
• [page_token]:placeholderforthepageattributeofdmr_content(integer)
• [page_modifier_token]:placeholderforthepage_modifierattributeofdmr_content
(string)
Thesetokensarereplacedatruntimewiththeactualvaluestakenfromthesourcesys
objectthatisusedtoexecutetheprofile,beforeexecutingtheactualquery.
EMCDocumentumAdvancedDocumentTransformationServicesVersion6.5AdministrationGuide
83
C# PDF File Compress Library: Compress reduce PDF size in C#.net
Bookmarks. inputFilePath = Program.RootPath + "\\" 3.pdf"; String outputFilePath = Program.RootPath + "\\" 3_optimized.pdf"; // create optimizing options
create bookmarks pdf file; create pdf bookmarks
C# PDF File Split Library: Split, seperate PDF into multiple files
Split PDF file by top level bookmarks. The following C# codes explain how to split a PDF file into multiple ones by PDF bookmarks or outlines.
convert word to pdf with bookmarks; excel hyperlink to pdf bookmark
WorkingwithProles
DQL guidelines
ConsiderthefollowingguidelineswhensupplyingDQLforprofiles:
• Thesystemdoesnottrytocorrectawrongquery. Italwaysassumesthequeryis
correctlysuppliedinprofile.Thesystemreplacesthecontainedplaceholderswith
runtimevalues,andthenexecutesitagainsttherepository.
• Uponexecutingthequery,thesystemwilljustconsiderthefirstrowreturnedin
theresultset. Ifthequeryissettoreturnmultiplerecords,justthefirstonewill
beconsidered.
• Alltheattributevaluesreturnedwillbeformattedaccordingly,basedontheattribute
type(suchasdate,string,orBoolean).
DQL query examples
ComplexqueriescanbecreatedwithDQL.Queriescanincludeallfoursupported
tokens,asmanytimesastheyareneeded.
ThefollowingexamplesillustratehowtosupplytheDQLforthedqlprofileparameter
attribute:
<Parameter name=”doc_token_text” label=”New Text” controltype=”text”
datatype=”string” dql=”SELECT object_name FROM dm_document WHERE
r_object_id = [sysobject_id_token]”>
<Value label=”text”/>
</Parameter>
<Parameter name=”doc_token_text” label=”New Text” controltype=”text”
datatype=”string” dql=”SELECT 'Name:' as label, object_name FROM
dm_document WHERE r_object_id = [sysobject_id_token]”>
<Value label=”text”/>
</Parameter>
<Parameter name=”doc_token_text” label=”New Text” controltype=”text”
datatype=”string” dql=”SELECT 'Modified:' as label, r_modify_date FROM
dm_document WHERE r_object_id = [sysobject_id_token]”>
<Value label=”text”/>
</Parameter>
Thefollowingquerycanbeusedforgettingthecurrentlifecyclestateforasysobject,
asstring:
<Parameter name=”doc_token_text” label=”New Text” controltype=”text”
datatype=”string” dql=”SELECT state_name FROM dm_policy a,
dm_sysobject b WHERE a.r_object_id = b.r_policy_id AND a.i_state_no
= b.r_current_state AND b.r_object_id = [sysobject_id_token]
ENABLE(row_based)”>
<Value label=”text”/>
</Parameter>
84
EMCDocumentumAdvancedDocumentTransformationServicesVersion6.5AdministrationGuide
C# Create PDF Library SDK to convert PDF from other file formats
Create multipage PDF from OpenOffice and CSV file. Create and save editable PDF with a blank page, bookmarks, links, signatures, etc.
create pdf with bookmarks from word; pdf create bookmarks
XDoc.Excel for .NET, Comprehensive .NET Excel Imaging Features
navigation, zooming & rotation; Outlines, bookmarks, & thumbnail Convert Excel to PDF; Convert Excel to HTML5; Create Excel with one blank page; Load Excel from
create bookmark pdf; creating bookmarks in pdf from word
WorkingwithProles
Forgettinginformationthatispertinenttotheuserwhoexecutestheprofile,theuser
keywordcanbeusedinquery:
<Parameter name=”doc_token_text” label=”New Text” controltype=”text”
datatype=”string” dql=”SELECT USER_name, USER_address FROM dm_USER
WHERE USER_name = USER”>
<Value label=”text”/>
</Parameter>
Querying the r_object_id attribute
Havingther_object_idattributeaspartoftheSELECTclauseofthequerywillnotresult
inhavingtheactualObjectIDvaluesuppliedaspartofthedefaultparametervalue.This
attributesometimeshasaspecial(system)roleinquery(forexample,properlyreturning
therepeatingattributesinasinglerow).Thesystemcannotprocessitsrealpurposeat
runtime,andthereforewillnotconsideritwhenbuildingtheprofileparameterdefault
value.
InordertohavetheObjectIDvaluesuppliedaspartoftheprofiledefaultparameter
value,syntaxmustbeprovidedthatwillusethe[sysobject_id_token]placeholderonthe
query’sSELECTclause,asfollows:
<Parameter name=”doc_token_text” label=”New Text” controltype=”text”
datatype=”string” dql=”SELECT [sysobject_id_token] as objectid FROM
dm_document WHERE r_object_id = [sysobject_id_token]”>
<Value label=”text”/>
</Parameter>
EMCDocumentumAdvancedDocumentTransformationServicesVersion6.5AdministrationGuide
85
.NET PDF SDK - Description of All PDF Processing Control Feastures
bookmarks, & thumbnail display; Integrated annotation; More about Web Viewer ▶. Conversion. PDF Create. Create PDF from Word (docx, doc); Create PDF from Excel
create pdf bookmark; export pdf bookmarks to text
VB.NET Create PDF Library SDK to convert PDF from other file
Create multipage PDF from OpenOffice and CSV file. Create and save editable PDF with a blank page, bookmarks, links, signatures, etc.
export excel to pdf with bookmarks; bookmarks in pdf reader
WorkingwithProles
86
EMCDocumentumAdvancedDocumentTransformationServicesVersion6.5AdministrationGuide
Chapter 6
Performing Transformations
AdvancedDocumentTransformationServicesoffersanumberofenhancedPDFtransformation
capabilities.Thischapterprovidesbasicproceduralinformationforperformingthesetransformations.
AswithallContentTransformationServicesproducts,thecapabilitiesofAdvancedDocument
TransformationServicesareaccessedthroughaDocumentumclientapplicationsuchasDigitalAsset
ManagerorWebPublisher. Toperformthesetransformations,logintotherepositoryservicedby
AdvancedDocumentTransformationServices.
Note: TheproceduresprovidedinthischapterrelatetotheDigitalAssetManagerinterface.
Dependingontheclientapplicationyouareusing,theremightbeslightvariationsinthemenu
optionsorinterfacelabelsavailabletoyou.
Note:IfbothDocumentTransformationServicesandAdvancedDocumentTransformationServices
areinstalledonthesameserver,DocumentTransformationServiceshandlesthelegacycallsfor
PDFandHTMLrenditions. Therefore,choosingTools>Transform>PDFrenditionproducesa
standardPDFrenditionthroughDocumentTransformationServices. ToaccesstheadvancedPDF
optionsavailablethroughAdvancedDocumentTransformationServices,chooseTools>Transform>
MoreFormats.
Thereare13typesoftransformationsavailablewithAdvancedDocumentTransformationServices.
Thesetransformationsareexplainedinthefollowingsections:
• Addingattachments,page88
• Addingheadersandfooters,page90
• Addingasignaturepage,page91
• Applyingoverlays,page93
• Applyingwatermarks,page94
• CreatingPDF/AandPDF/Xcompliantfiles,page96
• ConvertingdocumenttoPDF,page98
• ExtractingMIMEbodyandattachments,page100
• Mergingacollection,page101
• MergingPDFdocuments,page103
EMCDocumentumAdvancedDocumentTransformationServicesVersion6.5AdministrationGuide
87
PerformingTransformations
• Mergingvirtualdocuments,page104
• TransformingEMCMFtoHTML,page106
• TransformingEMCMFtoPDF,page107
Note:Thetransformationoptionspresentedtotheuserdependontwofactors:
• WhichContentTransformationServicesproductsareinstalledonthehost.Ifothertransformation
applicationsareinstalled,therearemoreoptionsavailablethanthoselistedabove.
• Thetypeofsourcedocumentchosenfortransformation. Notalloptionsareavailableforevery
transformation.Forexample,ifauseristransformingaVisiofile,theExtractMIME,Transform
MIMEtoPDF,andMergevirtualdocumentsoptionsdonotappear. Sourcedocumentsof
EMLorMSGfiletypeshaveonlytwotransformationoptions: ExtractMIMEandTransform
MIMEtoPDF.
Transformationstocreatenewrenditionsoccurononeitematatimeandrequestsareprocessed
asynchronously,meaningthatnewrenditionsmaynotbeavailableimmediately. Youreceivea
notificationinyourInboxwhenatransformationiscompletedorifatransformationfails.
PDFsecurityoptionsareavailablefortransformationsinvolvingmostMicrosoftOfficeand
WordPerfectsourcedocuments. PDFsecurityisnotavailableforProject,Visio,orAutoCAD
documents.
Adding attachments
ToembedattachmentstoaPDFfile,usetheConvertDocumenttoPDFwith
Attachmentsoption.Aftertransformation,theattachmentsappearaspaperclipicons
withtherendition.Attachmentscanbeopenedintheirnativeapplications.
Note:IfyouwouldprefertoappendtheadditionalfilestothePDF,chooseMergePDF
instead. SeeMergingPDFdocuments,page103.
ToaddattachmentstoaPDFle:
1. Navigatetothefilethatyouwanttotransformtocreateanewrendition.
2. Selectthefile,thenselectTools>Transform>MoreFormats
TheSelectTransformationtabappearsdisplayingtheselectedfileandtheavailable
transformationsfortheselectedfile.
3. SelecttheConvertDocumenttoPDFwithAttachmentsoption.ClickNext.
TheTransformationDetailstabappears.
4. Selecttheoutputformatfromthelistbox.
5. ClickontheSelectlinkontherighthandsideofthescreen.
88
EMCDocumentumAdvancedDocumentTransformationServicesVersion6.5AdministrationGuide
PerformingTransformations
6. SelectthefilestobeaddedtothePDFfile. Afterselectingthefirstattachment,
setAddAnotherAttachmenttoYestoselectanotherfile,ifrequired. Whenall
attachmentshavebeenselected,setAddAnotherAttachmenttoNo.ClickOK.
TheSaveAsscreenappears.
7. Selectoneofthefollowing:
• CreateaNewRendition
• CreateaNewObject
SelectingCreateaNewObjectwillallowyoutousethisobjectinitsown
workflow,createatranslationofit,applyitsownpermission,etc.
8. IfyouselectedCreateaNewRendition,theRenditionDefinitionscreenappears.
EnteradescriptionoftherenditionintheRenditionDescriptionfield.
• ClickSaveTransformationifyouwishtoperformthistransformationeverytime
theparentobjectisversioned.
• ClickSetAsDefaultPreview,ifyouwishtosetthisrenditionasthedefault
previewrendition.
Note:Aformatmustberichmedia_enabledtoallowfortransformationwheneverit
isversioned.
ClickFinish.
9. IfyouselectedCreateaNewObject,theNewObjectDefinitionscreenappears.Enter
atitleofthenewobjectintheTitlefield.Performanyofthefollowingasrequired:
• SelecttheobjecttypefromtheObjectTypelistbox.
• ClickEditnexttoPermissionSetifyouwishtochangepermissionparameters.
ClickOK.
• ClickEditnexttoLifecycleifyouwishtochangedocumentlifecycleinformation.
ClickOK.
• ClickNewLocationoptiontochangeandlogthenewfilelocation.ClickOK.
• ClickSaveTransformationifyouwishtoapplythistransformationeverytime
theparentobjectisversioned.
Note:Aformatmustberichmedia_enabledtoallowfortransformationwheneverit
isversioned.
ClickFinish
10. Thetransformationrequestisimmediatelysenttotheappropriatequeuefor
processing.
EMCDocumentumAdvancedDocumentTransformationServicesVersion6.5AdministrationGuide
89
PerformingTransformations
Adding headers and footers
Userscanaddaheader,afooter,orbothbychoosingthisoption.
Toaddaheaderand/orfootertothetransformation:
1. Navigatetothefilethatyouwanttotransformtocreateanewrendition.
2. Selectthefile,thenselectTools>Transform>MoreFormats
TheSelectTransformationtabappearsdisplayingtheselectedfileandtheavailable
transformationsfortheselectedfile.
3. SelecttheConvertDocumenttoPDFwithHeader/Footeroption.ClickNext.
TheTransformationDetailstabappears.
4. Selecttheoutputformatfromthelistbox.
5. Ifaheaderisrequired,enablethisoptionusingthelistbox. Entertheheadertext
andformattingdetails.Followthesameproceduretoaddfooterinformation.
6. SelectEnablePDFSecurity,ifdesired. IfPDFsecurityisenabled,additional
parametersrelatingtoencryption,passwords,andaccessibilityaredisplayed.Set
theparametersasrequired,andclickOK.
TheSaveAsscreenappears.
7. Selectoneofthefollowing:
• CreateaNewRendition
• CreateaNewObject
SelectingCreateaNewObjectwillallowyoutousethisobjectinitsown
workflow,createatranslationofit,applyitsownpermission,etc.
8. IfyouselectedCreateaNewRendition,theRenditionDefinitionscreenappears.
EnteradescriptionoftherenditionintheRenditionDescriptionfield.
• ClickSaveTransformationifyouwishtoperformthistransformationeverytime
theparentobjectisversioned.
• ClickSetAsDefaultPreview,ifyouwishtosetthisrenditionasthedefault
previewrendition.
Note:Aformatmustberichmedia_enabledtoallowfortransformationwheneverit
isversioned.
ClickFinish.
9. IfyouselectedCreateaNewObject,theNewObjectDefinitionscreenappears.Enter
atitleofthenewobjectintheTitlefield.Performanyofthefollowingasrequired:
• SelecttheobjecttypefromtheObjectTypelistbox.
90
EMCDocumentumAdvancedDocumentTransformationServicesVersion6.5AdministrationGuide
Documents you may be interested
Documents you may be interested