Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
DeleteOptionalContentGroup problem not save ? |
Post Reply |
Author | ||||
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 449 |
Post Options
Thanks(0)
Posted: 16 Oct 17 at 7:32AM |
|||
I was using this snippet to add OptionalContentGroup:
My problem is that currently I can not delete this OCG
So First MsgBox is saying 0 and second MsgBox is saying 1 But when I use $oQP.SaveToFile($sPDF_FileFullPath & '__Deleted_Pouczenie.pdf') I still have this OCG visible in this PDF file. Do I'm doing something wrong ? Edited by mLipok - 16 Oct 17 at 10:18AM |
||||
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
||||
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 449 |
Post Options
Thanks(0)
|
|||
btw. Foxit Quick PDF Library 14.11 Reference Guide.pdf in description for .DeleteOptionalContentGroup is not specyfing that return value are 0 or 1 but it is. The return value is exactly like mentioned in Foxit Quick PDF Library 14 Developer Guide.pdf
so the return Value for .DeleteOptionalContentGroup is showing properly 1 and 0 for example when I select non existen OCG. Edited by mLipok - 16 Oct 17 at 7:43AM |
||||
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
||||
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 449 |
Post Options
Thanks(0)
|
|||
The other question is why
is saying 0 ?? As I showed before I used QPDF to create this OCG |
||||
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
||||
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 449 |
Post Options
Thanks(0)
|
|||
Now I figured it out. $oQP.ContentStreamSafe() was saing 0 as I need also select Page
I figured it out when I was trying to use:
Which was not working until I use $oQP.SelectPage(2) But .DeleteOptionalContentGroup is still not working even if I select proper page. Edited by mLipok - 16 Oct 17 at 8:16AM |
||||
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
||||
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 449 |
Post Options
Thanks(0)
|
|||
QUESTION: Do you know any way to find on which page is located specyfic OCG ? |
||||
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
||||
ukobsa
Senior Member Joined: 29 May 06 Location: Germany Status: Offline Points: 115 |
Post Options
Thanks(0)
|
|||
Hi,
just tested it with this code (14.11): and here the second PDF do no longer have the OCG layer (just the layer; content is still visible)
Does this help? |
||||
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 449 |
Post Options
Thanks(0)
|
|||
Thanks. I will give it a try. And back with results.
Edited by mLipok - 16 Oct 17 at 7:17PM |
||||
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
||||
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 449 |
Post Options
Thanks(0)
|
|||
Your example is like this:
My is like this:
I'm wondering if I doing this wrong ? |
||||
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
||||
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 449 |
Post Options
Thanks(0)
|
|||
@ukobsa
I have used your example in AutoIt and I have such example:
The results are here: http://lipok.pl/Debenu/test_oc_dummy.pdf http://lipok.pl/Debenu/test_oc_dummy_del.pdf REMARK: Downlad this two files, and open in AcrobatReader not in GoogleChrome or in any other WebBrowser. You should notice that: test_oc_dummy_del.pdf still contains "1. Layer DUMMY added" text . I expected that deleting OCG would also remove all content inside this OCG. But that did not happen. Question is : Why that did not happen ? |
||||
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
||||
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
|||
Hi :)
here are two links with similar problems. The second one was the interesting one for you. Rowan is telling there something about the meaning of these OptionalContentGroups and why the content is still there obviously you've deleted the OCG ;-) http://www.quickpdf.org/forum/delete-optionalcontentgroup_topic3253.html http://www.quickpdf.org/forum/help-with-detecting-visible-ocgs-and-removing-ocgs_topic3153.html |
||||
Cheers,
Ingo |
||||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions 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 |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store