Rank: Member
Groups: Registered
Joined: 9/19/2019(UTC) Posts: 21  Location: Landshut Thanks: 1 times
|
Hi, I have problems with some PDF's. I insert layers in the PDF's and geometric shapes and text in these layers. For most of the files that works fine so far, but now I have some PDF's get in which I have difficulties. This starts with the fact that I can not read the PageContent as usual with Code:pageContent = pg.Dictionary("Contents").As(Of Patagames.Pdf.Net.BasicTypes.PdfTypeStream).DecodedText
The code for inserting the layers and figures works without an error message, but nothing is visible in the output file. I attach 2 files, one original and one modified.And a section of what it should look like Can someone help me? Greetings Christian (c) 210-AR-AN-NO-001-V01-Model.pdf (679kb) downloaded 17 time(s). changed_(c) 210-AR-AN-NO-001-V01-Model.pdf (657kb) downloaded 17 time(s). Ausschnitt.JPG (426kb) downloaded 17 time(s).
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 935
Thanks: 3 times Was thanked: 112 time(s) in 109 post(s)
|
Page contents may be an array as well. Please look at this Code:
var arr = doc.Pages[0].Dictionary["Contents"].As<Patagames.Pdf.Net.BasicTypes.PdfTypeArray>();
for (int i = 0; i < arr.Count; i++)
{
var decodedText = arr[i].As<PdfTypeStream>().DecodedText;
}
|
|
|
|
Forum Jump
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close