Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pdfa 3b #1584

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Pdfa 3b #1584

wants to merge 7 commits into from

Conversation

ilaurillard
Copy link
Contributor

Hi there .. please have a look so we can discuss things.

Main problem for now is:

Annotation are not yet possible - getting the following validation errors:

<rule specification="ISO 19005-3:2012" clause="6.3.2" testNumber="1" status="failed" passedChecks="0" failedChecks="2"> 
                <description>Except for annotation dictionaries whose Subtype value is Popup, all annotation dictionaries shall contain the F key.</description>  
                <object>PDAnnot</object>  
                <test>Subtype == "Popup" || F != null</test>  
                <check status="failed"> 
                  <context>root/document[0]/pages[0](9 0 obj PDPage)/annots[0](16 0 obj PDLinkAnnot)</context>  
                  <errorMessage>A dictionary of Link annotation does not contain F key</errorMessage> 
                </check>  
                <check status="failed"> 
                  <context>root/document[0]/pages[0](9 0 obj PDPage)/annots[1](17 0 obj PDLinkAnnot)</context>  
                  <errorMessage>A dictionary of Link annotation does not contain F key</errorMessage> 
                </check> 
</rule> 

Plus for now i just overwrite the /Names reference in catalogue --- this has to be resolved somehow

@@ -94,6 +101,12 @@ class PdfCatalog extends PdfObject<PdfDict> {
params['/Names'] = names!.ref();
}

// ??? what to do, if /Names is already occupied?
if (attached != null && attached!.isNotEmpty) {
params['/Names'] = attached!.catalogNames();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just need to merge them

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want code to create interactive pdf with audio video image hyperlink text
I have system to create interactive pdf for students courses in my institute

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

engaljafary@gmail.com
Please can you send me by this email i can payment

PdfDocument pdfDocument,
Map<String, String> files,
) {
for (var fileName in files.keys) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use files.entities here

@codecov-commenter
Copy link

Codecov Report

Attention: 104 lines in your changes are missing coverage. Please review.

Comparison is base (459f38a) 36.26% compared to head (f39f3ee) 36.10%.

Files Patch % Lines
pdf/lib/src/pdf/obj/pdf_a_3b.dart 0.00% 99 Missing ⚠️
pdf/lib/src/pdf/obj/catalog.dart 40.00% 3 Missing ⚠️
pdf/lib/src/pdf/obj/metadata.dart 0.00% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1584      +/-   ##
==========================================
- Coverage   36.26%   36.10%   -0.17%     
==========================================
  Files         140      141       +1     
  Lines       21727    21832     +105     
==========================================
+ Hits         7880     7882       +2     
- Misses      13847    13950     +103     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants