Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Aspose.Page for Python via .NET makes your Python Apps instantly support to work with XPS, EPS/PS documents without installing any 3rd party software. It helps developers create/edit XPS documents while working with canvas, paths, and glyph elements. Utilize a set of primitives, such as, elliptical arcs, straights lines, Bezier curve segments to create vector graphics. Add default print tickets and preserve them in the XPS file. Link print ticket objects among job/document/page.
Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License
Aspose.Page for Python via .NET is an on premise Python API that allows you to add PS/EPS and XPS manipulation features to your own applications. The API also supports converting XPS, EPS & PS documents to other formats.
Developers can perform various operations on PS and XPS documents, such as, add text, images, pages, gradient, grid using the visual brush, transparency object and set opacity mask. It allows you to create, edit and convert the file pages as well as the ability to manipulate documents and elements, create vector graphics, group shapes, and specifying colors in different color spaces including sRGB, scRGB, and any space-based on ICC profile.
XPS, EPS, PS
Fixed Layout: PDF
Image: BMP, TIFF, JPEG, PNG
Metafiles: EMF, WMF
Animation: GIF
Image: BMP, TIFF, JPEG, PNG
Aspose.Page for Python via .NET can be used to develop 32-bit and 64-bit Python applications for Windows where Python 3.5 or later is installed.
Are you ready to give Aspose.Page for Python a try? Simply execute pip install aspose-page
to install wheel package package. If you already have Aspose.Page for Python and want to upgrade the version, please execute pip install --upgrade aspose-page
to get the latest version.
Execute the below code snippet to see how Aspose.Page API performs in your own environment or check the GitHub Repository for other common usage scenarios.
# The path to the documents directory.
dir = Util.get_data_dir_working_with_document()
# Create new XPS Document
x_docs = XpsDocument()
# add glyph to the document
glyphs = x_docs.add_glyphs("Arial", 12, aspose.pydrawing.FontStyle.REGULAR, 300, 450, "Hello World!")
glyphs.fill = x_docs.create_solid_color_brush(aspose.pydrawing.Color.black)
# save result
x_docs.save(dir + "output.xps")
Aspose.Page for Python allows you to work with document conversion, such as; PS to images, PS to PDF, XPS to images, XPS to PDF and so on. The following snippet demonstrates the conversion of PS to PDF using streams:
# The path to the documents directory.
data_dir = Util.get_data_dir_working_with_document_conversion()
# Initialize PsDocument instance from PostScript input file
document = PsDocument(data_dir + "input.ps")
# If you want to convert Postscript file despite of minor errors set this flag
suppress_errors = True
#Initialize options object with necessary parameters.
options = PdfSaveOptions(suppress_errors)
# Default page size is 595x842 and it is not mandatory to set it in PdfSaveOptions
# But if you need to specify the page size use following line
options = PdfSaveOptions(new Size(595, 842), suppress_errors)
# If you want to add special folder where fonts are stored. Default fonts folder in OS is always included.
options.additional_fonts_folders = [ """{FONT_FOLDER}""" ]
# Save PS document as PDF file
document.save_as_pdf(data_dir + "outputPDF_out.pdf", options)
Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License
FAQs
Aspose.Page for Python via .NET makes your Python Apps instantly support to work with XPS, EPS/PS documents without installing any 3rd party software. It helps developers create/edit XPS documents while working with canvas, paths, and glyph elements. Utilize a set of primitives, such as, elliptical arcs, straights lines, Bezier curve segments to create vector graphics. Add default print tickets and preserve them in the XPS file. Link print ticket objects among job/document/page.
We found that aspose-page demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.