aspose-com-kb
source link: https://gist.github.com/aspose-com-kb
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
aspose-com-kb’s gists · GitHub
Instantly share code, notes, and snippets.
Sort: Recently created
#include <iostream> #include <stdio.h> #include <fcntl.h> #include <io.h> #include <aspose_ocr.h>
void ExtractTextFromImage() {
const std::string licStr = "LicenseFilePath"; aspose::ocr::set_license(licStr.c_str());
import com.aspose.imaging.License; import com.aspose.imaging.Color; import com.aspose.imaging.Image; import com.aspose.imaging.ImageOptionsBase; import com.aspose.imaging.SmoothingMode; import com.aspose.imaging.fileformats.cdr.CdrImage; import com.aspose.imaging.imageoptions.MultiPageOptions; import com.aspose.imaging.imageoptions.PsdOptions; import com.aspose.imaging.imageoptions.VectorRasterizationOptions;
#pragma once
using namespace System; using namespace Aspose::Font;
#include <iostream>
void GetFontMetricsInfo() { //Font file name with full path
import com.aspose.imaging.License; import com.aspose.imaging.PdfComplianceVersion; import com.aspose.imaging.ResolutionSetting; import com.aspose.imaging.fileformats.pdf.PdfDocumentInfo; import com.aspose.imaging.imageoptions.PdfOptions; import com.aspose.imaging.Image;
public class ConvertOTGToPDFInJava {
public static void main(String[] args) {//main function for the ConvertOTGToPDFInJava class
import com.aspose.imaging.License; import com.aspose.imaging.Image; import com.aspose.imaging.ResolutionSetting; import com.aspose.imaging.imageoptions.PngOptions;
public class ConvertBitmapToPNGInJava {
public static void main(String[] args) {//main function for the class ConvertBMPToPngUsingJava // Load the Aspose.Imaging license to remove trial version message in the output PNG Image License ImagingLicense = new License();
#pragma once
using namespace System; using namespace Aspose::Pdf; using namespace Aspose::Pub;
#include <iostream>
void PUBtoPNG() {
import com.aspose.pub.IPubParser; import com.aspose.pub.PubFactory; import com.aspose.pub.IPdfConverter; import com.aspose.pdf.Page; import com.aspose.pdf.PageSize; import com.aspose.pdf.devices.PngDevice; import com.aspose.pdf.facades.PdfFileInfo;
public class ConvertPUBtoPNGUsingJava { public static void main(String[] args) throws Exception { //main() function for ConvertPUBtoPNGUsingJava class
#pragma once
using namespace System; using namespace Aspose::Page;
#include <iostream>
void ConvertEPStoTIFF() { // Set the license for Aspose.Page for CPP to Convert EPS File
import com.aspose.cells.License; import com.aspose.pdf.facades.Form;
public class HowToFlattenPDFFormFieldsInJava { public static void main(String[] args) { //main function for HowToFlattenPDFFormFieldsInJava class // Initialize a license to remove trial version watermark in the output flattened PDF file License license = new License(); license.setLicense("Aspose.Cells.lic");
import com.aspose.pdf.License; import com.aspose.pdf.Document; import com.aspose.pdf.Page; import com.aspose.pdf.TextAbsorber; import com.aspose.pdf.XImage;
public class HowToReadPDFFileInJava {
public static void main(String[] args) throws Exception {//main() function for HowToReadPDFFileInJava
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK