Gunakake C++ kanggo entuk maksimum TIFF nganti PDF kacepetan konversi. Iki minangka solusi piranti lunak profesional lengkap kanggo ngimpor lan ngekspor TIFF, PDF, lan akeh format dokumen liyane nggunakake C++.
Kudu ngowahi TIFF gambar menyang PDF file programmatically? Kanthi Aspose.Words for C++ pangembang bisa gampang ngowahi TIFF dadi PDF format mung sawetara baris C++ kode.
Pemrosesan gambar modern C++ API nggawe PDF saka TIFF gambar kanthi kacepetan dhuwur. Nguji kualitas TIFF nganti PDF langsung ing browser. C++ kuat ngidini ngowahi TIFF gambar akeh format dokumen populer.
Conto ing ngisor iki nuduhake carane ngowahi TIFF dadi PDF ing C++.
Tindakake langkah sing gampang kanggo nguripake TIFF gambar menyang PDF format. Waca TIFF saka drive lokal, banjur simpen minangka PDF, nemtokake format dokumen sing dibutuhake dening extension PDF Kanggo loro TIFF maca lan PDF nulis sampeyan bisa nggunakake jeneng berkas qualified. Konten output PDF bakal padha karo gambar asli TIFF.
dotnet add package Aspose.Words.Cpp
Nyalin
using namespace Aspose::Words;
auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
builder->InsertImage(u"Input.tiff");
doc->Save(u"Output.pdf");
using namespace Aspose::Words;
auto doc = MakeObject<Document>(u"Input.tiff");
doc->Save(u"Output.pdf");
using namespace Aspose::Words;
auto doc = MakeObject<Document>(u"Input.tiff");
for (int page = 0; page < doc->get_PageCount(); page++)
{
auto extractedPage = doc->ExtractPages(page, 1);
extractedPage->Save(String::Format(u"Output_{0}.pdf", page + 1));
}
using namespace Aspose::Words;
auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
builder->InsertImage(u"Input.tiff");
doc->Save(u"Output.pdf");
using namespace Aspose::Words;
auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
auto shape = builder->InsertImage(u"Input.tiff");
shape->GetShapeRenderer()->Save(u"Output.pdf", MakeObject<ImageSaveOptions>(SaveFormat::Svg));
Ana telung opsi kanggo nginstal Aspose.Words for C++ kanggo lingkungan pangembang. Pilih salah siji sing cocog karo kabutuhan sampeyan lan tindakake pandhuan langkah demi langkah:
Sampeyan bisa nggunakake perpustakaan C++ iki kanggo nggawe piranti lunak ing Microsoft Windows, Linux lan macOS:
Yen sampeyan nggawe piranti lunak kanggo Linux utawa macOS, priksa informasi babagan katergantungan perpustakaan tambahan (fontconfig lan paket sumber terbuka mesa-glu) ing Dokumentasi Produk.
Sampeyan bisa ngowahi TIFF menyang akeh format file liyane: