logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

New Topic Post Reply
Options
Go to last post Go to first unread
Bazi  
#1 Posted : Friday, November 29, 2019 3:39:26 PM(UTC)
Quote
Bazi

Rank: Member

Groups: Registered
Joined: 9/19/2019(UTC)
Posts: 21
Germany
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 8 time(s). changed_(c) 210-AR-AN-NO-001-V01-Model.pdf (657kb) downloaded 8 time(s). Ausschnitt.JPG (426kb) downloaded 8 time(s).
Paul Rayman  
#2 Posted : Sunday, December 1, 2019 10:26:23 PM(UTC)
Quote
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 895

Thanks: 3 times
Was thanked: 109 time(s) in 106 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;
}
Quick Reply Show Quick Reply
Users browsing this topic
New Topic Post Reply
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.