byte array to pdf in c# : Creating bookmarks in pdf documents application Library utility html .net web page visual studio docu5787010-part1662

ConfigurationandAdministrationTasksandTips
Makethefollowingchangesinthelog4j.propertiesfile(locatedat%CTS_HOME%\config\log4j.
properties)toenableloggingforthePowerPoint2plug-in:
log4j.category.com.documentum.cts.plugin.powerpoint2=DEBUG, Powerpoint2Appender
log4j.appender.Powerpoint2Appender=org.apache.log4j.DailyRollingFileAppender
log4j.appender.Powerpoint2Appender.File=<CTS_HOME>\\logs\\Powerpoint2_log.txt
log4j.appender.Powerpoint2Appender.Append=true
log4j.appender.Powerpoint2Appender.layout=org.apache.log4j.PatternLayout
log4j.appender.Powerpoint2Appender.layout.ConversionPattern=%d{HH\:mm\:ss,SSS}
ndi %10r %5p p [%10t] ] %-20c{1} } - - %5x x %m%n
log4j.appender.Powerpoint2Appender.DatePattern=’.’yyyy-ww-dd
Afteryoumakethesechanges,restartContentTransformationServices.
ManagingPowerPointregistration
DuetocomplexprocessingduringPowerPointregistration,thetotaltimetakentocomplete
registrationcanbesubstantialdependingonthenumberofslidesinthepresentation.Thisprevents
otherPowerPointregistrationsfrombeingcompleted.Tomitigatethis,thePowerPointregistration
processissplitintotwosteps:ImageRenditiongenerationandSlidegeneration.Amongthesetwo
processes,theSlidegenerationprocesstakesthelongesttime.Tosplitthisregistrationprocess,you
musthaveatleasttwoMediaTransformationServicesmachinesconfiguredtothesamerepository.
PowerPointRegistration—>PrimaryMTS(ImageRenditiongeneration)—>Delegateto—>
SecondaryMTS(Slidegeneration).
ThePrimaryMediaTransformationServicesmachinegeneratesimagerenditionsanddelegates
slidegenerationtothesecondaryMediaTransformationServicesmachine.ThesecondaryMedia
TransformationServicesmachinegeneratesalltheslidesanduploadsthemtotherepository.
Followingarethechangesthatmustbemadetothepowerpoint1.xmltoenabletheprocess:
<PPT_IMPORT_PROCESSING MODE="STORYBOARDS_AND_SLIDES | | STORYBOARDS _ONLY |
SLIDES_ONLY" IMAGE_RENDITION_PROPERTIES="FALSE">
<!-- XML L below is s read only by y STORYBOARDS_ONLY mode MTS S -->
<CTS_DELEGATE_QUEUE QUEUE_NAME="dm_mediaserver_ppt_a1">
<MIN_SLIDES_COUNT>10</MIN_SLIDES_COUNT>
</CTS_DELEGATE_QUEUE>
<CTS_DELEGATE_QUEUE QUEUE_NAME="dm_mediaserver_ppt_a2">
<MIN_SLIDES_COUNT>10</MIN_SLIDES_COUNT>
</CTS_DELEGATE_QUEUE>
<CTS_DELEGATE_QUEUE QUEUE_NAME="dm_mediaserver_ppt_b">
<MIN_SLIDES_COUNT>100</MIN_SLIDES_COUNT>
</CTS_DELEGATE_QUEUE>
</PPT_IMPORT_PROCESSING>
....
.....
</PREPROCESS_SLIDE_RENDITIONS>
Note:Thisisonlyanexampleandcanbecustomizedasrequired.
TheMODEparametermustcontainoneofthefollowingvalues:
• STORYBOARDS_AND_SLIDES—Bydefaulttheattributevalue‘STORYBOARDS_AND_SLIDES’
meansthatprimaryMediaTransformationServicesprocessesthePowerPointregistration
completely,withoutdelegatingslidegenerationtoasecondaryMediaTransformationServices
EMCDocumentumContentTransformationServicesTransformationSuiteVersion7.2AdministrationGuide
101
Creating bookmarks in pdf documents - 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
creating bookmarks pdf files; export pdf bookmarks to text
Creating bookmarks in pdf documents - 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
adding bookmarks to a pdf; convert excel to pdf with bookmarks
ConfigurationandAdministrationTasksandTips
instance. ThismeansthattheMediaTransformationServicesbehavesasaregularMedia
TransformationServices.
• STORYBOARDS_ONLY—TheMediaTransformationServicesthatisconfiguredtosplitthe
PowerPointregistrationmusthavethisvalue. Thismodegeneratesimagerenditionsand
delegatesslidegenerationtoasecondaryMediaTransformationServicesinstance.Iftheminimum
slidesizeofthesecondaryMediaTransformationServicesismorethanthecurrentPowerPoint
filebeingprocessed,thenthePowerPointassetwillbeprocessedfullybyMediaTransformation
Services.Intheaboveexample,anyslidedeckbetweensizes1to9willbeprocessedfullybythe
primaryMediaTransformationServicesitselfwithoutbeingdelegatedtothesecondaryMedia
TransformationServices.
• SLIDES_ONLY—AllthesecondaryMediaTransformationServicesthathandleslidegeneration
musthavethisvalue.Thismodegeneratesalltheslidesanduploadsthemtotherepository.
IMAGE_RENDITION_PROPERTIESturnsoffupdatingalltheslideimagerenditionswithheight,
width,andformatvalues. Thissavesconsiderableprocessingtime. Itisrecommendedtoalways
retainthevalueas"False”.
The<CTS_DELEGATE_QUEUE>elementslistthesecondaryMediaTransformationServicesthatcan
beconfiguredwiththespecificqueuenamesandslidesizesthatitprocesses.Inthesampleabove,
threesecondaryMediaTransformationServicesinstancesareconfiguredtohandlePowerPointfiles
ofdifferentsizes. TheQUEUE_NAMEshouldbeuniqueandeachqueueshouldhaveaspecific
secondaryMediaTransformationServicesconfiguredagainstit.
Inthisexample,onlyslideswithdecksize10orabovearedelegatedtothesecondaryMedia
TransformationServicesandsmallersizedPowerPointfiles(1-9slides)areprocessedbytheMedia
TransformationServicesthatismarkedasSTORYBOARDS_ONLY(thatis,theprimaryMedia
TransformationServices).IfyouneedalltheslidegenerationtobedelegatedtothesecondaryMedia
TransformationServicesthenatleastoneMediaTransformationServicesinstanceshouldbemarked
withMIN_SLIDES_COUNT=1.
Followingaresomesampleloadbalancingscenariosbasedontheinputslidesizesandsample
configurationprovidedabove:
SlideSize
10
20
21
9
125
155
300
Delegated
toMTS
a1
a2
a1
Primary
MTS
b
b
b
SlideSize
125
5
75
146
65
210
400
Delegated
toMTS
b
Primary
MTS
a1
b
a2
b
b
DifferentsecondaryMediaTransformationServicesthathavethesameMIN_SLIDES_COUNTare
delegatedbasedinaroundrobinmannertodistributetheloadevenly.Thequeuenamesmustbe
uniquetoensurethatregistrationtasksarepickedupbyspecificMediaTransformationServices
configuredtothosePowerPointsizes.
Note: TodisablethePowerPointfilesplitprocessing,specifyMODE="STORYBOARDS_AND_
SLIDES”.
102
EMCDocumentumContentTransformationServicesTransformationSuiteVersion7.2AdministrationGuide
C# Create PDF Library SDK to convert PDF from other file formats
Gratis control for creating PDF from multiple image formats PDF with a blank page, bookmarks, links, signatures Load PDF from existing documents and image in
how to add bookmarks on pdf; creating bookmarks in a pdf document
VB.NET Create PDF Library SDK to convert PDF from other file
Gratis control for creating PDF from multiple image formats PDF with a blank page, bookmarks, links, signatures Load PDF from existing documents and image in
bookmarks in pdf from word; add bookmarks pdf
ConfigurationandAdministrationTasksandTips
ConfiguringaprimaryMediaTransformationServicesinstance
1. SpecifytheattributeasMODE="STORYBOARDS_ONLY"toenablePowerPointstoryboard
processingandsplittingtheprocesstothesecondaryMediaTransformationServices.
2. ListthesecondaryMediaTransformationServicesundertheCTS_DELEGATE_QUEUEnodes.
3. CreateallusersspecifiedintheattributeQUEUE_NAME(forexample,dm_mediaserver_ppt_a1)
withthesamevaluesasthedefaultuser"dm_mediaserver”usingDocumentumAdministrator.
Ifthisisnotdone,queuegenerationwillfailwithanexception.
4. RetainIMAGE_RENDITION_PROPERTIES="FALSE"toimprovetheprocessingtimeasrendition
imageattributesofwidthandheightarenotupdated,thussavingconsiderabletime.
ConfiguringasecondaryMediaTransformationServicesinstance
Note:ThisprocessrequiresoneMediaTransformationServicesforeachCTS_DELEGATE_QUEUE
node. TheQUEUE_NAMEshouldbeuniquetoeachsecondaryMediaTransformationServices
instance.
1. SpecifytheattributeasMODE="SLIDES_ONLY".
2. RetainIMAGE_RENDITION_PROPERTIES="FALSE"toimprovetheprocessingtimeasrendition
imageattributesofwidthandheightarenotupdated,thussavingconsiderabletime.
3. EnsurethatyoumodifytheCTSServerService.xmlfilewiththequeuenameconfiguredin
theCTS_DELEGATE_QUEUEnode.
Forexample:Replacedm_mediaserverwithdm_mediaserver_ppt_a1
<QueueProcessorContext>
<CTSServer AttributeName="queueItemName" " AttributeValue="dm_mediaserver_ppt_a1"/>
ThisindicatesthatthisMediaTransformationServiceswouldnotprocessanyotherContent
TransformationServicesjobsbutwouldremaindedicatedtoprocessingPowerPointslides.
Remove<QueueProcessorContext>forQueueItemName‘dm_autorender_win31’.
Note:RestartContentTransformationServicestoimplementanychangesintheXMLfiles.
Selectingacolorspace
Toselectaspecificcolorspace,edittheregister_legacy.xmlsystemprofileandaddthe
followinginnertokentoallprofilesthatgeneratethumbnailssuchasthumbnail,autoGenProxy,
autoGenPreviewProxy,andsoon.
<!-- if RGB B output images s are e needed d -->
<InnerTokenMapping Literal="true" " InnerProfileToken="doc_token_colorSpace"
LocalProfileToken="RGB"/>
or
<!-- if CMYK K output t images are needed -->
<InnerTokenMapping Literal="true" " InnerProfileToken="doc_token_colorSpace"
LocalProfileToken="CMYK"/>
EMCDocumentumContentTransformationServicesTransformationSuiteVersion7.2AdministrationGuide
103
XDoc.Word for .NET, Advanced .NET Word Processing Features
Viewing, editing, converting, processing, creating, annotating and zooming & rotation; Outlines, bookmarks, & thumbnail Create Word from PDF; Create Word from
display bookmarks in pdf; auto bookmark pdf
PDF Image Viewer| What is PDF
such as text extraction, hyperlinks, bookmarks and metadata as version among a suite of PDF-based standards to develop specifications for creating, viewing, and
excel print to pdf with bookmarks; add bookmarks to pdf file
ConfigurationandAdministrationTasksandTips
Thiswillensurethattheoutputimagecorrespondstothespecifiedcolorspace.
Generatingthebackgroundcolorforthumbnailsfrom
transparentPDFfiles
WhenyouopensomePDFsinAcrobatReader,theymayappearasawhitepage. However,on
enablingthe"PageDisplay/Showtransparencygrid"optioninthePreferencesmenu,youcanview
thecontent. Out-of-the-box,theMediaTransformationServicesserverreplacesthetransparent
layerswithwhite.Hence,youmustconfigurethistoanothercolour(forexample,lightgray)so
thattheimagescanbeseen.
TogeneratethepreferredbackgroundcolorforPDFfiles,dothefollowing:
Note:ThissolutionmaynotworkforalltypesofPDFfilesandisathirdpartylimitation.
1. Checkoutthethumbnail_pdfstoryboard.xmlsystemprofileandensurethatImage3is
thefirstplug-ininthelist.
2. Checkoutthethumbnail_pdf_imw.xmlcommandline(heavyweight)profileandmodify
thefollowing:
Add:
<PROP name="bgColor" " type="string" " token="doc_token_bgColor">#FFFFFF</PROP>
Change:
<Options>-limit memory
To:
<Options>-colorspace doc_token_colorSpace e doc_token_sourceFile e -limit t memory
Change:
-quality 80
To:
-flatten -quality 80
Here,#FFFFFFiswhite,whichcanbechangedtoanycolorofchoice. Navigatetothe
Imagemagickwebsitetocheckthecoloroptionsavailable.
IfPDFtransparencyisrequiredinthePreviewproxyimages,thenmakesimilarchangestothe
followingfiles:
• SystemProfiles/autoGenPreviewProxy_pdfstoryboardandCommandLineFiles/autoGenProxy_
pdf_imw.xml
• SystemProfiles/autoGenProxy_pdfstoryboardandCommandLineFiles/autoGenProxy_pdf_
imw.xml
IfPDFtransparencyisrequiredinPDFstoryboardsforthebackgroundcolorofchoice,dothe
following:
1. Checkoutthestoryboard_pdfstoryboard.xmlsystemprofileandensurethatImage3is
thefirstplug-ininthelist.
2. Checkoutthestoryboard_pdf_imw.xmlcommandline(heavyweight)profileandmodify
thefollowing:
104
EMCDocumentumContentTransformationServicesTransformationSuiteVersion7.2AdministrationGuide
How to C#: Basic SDK Concept of XDoc.PDF for .NET
annotation features can be integrated into your C# project, such as annotation creating, deleting, modifying This class describes bookmarks in a PDF document
excel hyperlink to pdf bookmark; create bookmarks in pdf reader
VB.NET PDF: Basic SDK Concept of XDoc.PDF
features can be integrated into your VB.NET project, such as annotation creating, deleting, modifying This class describes bookmarks in a PDF document.
create pdf bookmarks from word; adding bookmarks in pdf
ConfigurationandAdministrationTasksandTips
Change:
<Options>-limit memory
To:
<Options>-colorspacedoc_token_colorSpacedoc_token_sourceFile-limitmemory
Change:
-quality 80
To:
-bordercolor #FFFFFF F -border 0 0 -alpha a off f -quality y 80
Here,#FFFFFFiswhite,whichcanbechangedtoanycolorofchoice. Navigatetothe
Imagemagickwebsitetocheckthecoloroptionsavailable.
ImprovingthequalityofJPEGimagefilesconverted
fromSVGformat
ThequalityoftheSVGfileconvertedtoJPEGusingtheresize_preserveRatioprofileis80%by
default.Toincreasethequalityto100%,updatethevalueof"doc_token_quality"intheTransformTo
andResizeprofilesasfollows:
InnerTokenMapping LocalProfileToken="100" InnerProfileToken=
"doc_token_quality" literal="true"
ConfiguringtheImage3plug-in
TheImage3plug-inhassomeextraoptions—overandabovethestandardconfigurationoptionsfor
plug-ins—thatcanbeconfiguredthroughtheplug-in’sconfigurationfile. Thefollowingsections
detailtheseoptionsandhowtheycanbeconfigured:
• ICCprofiles,page105
• COMServerparameters,page106
• Pixelcacheparameters,page106
• Timeoutconfiguration,page107
ICCprofiles
TheICCprofilessectionoftheconfigurationfileholdsalistofindividualICCprofiles.Specifyone
ICCprofilepercolorspace.AnICCprofileisspecifiedinanICC_PROFILE_INFOXMLtag:
<ICC_PROFILE_INFO profile_token="doc_token_cmyk_profile" " colorspace="CMYK">
C:\Documentum\CTS\Image3\required\color\USWebCoatedSWOP.icc
</ICC_PROFILE_INFO>
EMCDocumentumContentTransformationServicesTransformationSuiteVersion7.2AdministrationGuide
105
How to C#: Basic SDK Concept of XDoc.PowerPoint
Conversely, conversion from PDF to PowerPoint (.PPTX C# project, such as annotation creating, deleting, modifying This class describes bookmarks in a PowerPoint
adding bookmarks to pdf; copy pdf bookmarks to another pdf
How to C#: Basic SDK Concept of XDoc.Word
Conversely, conversion from PDF to Word (.docx) is C# project, such as annotation creating, deleting, modifying This class describes bookmarks in a Word document
copy pdf bookmarks; creating bookmarks pdf
ConfigurationandAdministrationTasksandTips
ThevalueoftheXMLelementisthefullyqualifiedpathtotheICCprofile. Theattributesare
asfollows:
• profile_token–thetokenintheprofilethatwillbesubstitutedwiththepathoftheICCprofile.
• colorspace–thecolorspaceofthisprofile.
TwoICCprofileswillbeusedinconjunctiontoperformcolorconversionswhendoing
transformations.
TheImage3plug-inisconfiguredout-of-the-boxwithaCMYKandRGBprofile,whichwillbeusedto
convertCMYKimagestoRGBwhencreatingthumbnailsandlow-resolutionJPEGs.
Note: ICCversion4profilesarenotsupported.
COMServerparameters
TherearetwoconfigurableparametersrelatingtotheCOMServer:
• Processname
ThisisthenameoftheCOMServerthatperformstheworkbasedontheImageMagicklibrary.It
shouldalwaysbeIMW_COMServer.exe.
• Poolsize
ThevalueofthisconfigurationparameteristhemaximumnumberofImageMagickCOMservers
thatcanberunningatonetime.
Pixelcacheparameters
AnumberofparameterscanbeconfiguredforthepixelcacheintheImage3plug-in.
Table6. PixelcacheparametersforImage3plug-in
Parametername
Function
XMLattribute
Memorysize
Setsthemaximumamount
ofmemoryinmegabytesto
allocateforthepixelcachefrom
theheap. Whenthislimitis
exceeded,theimagepixelsare
cachedtomemory-mapped
disk.
doc_token_limit_memory
106
EMCDocumentumContentTransformationServicesTransformationSuiteVersion7.2AdministrationGuide
How to C#: Basic SDK Concept of XDoc.Excel
Conversely, conversion from PDF to Excel (.XLSX) is also C# project, such as annotation creating, deleting, modifying This class describes bookmarks in a Excel
pdf create bookmarks; split pdf by bookmark
ConfigurationandAdministrationTasksandTips
Parametername
Function
XMLattribute
Memorymapsize
Setsthemaximumamountof
memorymapinmegabytes
toallocateforthepixelcache.
Whenthislimitisexceeded,the
imagepixelsarecachedtodisk.
doc_token_limit_map
Areasize
Setsthemaximumwidth
xheightofanimagethat
canresideinthepixelcache
memory. Imagesthatexceed
thearealimitarecachedto
disk.
doc_token_limit_area
Timeoutconfiguration
IfyourinstallationofContentTransformationServiceswillbeprocessinglargeimages,configurethe
timeoutvalueintheimage3.xmlconfigurationfile.ThisvaluewilldeterminehowlongContent
TransformationServiceswillmaintainanimageinitsprocessesbeforecallingatimeoutandcausing
theprocessingtofail.
ContentTransformationServicesrequiresatleast2GBoffreememorytoprocesslargeimages.Ifyou
expecttoprocesslargedimensionedimages,itmaybenecessarytoraisethedefaulttimeoutvalue,
takingyourcomputer’scapabilitiesintoconsideration.
Thisvaluecanbeconfiguredintheimage3.xmlfile:
• application_monitor_timeout
Thisisthenumberofsecondstowaitforanimagefiletoprocessbeforeterminatingitandlogging
thetimeout. Withthedefaultof30minutes,thisvalueappearsasfollows:
<APPLICATION_MONITOR_TIMEOUT>1800</APPLICATION_MONITOR_TIMEOUT>
Thetimeoutvalueshouldbebasedonthehardwareonthemachineinquestion,andthenumber
ofandsizeoftheimages.Ifyouareexperiencingtimeoutswiththisdefaultvalue,increaseitin
theconfigfile.
Configuration tasks specific toAudio/Video
TransformationServices
Thissectioncontainsproceduresforthefollowingaudioandvideo-basedconfigurationtasksthatare
performedwithAudio/VideoTransformationServices.
• ConfiguringContentServerrequiredforlargevideofiles,page108
• Creatingdifferentdefaultpreviewformatsonimportofvideofiles,page108
EMCDocumentumContentTransformationServicesTransformationSuiteVersion7.2AdministrationGuide
107
ConfigurationandAdministrationTasksandTips
ConfiguringContentServerrequiredforlargevideo
files
Whenimportingavideofilelargerthan2.5GB,therenditions,thumbnail,andstoryboardarenot
created.TheContentServermustbeconfiguredtoallowprocessingoffileslargerthan2.5GB.
ToconfigureContentServerfortransformingvideofileslargerthan2.5GB:
1. Locatethefileserver.iniatthefollowinglocation:
• OnWindows,%DOCUMENTUM%\dba\config\<repository>
• Onnon-Windows,$DOCUMENTUM/dba/config/<repository>
2. Openthefileinatexteditor.
3. Locatethesection[SERVER_STARTUP].
4. Addtheclient_session_timekeyandavaluefortimeout_in_minutes. . Thevaluefor
timeout_in_minutesshouldbeatleasttwiceyourexpectedmaximumvideoduration,depending
onthemachine’sperformance.
Forexample,foralargestexpectedvideosizeof2GB,setitto:
client_session_timeout = 120
5. RestarttheContentServerandContentTransformationServicesproduct.
Creatingdifferentdefaultpreviewformatsonimport
ofvideofiles
Outofthebox,ContentTransformationServicescreatesFlash9renditionsforthedefaultpreview
renditionofvideofiles.ThiscanbechangedtootherformatslikeWMV,MPEG4,QuickTime,and
WebM.Someprofilechangesarerequiredtosetthedefaultpreviewrenditiontoanotherformat.
Forexample,toconfigureContentTransformationServicestogeneratetheWMVformatasthe
defaultpreview,insteadofFlash9,thefollowingprofilechangesmustbemade:
1. Checkoutthevideo_registrationprofilefromthefollowingfolderintherepository:
\System\MediaServer\SystemProfiles.
2. Uncommenttheto_wmv"InnerProfile”snippet. . ThiswillenabletheWMVrenditiontobe
generatedoutofthebox.
3. Movetheentire"default_proxy_format”tagfromtheto_flash9sectiontotheto_wmvsection
andupdatethefollowingformat:
<InnerTokenMapping LocalProfileToken="wmv" InnerProfileToken=
"default_proxy_format" Literal="true"/>
Ensurethatthe"default_proxy_format”tagisnotpresentformorethanonerendition.
4. Checkinthevideo_registrationprofile.
5. RestarttheContentTransformationServicesproduct.
Note: IfContentTransformationServicesisconfiguredforthexCPclient,thesamechangewill
havetobemadeinthevideo_registration_xcpprofile,insteadofthevideo_registrationprofile.The
108
EMCDocumentumContentTransformationServicesTransformationSuiteVersion7.2AdministrationGuide
ConfigurationandAdministrationTasksandTips
video_registration_xcpprofiledoesnothavethedefault_proxy_formattagpresentforanyrendition
bydefault,butitcanbeaddedafreshforanyofthetwoexistingOOTBrenditions(MPEG4orWebM).
EMCDocumentumContentTransformationServicesTransformationSuiteVersion7.2AdministrationGuide
109
ConfigurationandAdministrationTasksandTips
110
EMCDocumentumContentTransformationServicesTransformationSuiteVersion7.2AdministrationGuide
Documents you may be interested
Documents you may be interested