Several issues like #31 #39 are caused by the flattening process which is slightly too simplified. According to the PDF specifications, the field format ("/Ff") is a 32 bit integer where only the last bit is relevant to make a pdf read-only. By setting the entire field to 1 as is done here we are losing out on quite a lot of functionality.
This patch fixes these issues by only setting the read-only bit to 1 and leaving all the other bits as they are.
Several issues like #31 #39 are caused by the flattening process which is slightly too simplified. According to the PDF specifications, the field format ("/Ff") is a 32 bit integer where only the last bit is relevant to make a pdf read-only. By setting the entire field to 1 as is done here we are losing out on quite a lot of functionality.
This patch fixes these issues by only setting the read-only bit to 1 and leaving all the other bits as they are.