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

Notification

Icon
Error

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

Rank: Member

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

Rank: Administration

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

Thanks: 2 times
Was thanked: 103 time(s) in 101 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;
}
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.