PNG JPG BMP TIFF OTP
Aspose.Slides  for C++

Slå samman OTP-filer med C++

OTP-dokumentsammanslagning med C++ API:er på serversidan.

Hur man sammanfogar OTP-fil med C++

För att slå samman OTP-fil kommer vi att använda

Aspose.Slides för C++

API som är ett funktionsrikt, kraftfullt och lättanvänt API för dokumentsammanslagningar för C++-plattformen. Du kan ladda ner den senaste versionen direkt, bara öppna

NuGet

pakethanterare, sök efter Aspose.Slides.Cpp och installera. Du kan också använda följande kommando från Package Manager Console.

Kommando


PM> Install-Package Aspose.Slides.Cpp

Steg för att slå samman OTP-filer i C++

Ett grundläggande dokument som sammanfogas och sammanfogas med Aspose.Slides for C++ API:er kan göras med bara några rader kod.

  1. Ladda båda OTP-filerna.

  2. Använd metoden get_Slides() för att iterera genom varje bild.

  3. Använd AddClone-funktionen för att slå samman med önskad fil.

  4. Använd metoden Save() för att spara på angiven sökväg

Systemkrav

Aspose.Slides för C++ stöder på alla större plattformar och operativsystem. Se till att du har följande förutsättningar.

  • Microsoft Windows eller ett kompatibelt operativsystem med C++ Runtime Environment för Windows 32 bit, Windows 64 bit och Linux 64 bit.
  • Aspose.Slides för C++ DLL som refereras till i ditt projekt.
 

Slå samman OTP-filer - C++

// The path to the documents directory.
const String sourceFilePath1 = u"SourceFile2.otp";
const String sourceFilePath2 = u"SourceFile3.otp";
const String outputFilePath = u"mergedOutput.otp";

// Instantiate Presentation class
SharedPtr<Presentation> presentation1 = MakeObject<Presentation>(sourceFilePath1);
SharedPtr<Presentation> presentation2 = MakeObject<Presentation>(sourceFilePath2);

for (SharedPtr<ISlide> slide : presentation2->get_Slides()){
	// Merge from source to destination 
	presentation1->get_Slides()->AddClone(slide);
}

// Save the presentation
presentation1->Save(outputFilePath, SaveFormat::Otp);  
 
  • Slå samman PDF-filer online

    Hur man sammanfogar PDF i Python

    Om Aspose.Slides för C++ API

    Aspose.Slides API kan användas för att läsa, skriva, manipulera och konvertera Microsoft PowerPoint-dokument till PDF, XPS, HTML, TIFF, ODP och olika andra format. Man kan skapa nya filer från grunden och spara dem i relevanta format som stöds. Aspose.Slides är ett fristående API för att skapa, analysera eller manipulera presentationer, bilder och element och det är inte beroende av någon programvara som Microsoft eller OpenOffice.

    Online OTP Merger Live Demos

    Merge OTP documents right now by visiting our Live Demos website . The live demo has the following benefits

      No need to download Aspose API.
      No need to write any code.
      Just upload your OTP files.
      It will be merged and concatenated instantly.

    OTP Vad är OTP filformatet

    Files with .OTP extension represent presentation template files created by applications in OASIS OpenDocument standard format. The contents of such a file include presentation information in the form of slides with text, images, shapes, multimedia content, transition effects and other slide elements. These template files are used for creating new presentations quickly based on the styling information stored in the template itself. OTP files can be created and saved with several different applications such as Impress that comes with OpenOffice suite and Microsoft PowerPoint. The OTP file format is similar to Microsoft PowerPoint template files .POT and .POTX.

    Läs mera

    Andra sammanslagningsformat som stöds

    Med C++ kan man också slå ihop många andra filformat inklusive ..

    ODP (OpenDocument presentationsformat)
    POT (Microsoft PowerPoint-mallfiler)
    POTM (Microsoft PowerPoint-mallfil)
    POTX (Presentation av Microsoft PowerPoint-mall)
    PPS (PowerPoint-bildspel)
    PPSM (Makroaktiverat bildspel)
    PPSX (PowerPoint-bildspel)
    PPT (Microsoft PowerPoint 97-2003)
    PPTM (Makroaktiverad presentationsfil)
    PPTX (Öppna XML-presentationsformat)