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



Post a reply

Maximum number of characters in each post is: 32767
Bold Italic Underline   Highlight Quote Choose Language for Syntax Highlighting Insert Image Insert an existing Attachment or upload a new File... Create Link   Unordered List Ordered List   Left Justify Center Justify Right Justify   Outdent Indent   More BBCode Tags
Font Color Font Size
Security Image:
Enter The Letters From The Security Image:
  Preview Post Cancel

Last 10 Posts (In reverse order)
Paul Rayman Posted: Sunday, December 1, 2019 10:26:23 PM(UTC)
Page contents may be an array as well.

Please look at this

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;
Bazi Posted: Friday, November 29, 2019 3:39:26 PM(UTC)
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
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).