Code Monkey home page Code Monkey logo

aspose.pdf-for-.net-old's Introduction

aspose.pdf-for-.net-old's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aspose.pdf-for-.net-old's Issues

Problem when saving on Linux server

If I run locally it works on Windows but just simple example with text hello world and it crashes always on document.Save

Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'key')

Access Denied running Aspose C# Examples

Instructions for running C# Examples for Aspose PDF.Net seemed simple enough, but when I try to run one of the examples from VS2013, I immediately get 'access denied' against the 'Aspose.Pdf.Examples.CSharp.exe'. I have added various local Windows 7 accounts, i.e. NETWORK and LOCAL service, etc, along the directory path, and made sure it's 'full control', but get this error as soon as I try to run. Any help appreciated.

add Multiple Signatures on a Single PDF

I want to add multiple signatures on a single Pdf. My code as follows `System.Drawing.Rectangle rect = new System.Drawing.Rectangle(100, 100, 100, 100);

        PKCS1 signature = new PKCS1(@"eamsT.sinopec.com.pfx", "20180201");
        PdfFileSignature pdfSign = new PdfFileSignature(new Document(@"input.pdf"));
        pdfSign.SignatureAppearance = "test.png";
        pdfSign.Sign(1, "Signature Reason", "Contact", "Location", true, rect, signature);
        pdfSign.Save(@"output.pdf");
        pdfSign.Close();
        rect = new System.Drawing.Rectangle(260, 260, 100, 100);

        PKCS1 signature2 = new PKCS1(@"eamsT.sinopec.com.pfx", "20180201");
        pdfSign = new PdfFileSignature(new Document(@"output.pdf"));
        pdfSign.SignatureAppearance = "test.png";
        pdfSign.Sign(1, " Reason2", "Contact", "Location", true, rect, signature2);
        pdfSign.Save(@"output.pdf");
        pdfSign.Close();`

There is a problem that my reader (Adobe Acrobat Reader DC)tells me that Signature verification statusThe signature is invalid.The document has been altered or corrupted since the signature was applied.

Document.Save() throws NullReferenceException on OSX

I am running into a NullReferenceException using Aspose.PDF 19.4 in my own application and narrowed it down to the Save method on a Document. To make sure it wasn't my code causing the issue, I tried running the hello world example in this repo but tweaked to save to a stream to match how my app was working, and got the below error. Any ideas how to fix this?

            // Initialize document object
            Document document = new Document();
            // Add page
            Page page = document.Pages.Add();
            // Add text to new page
            page.Paragraphs.Add(new Aspose.Pdf.Text.TextFragment("Hello World!"));
	   // Save updated PDF
			using (var stream = new MemoryStream())
			{
				document.Save(stream);
			}
            // ExEnd:1  
System.NullReferenceException: Object reference not set to an instance of an object
  at #=zrfrUImb7jZrPxl6ucZ5zNV9DARLP.#=zrIGtZ6o= (#=z7yZ2j1uLuKOW3Mjv7iBPtwH3Y3ZT #=zvgUMzhxilvJ$) [0x00014] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=zf5Xplt8SxpLmjY2gnjKga9k=.#=zCHp0IXk= (#=z7yZ2j1uLuKOW3Mjv7iBPtwH3Y3ZT #=zvgUMzhxilvJ$) [0x00035] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0003b] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:305
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zs919QWqrlYGtp0d8HnE2iVs= (System.Object #=znOmGh_c=) [0x00000] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zbuTtbUQf9v4z9CLlfpkWc5NONpP1NH61Xg== (System.Object #=znOmGh_c=) [0x00025] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zD1z8jhB_bImTFA1KQH_CXh8= (System.Reflection.MethodBase #=znOmGh_c=, System.Boolean #=zKJQ1vAs=) [0x0020c] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zr1qAW2dJZU56Fifz$DRtrJQ= (#=qA0cVKYayviYAiKvxD3jKmFCvKBcZO1cuNkLywGPCX4s= #=znOmGh_c=) [0x00029] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zjQ2kpb7QJHXuCFyqDIfbc6bxeif3Guj2t5kRHFY= () [0x0006f] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zoZhjcbxKCu1OlfqNiZQyhtBOhMag () [0x00005] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zs919QWqrlYGtp0d8HnE2iVs= (System.Object #=znOmGh_c=) [0x00000] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zbuTtbUQf9v4z9CLlfpkWc5NONpP1NH61Xg== (System.Object #=znOmGh_c=) [0x00025] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zeDxoLlmnn6sLuiwJZ3kySdEqr9Qm () [0x00021] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zQuJefDFFUH6arI2RL7Xny4w= (#=qA0cVKYayviYAiKvxD3jKmFCvKBcZO1cuNkLywGPCX4s= #=znOmGh_c=) [0x00005] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zjQ2kpb7QJHXuCFyqDIfbc6bxeif3Guj2t5kRHFY= () [0x0006f] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zoZhjcbxKCu1OlfqNiZQyhtBOhMag () [0x00005] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zs919QWqrlYGtp0d8HnE2iVs= (System.Object #=znOmGh_c=) [0x00000] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zbuTtbUQf9v4z9CLlfpkWc5NONpP1NH61Xg== (System.Object #=znOmGh_c=) [0x00025] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zeDxoLlmnn6sLuiwJZ3kySdEqr9Qm () [0x00021] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zyEPA4nnEbHwoj0a0kw== (System.Object #=znOmGh_c=, System.UInt32 #=zKJQ1vAs=) [0x0016f] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zoZhjcbxKCu1OlfqNiZQyhtBOhMag () [0x0001e] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zXiHq1JqAXT1nVsgy7_u_4Co= () [0x00066] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=z5$W8JnZoxMUxFZCZ9nBeVsRX25Eiv12nKg== () [0x00005] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zs919QWqrlYGtp0d8HnE2iVs= (System.Object #=znOmGh_c=) [0x00000] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zbuTtbUQf9v4z9CLlfpkWc5NONpP1NH61Xg== (System.Object #=znOmGh_c=) [0x00025] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zeDxoLlmnn6sLuiwJZ3kySdEqr9Qm () [0x00021] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zyEPA4nnEbHwoj0a0kw== (System.Object #=znOmGh_c=, System.UInt32 #=zKJQ1vAs=) [0x0016f] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=z5$W8JnZoxMUxFZCZ9nBeVsRX25Eiv12nKg== () [0x00024] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zQ5pdWvrfMJWQpyweT_AkOQA= (System.Object[] #=znOmGh_c=, System.Type[] #=zKJQ1vAs=, System.Type[] #=zLQM$Grw=, System.Object[] #=zkxlc94Q=) [0x000b0] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zmDDIFHbuPCYW5n5B6w== (System.IO.Stream #=znOmGh_c=, System.String #=zKJQ1vAs=, System.Object[] #=zLQM$Grw=, System.Type[] #=zkxlc94Q=, System.Type[] #=zx3KnP8k=, System.Object[] #=zmd0rShU=) [0x00010] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zvzW4XjAI4ieAQmFs5zIGtvMzO0v6ctZBpel8OF4= (System.IO.Stream #=znOmGh_c=, System.String #=zKJQ1vAs=, System.Object[] #=zLQM$Grw=) [0x00000] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at #=qBVcPFVNsk1VCnIglM9dyb854eZvi1sYdOocJizgIlOs=.#=zTrgnC51gLkD5hJWbJTysEN5HzUSZa6TI3j8OR_8= (System.IO.Stream #=znOmGh_c=, System.String #=zKJQ1vAs=, System.Object[] #=zLQM$Grw=) [0x00000] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at Aspose.Pdf.Document.#=zaQMY1WxSvSde (System.IO.Stream #=z_scZQvM=, Aspose.Pdf.SaveOptions #=zVOKmEcCtwEbL) [0x00141] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at Aspose.Pdf.Document.Save (System.IO.Stream output) [0x00009] in <6cf8ce1e23124d98df6de66c2a643c37>:0
  at Aspose.Pdf.Examples.CSharp.AsposePDF.QuickStart.HelloWorld.Run () [0x00036] in /Aspose.PDF-for-.NET/Examples/CSharp/AsposePDF/QuickStart/HelloWorld.cs:26
  at Aspose.Pdf.Examples.CSharp.RunExamples.Main () [0x00017] in /GitHub/Aspose.PDF-for-.NET/Examples/CSharp/RunExamples.cs:69

The import of the solution OneClickPDFDocumentGenerator failed.

I get below error when im trying to import the solution into CRM

The import of the solution OneClickPDFDocumentGenerator failed. The following components are missing in your system and are not included in the solution. Import the managed solutions that contain these components (Active) and then try importing this solution again.

Any help?

Garbled TEXT (Pdf page to image )

when convert page of pdf to image , some garbled text (dll version 18.8)
the issue detail : https://forum.aspose.com/t/garbled-text-pdf-page-to-image/181133

using (FileStream imageStream = new FileStream(fileName, FileMode.Create))
{
Aspose.Pdf.Devices.Resolution resolution = new Aspose.Pdf.Devices.Resolution(300);
Aspose.Pdf.Devices.JpegDevice jpegDevice = new Aspose.Pdf.Devices.JpegDevice(resolution, 100);
jpegDevice.Process(doc.Pages[i], imageStream);
}

Prevent object from dragging outside of canvas

I am using AsposePdfEditor solution.
I have added image on canvas and try to moving on canvas.
While dragging the image on canvas there is no prevention from dragging outside of canvas.
Please suggest how to do it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.