public static void Main(string[] args) { //// *********************************************************** //// GroupDocs.Comparison Cloud API Examples //// *********************************************************** //TODO: Get your Client Id and Client secret at https://dashboard.groupdocs.cloud (free registration is required). Constants.MyClientId = "XXXX-XXXX-XXXX-XXXX"; Constants.MyClientSecret = "XXXXXXXXXXXXXXXX"; Constants.MyStorage = "First Storage"; // Uploading sample test files from local disk to cloud storage Constants.UploadSampleTestFiles(); #region Basic usage GetSupportedFormats.Run(); GetDocumentInformation.Run(); CompareDocuments.Run(); ComparePdfDocuments.Run(); #endregion #region Advanced usage CompareProtectedDocuments.Run(); AcceptOrRejectChanges.Run(); CompareMultipleDocumentsOptions.Run(); CompareMultipleProtectedDocuments.Run(); CompareSensitivity.Run(); CustomizeChangesStyles.Run(); GetListOfChanges.Run(); GetChangesCoordinates.Run(); SetPassword.Run(); SetMetadata.Run(); GetListOfRevisions.Run(); ApplyRevisions.Run(); AcceptAllRevisions.Run(); RejectAllRevisions.Run(); #endregion Console.WriteLine("Completed!"); Console.ReadKey(); }
static void Main() { Console.WriteLine("Open RunExamples.cs."); Console.WriteLine("Please uncomment the example that you want to run in the Main() method."); Console.WriteLine("====================================================="); //NOTE: Please uncomment the example that you want to run. #region Quick Start SetLicenseFromFile.Run(); //SetLicenseFromStream.Run(); //SetMeteredLicense.Run(); HelloWorld.Run(); #endregion // Quick Start #region Basic Usage #region Import Documents ImportDocumentToPdf.Run(); ImportDocumentToWordProcessing.Run(); ImportDocumentToSpreadsheet.Run(); ImportDocumentToPresentation.Run(); ImportDocumentToDiagram.Run(); #endregion #region Get all supported file types GetSupportedFileTypes.Run(); #endregion #region Get info for the selected document GetDocumentInformation.Run(); #endregion #region Generate preview for the selected document GenerateDocumentPagesPreview.Run(); #endregion #region Join files JoinMultipleDocuments.Run(); JoinPagesFromVariousDocuments.Run(); #endregion #region Merge files MergeCsv.Run(); MergeDoc.Run(); MergeDocm.Run(); MergeDocx.Run(); MergeDot.Run(); MergeDotm.Run(); MergeDotx.Run(); //MergeEpub.Run(); MergeHtml.Run(); MergeMht.Run(); MergeMhtml.Run(); MergeOdp.Run(); MergeOds.Run(); MergeOdt.Run(); MergeOne.Run(); MergeOtp.Run(); MergeOtt.Run(); MergePdf.Run(); MergePps.Run(); MergePpsx.Run(); MergePpt.Run(); MergePptx.Run(); MergeRtf.Run(); MergeTex.Run(); MergeTsv.Run(); MergeTxt.Run(); MergeVdx.Run(); MergeVsdm.Run(); MergeVsdx.Run(); MergeVssm.Run(); MergeVssx.Run(); MergeVstm.Run(); MergeVstx.Run(); MergeVsx.Run(); MergeVtx.Run(); MergeXlam.Run(); MergeXls.Run(); MergeXlsb.Run(); MergeXlsm.Run(); MergeXlsx.Run(); MergeXlt.Run(); MergeXltm.Run(); MergeXltx.Run(); MergeXps.Run(); #endregion #region Cross-Join files if (Constants.IsLicensed) { CrossJoinMultipleDocuments.Run(); CrossJoinPagesFromVariousDocuments.Run(); } #endregion #region Split document SplitToMultiPageDocuments.Run(); SplitToSinglePages.Run(); SplitToSinglePagesByRange.Run(); SplitToSinglePagesByRangeWithFilter.Run(); #endregion #region Split text file SplitToLineRanges.Run(); SplitToSeparateLines.Run(); #endregion #region Extract document pages ExtractPagesByNumbers.Run(); ExtractPagesByRange.Run(); #endregion #region Change orientation of the specific document pages ChangePageOrientation.Run(); #endregion #region Rotate document pages RotatePages.Run(); #endregion #region Swap document pages SwapPages.Run(); #endregion #region Remove document pages // TODO: Implement for some other format than One (which is not supported currently under NET Standard) //RemovePages.Run(); #endregion #region Move page to a new position within document MovePage.Run(); #endregion #region Security - check, add, update, remove document password AddDocumentPassword.Run(); UpdateDocumentPassword.Run(); CheckDocumentPasswordProtection.Run(); RemoveDocumentPassword.Run(); #endregion // Security #endregion // Basic usage #region Advanced Usage #region Loading LoadDocumentFromLocalDisk.Run(); LoadDocumentFromStream.Run(); //LoadDocumentFromUrl.Run(); //LoadPasswordProtectedDocument.Run(); #endregion // Loading #endregion // Advanced Usage Console.WriteLine(); Console.WriteLine("====================================================="); Console.WriteLine("All done."); Console.ReadKey(); }
public static void Main(string[] args) { //// *********************************************************** //// GroupDocs.Conversion Cloud API Examples //// *********************************************************** //TODO: Get your ClientId and ClientSecret at https://dashboard.groupdocs.cloud (free registration is required). Constants.MyClientId = "XXXX-XXXX-XXXX-XXXX"; Constants.MyClientSecret = "XXXXXXXXXXXXXXXX"; // Uploading sample test files from local disk to cloud storage Constants.UploadSampleTestFiles(); #region Info API Examples GetSupportedConversions.Run(); GetDocumentInformation.Run(); #endregion #region License API Examples GetLicenseConsumption.Run(); #endregion #region Document conversion examples with conversion options ConvertToPdf.Run(); ConvertToPdfResponseBody.Run(); ConvertToWordProcessing.Run(); ConvertToHtml.Run(); ConvertToImage.Run(); ConvertToPresentation.Run(); ConvertToSpreadsheet.Run(); ConvertToPdfDirect.Run(); ConvertToPdfDirectOptions.Run(); #endregion #region Document conversion examples with common options AddWatermark.Run(); ConvertConsecutivePages.Run(); ConvertSpecificPages.Run(); ConvertUsingCustomFont.Run(); #endregion #region Document conversion examples with loading options ConvertCadAndSpecifyLoadOptions.Run(); ConvertCsvByConvertingDateTimeAndNumericData.Run(); ConvertCsvBySpecifyingDelimiter.Run(); ConvertCsvBySpecifyingEncoding.Run(); ConvertEmailWithAlteringFieldsVisibility.Run(); ConvertEmailWithAttachments.Run(); ConvertEmailWithTimezoneOffset.Run(); ConvertEmailWithFieldLabels.Run(); ConvertEmailWithOriginalDate.Run(); ConvertHtmlWithPageNumbering.Run(); ConvertNoteBySpecifyingFontSubstitution.Run(); ConvertPdfAndFlattenAllFields.Run(); ConvertPdfAndHideAnnotations.Run(); ConvertPdfAndRemoveEmbeddedFiles.Run(); ConvertPresentationByHidingComments.Run(); ConvertPresentationBySpecifyingFontSubstitution.Run(); ConvertPresentationWithHiddenSlidesIncluded.Run(); ConvertSpreadsheetAndHideComments.Run(); ConvertSpreadsheetByShowingGridLines.Run(); ConvertSpreadsheetBySkippingEmptyRowsAndColumns.Run(); ConvertSpreadsheetBySpecifyingFontsubstitution.Run(); ConvertSpreadsheetBySpecifyingRange.Run(); ConvertSpreadsheetWithHiddenSheetsIncluded.Run(); ConvertTxtByControllingLeadingSpacesBehavior.Run(); ConvertTxtByControllingTrailingSpacesBehavior.Run(); ConvertTxtBySpecifyingEncoding.Run(); ConvertWordProcessingByHidingComments.Run(); ConvertWordProcessingByHidingTrackedChanges.Run(); ConvertWordProcessingBySpecifyingFontSubstitution.Run(); #endregion Console.WriteLine("Completed!"); Console.ReadKey(); }
public static void Main(string[] args) { //// *********************************************************** //// GroupDocs.Viewer Cloud API Examples //// *********************************************************** //TODO: Get your Client Id and Client Secret at https://dashboard.groupdocs.cloud (free registration is required). Constants.MyClientId = "XXXX-XXXX-XXXX-XXXX"; Constants.MyClientSecret = "XXXXXXXXXXXXXXXX"; Constants.MyStorage = "First Storage"; // Uploading sample test files from local disk to cloud storage Constants.UploadSampleTestFiles(); #region Basic usage GetSupportedFormats.Run(); GetDocumentInformation.Run(); GetAttachments.Run(); HtmlViewerExcludeFonts.Run(); HtmlViewerMinifyHtml.Run(); HtmlViewerResponsiveLayout.Run(); ImageViewerAddTextOverlay.Run(); ImageViewerAdjustImageSize.Run(); ImageViewerAdjustJpgQuality.Run(); ImageViewerGetTextCoordinates.Run(); PdfViewerAdjustJpgQuality.Run(); PdfViewerProtectPdf.Run(); #endregion #region AdvancedUsage ViewProtectedDocument.Run(); SpecifyEncoding.Run(); RenderWithCustomFonts.Run(); AddWatermark.Run(); RenderComments.Run(); RenderNotes.Run(); RenderHiddenPages.Run(); RenderConsecutivePages.Run(); RenderSelectedPages.Run(); ReplaceMissingFont.Run(); ReorderPages.Run(); FlipRotatePages.Run(); GetInfoForArchiveFile.Run(); RenderArchiveFolder.Run(); AdjustOutputImageSize.Run(); GetInfoForCadDrawing.Run(); RenderAllLayouts.Run(); RenderLayers.Run(); RenderSingleLayout.Run(); SplitIntoTiles.Run(); AdjustPageSize.Run(); RenameEmailFields.Run(); GetInfoForProjectFile.Run(); AdjustTimeUnit.Run(); RenderTimeInterval.Run(); GetInfoForOutlookDataFile.Run(); LimitCountOfItemsToRender.Run(); RenderFolder.Run(); FilterMessages.Run(); AdjustImageQuality.Run(); DisableCharsGrouping.Run(); EnableFontHinting.Run(); EnableLayeredRendering.Run(); GetInfoForPdfFile.Run(); RenderOriginalPageSize.Run(); AdjustTextOverflowInCells.Run(); RenderSpreadsheetWithGridLines.Run(); RenderHiddenColumnsAndRows.Run(); RenderPrintAreas.Run(); SkipRenderingOfEmptyColumns.Run(); SkipRenderingOfEmptyRows.Run(); SplitWorksheetsIntoPages.Run(); RenderTrackedChanges.Run(); SpecifyMaxCharsAndRows.Run(); RenderVisioDocumentFigures.Run(); FilterMailStorage.Run(); HtmlViewerLimitImageSize.Run(); HtmlViewerOptimizeForPrinting.Run(); #endregion Console.WriteLine("Completed!"); Console.ReadKey(); }