Comments (7)
In the beginning there was PDFsharp. Then there was a partial port to Xamarin which was partially ported to .NET Core giving PdfSharpCore.
Sometimes it is difficult to take bug fixes or improvements from PdfSharpCore back into PDFsharp.
The PR looks quite simple and if you create a PR against the current PDFsharp 6.1.0 Preview 1 it will be quite simple for us to make the changes. I cannot promise they will be included, but if they have no impact on speed then I think they will be used.
from pdfsharp.
Thank you very much for your fast response!
And PdfSharpCore is still maintained by empira or did ststeiger this on his own by copy not by fork?
As for the change PR: That should be created in this repository here or what do you mean by "PR against the current PDFsharp 6.1.0 Preview 1"?
Should this change just convert the int position to long position or should it use ulong position as I proposed? (because a Position should not get negative anyway?)
I would prepare a PR in the following days then :D
from pdfsharp.
Hi
May I ask for feedback on my PR and some help maybe?
from pdfsharp.
PdfSharpCore is not and was never maintained by empira.
Support for files larger 2 GiB will be included with the next preview of PDFsharp 6.1.0 coming this month or so.
Thanks for the inspirational PR. The current implementation is slightly different though.
from pdfsharp.
The currently released 6.1 preview 2 now supports PDF files larger than 2 GB.
Originally posted by @StLange in #76 (comment)
I will test this in the following weeks and close the issue if everything is working as expected.
Thank you for your time, information and effort! :D
from pdfsharp.
Hi
Thank you again for your time and effort! The new package is now implemented and it seems to work now as expected!
Also nice to be mentioned indirectly in the docs, had a laugh reading that xD
Only thing that I am not sure about at the moment is the TODO comment on this line:
I tried opening the file with this mode and I at least got the metadata out of it..
Later I had to use PdfDocumentOpenMode.Import anyway as the other library we use still has the problem of big sized pdf..
PDFSharp returned an exception when trying to read the page into a new cached document with PdfDocumentOpenMode.InformationOnly..
That confuses me as it was not a "NotImplementedException" so I assume by now there is at least some implementation and the comment does not reflect that?
Would be nice to stream pages but I do not know how complicated that is and its not a necessity for me as I have enough RAM at hand.. But anyway thats another seperate issue for itself ;)
using var pdf = PdfReader.Open(_pathConverter.ConvertForLocalUsage(fileInfo.FullPath), PdfDocumentOpenMode.Import);
var pdfVersion = $"{pdf.Version / 10}.{pdf.Version % 10}";
var pdfSize = pdf.FileSize;
.
.
foreach (var page in pdf.Pages)
{
using var cachePdfMemoryStream = new MemoryStream();
using var cachePdf = new PdfDocument();
cachePdf.AddPage(page);
cachePdf.Save(cachePdfMemoryStream);
.
.
from pdfsharp.
My implementation works now with a little workaround
Thx for the help!
from pdfsharp.
Related Issues (20)
- How to convert Byte[] to XImage in PdfSharp HOT 3
- DrawMatrixCode seems to be returns null always in .Net8 HOT 1
- Add initialization of XGraphicsPath from its native counterpart HOT 2
- How to build PDF Sharp with Strong name? HOT 3
- AddImage from Stream HOT 1
- Performance improvements HOT 4
- Exception System.ArgumentException When using DrawString to add text to an existing PDF HOT 2
- How to access to TextAlign for PdfSharp.Pdf.AcroForms.PdfTextField? HOT 4
- Inability to correctly save dynamic XFA documents
- Migradoc: Issue using cloned Table HOT 1
- Support of incremental updates? HOT 1
- How to use Chinese fonts? HOT 4
- unable to check if a PdfDocument has an AcroForm inside
- cannot open pdf created by PdfSharp HOT 7
- .NET 6 end of support is November 12, 2024 HOT 5
- MigraDoc: Support different margins for first page in PageSetup HOT 3
- incorrect image path concatenation under Linux HOT 1
- MigraDoc: LeftPadding seems to be negated when drawing Table HOT 3
- BeginContainer crashes when XGraphics was created from a pdf page
- Can't retrieve stream length error - in old version? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdfsharp.